Source

public enum Source

Identifies where a served variant came from.

  • Variant assigned by the most recent successful /flags/ network call.

    Declaration

    Swift

    case network
  • Variant loaded from the on-disk persistence layer. persistedAt is the time the variant set was originally written to disk.

    Declaration

    Swift

    case persistence(persistedAt: Date)
  • Developer-supplied fallback returned because the SDK had no value to serve.

    reason explains why — flag missing from the cache/response, or flags not yet ready. Previously a Fallback meant only “not a real variant,” which collapsed several distinct outcomes into one (SDK-79). Callers — especially the OpenFeature wrapper — can dispatch on the reason to surface the correct user-facing error code.

    Declaration

    Swift

    case fallback(reason: FallbackReason)