SwiftinitSnippetKitSnippetKit.Switch
init
SnippetKit.Switch.init(identifier: String, onAction: SnippetKit.ActionPropertyConvertible?, offAction: SnippetKit.ActionPropertyConvertible?, initialValue: Bool, invocationPayload: [AnyHashable : Any]) throws -> SnippetKit.Switch
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
param{}
- 0identifier:structSwift.String
- 1onAction:enumSwift.Optional
- argexistential
ActionPropertyConvertible
- 2offAction:enumSwift.Optional
- argexistential
ActionPropertyConvertible
- 3initialValue:structSwift.Bool
- 4invocationPayload:structSwift.Dictionary
- argexistential
Any
result{}
structSnippetKit.Switch