diff --git a/WorkflowUI/Sources/Hosting/WorkflowHostingController.swift b/WorkflowUI/Sources/Hosting/WorkflowHostingController.swift index 5f41992c5..468e19ccb 100644 --- a/WorkflowUI/Sources/Hosting/WorkflowHostingController.swift +++ b/WorkflowUI/Sources/Hosting/WorkflowHostingController.swift @@ -35,6 +35,11 @@ public final class WorkflowHostingController: WorkflowUIView didSet { setNeedsEnvironmentUpdate() } } + /// The currently displayed screen - the most recent rendering from the hosted workflow + public var screen: ScreenType { + workflowHost.rendering.value + } + private(set) var rootViewController: UIViewController private let workflowHost: WorkflowHost>