File tree 1 file changed +2
-7
lines changed
WorkflowUI/Sources/Screen/AnyScreen
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -20,23 +20,18 @@ import UIKit
20
20
21
21
public struct AnyScreen : Screen {
22
22
/// The original screen, retained for debugging
23
- internal let wrappedScreen : Screen
24
-
25
- /// Stored getter for the wrapped screen’s view controller description
26
- private let _viewControllerDescription : ( ViewEnvironment ) -> ViewControllerDescription
23
+ public let wrappedScreen : Screen
27
24
28
25
public init < T: Screen > ( _ screen: T ) {
29
26
if let anyScreen = screen as? AnyScreen {
30
27
self = anyScreen
31
28
return
32
29
}
33
30
self . wrappedScreen = screen
34
- self . _viewControllerDescription = screen. viewControllerDescription ( environment: )
35
31
}
36
32
37
33
public func viewControllerDescription( environment: ViewEnvironment ) -> ViewControllerDescription {
38
- // Passed straight through
39
- return _viewControllerDescription ( environment)
34
+ return wrappedScreen. viewControllerDescription ( environment: environment)
40
35
}
41
36
}
42
37
You can’t perform that action at this time.
0 commit comments