Key

public struct Key<T>

Mechanica

Base struct for static keys or keypaths with a phantom type. Specialize this struct with a type and initialize it with a value (key or keypath) to create a Key. - Note: Use Key to avoid stringly typed APIs.

  • Mechanica

    value containing the key or the keypath.

    Declaration

    Swift

    public let value: String