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{}

  1. 0identifier:
  2. 1onAction:
  3. 2offAction:
  4. 3initialValue:
  5. 4invocationPayload:

result{}