Structure
ScenarioContext
public struct ScenarioContext
The context of scenario.
Initializers
init(snapshotWaiter:isSnapshot:screenSize:)
public init(snapshotWaiter: SnapshotWaiter, isSnapshot: Bool, screenSize: @autoclosure @escaping () -> CGSize)
Creates a new context.
Parameters
Name | Type | Description |
---|---|---|
snapshotWaiter | SnapshotWaiter |
The waiter that controls snapshot to wait until content did finished rendering. |
isSnapshot | Bool |
Specifies whether that currently in snapshotting context. |
screenSize | @autoclosure @escaping () -> CGSize |
The size of screen or snapshotting device. |
Properties
snapshotWaiter
var snapshotWaiter: SnapshotWaiter
The waiter that controls snapshot to wait until content did finished rendering.
isSnapshot
var isSnapshot: Bool
Specifies whether that currently in snapshotting context.
screenSize
var screenSize: CGSize
The size of screen or snapshotting device.