Other Protocols

The following protocols are available globally.

  • Protocol indicting a type can be converted into an LDValue.

    Types used with the LDClient.variation(forKey: defaultValue:) or LDClient.variationDetail(forKey: detailValue:) methods are required to implement this protocol. This protocol has already been implemented for Bool, Int, Double, String, and LDValue types.

    This allows custom types as evaluation result types while retaining the LDValue type throughout the event processing system.

    See more

    Declaration

    Swift

    public protocol LDValueConvertible