Classes

The following classes are available globally.

  • A concrete implementation of the Cancellable protocol.

    See more

    Declaration

    Swift

    public final class AnyCancellable : Cancellable
  • An object that can store and retrieve values from a Storage instance, optionally passing values through a transformer.

    See more

    Declaration

    Swift

    public final class Persister<Value>
  • Storage that stores values in memory; values will not be persisted between app launches or instances of InMemoryStorage.

    See more

    Declaration

    Swift

    open class InMemoryStorage<StoredValue> : Storage
  • A wrapper around Persister that inherits from ObservableObject.

    See more

    Declaration

    Swift

    @available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
    public final class ObservablePersister<Value> : ObservableObject
  • An object that represents a subscription to a Storage update.

    See more

    Declaration

    Swift

    open class Subscription : Cancellable