Class
ScenarioViewController
open class ScenarioViewController: UIViewController
The view controller to layout scenario's content.
Relationships
Conforms To
UIViewController
Initializers
init(context:)
public init(context: ScenarioContext)
Initialize a new scenario view controller with given context.
Parameters
Name | Type | Description |
---|---|---|
context | ScenarioContext |
The context of scenario. |
init(context:scenario:)
public convenience init(context: ScenarioContext, scenario: Scenario)
Initialize a new scenario view controller with given context.
Parameters
Name | Type | Description |
---|---|---|
context | ScenarioContext |
The context of scenario. |
scenario | Scenario |
A scenario to be displayed initially. |
init?(coder:)
@available(*, unavailable)
public required init?(coder: NSCoder)
Unavailable initializer.
Properties
context
public let context: ScenarioContext
The context of scenario that indicating environments.
scenario
public var scenario: Scenario?
The currently displayed scenario.
contentViewController
public private(set) var contentViewController: UIViewController?
The view controller wrapping content of currently displayed scenario.
disablesEndAppearanceTransition
public var disablesEndAppearanceTransition = false
Specifies whether the endAppearanceTransition
should be call after transition.
Methods
endAppearanceTransition()
open override func endAppearanceTransition()
Tells the child controller its appearance changed.