Classes

The following classes are available globally.

  • A type that publishes changes about its wrappedValue property after the property has changed (using didSet semantics). Reimplementation of Combine.Published, which uses willSet semantics. Source: https://stackoverflow.com/questions/69978018/observe-change-on-a-published-var-in-swift-combine-after-didset

    See more

    Declaration

    Swift

    @propertyWrapper
    public class PostPublished<Value>
  • A class which holds a reference and calls a closure when the classes’ instance gets released.

    Important

    This type is not sendable, use SendableReleaseTrigger instead for a sendable version.
    See more

    Declaration

    Swift

    public class ReleaseTrigger<ReferenceType>
  • A class which holds a reference and calls a closure when the classes’ instance gets released.

    Important

    This type is sendable and thus its reference type has to be. Consider using ReleaseTrigger if sendable is not needed.
    See more

    Declaration

    Swift

    public final class SendableReleaseTrigger<ReferenceType> : Sendable where ReferenceType : Sendable
  • A concrete implementation of the ApplicationManager protocol which can be used in app code to return the corresponding values from UIApplication.

    See more

    Declaration

    Swift

    @available(iOSApplicationExtension, unavailable)
    @MainActor
    public final class ApplicationManagerLogic : ApplicationManager
  • A concrete implementation of the UIDeviceProviderType protocol which can be used in app code to return the corresponding values from UIDevice.current. When instantiating beginGeneratingDeviceOrientationNotifications() will be called on UIDevice.current to start the generation of device orientations so that deviceOrientation returns correct values. On de-init endGeneratingDeviceOrientationNotifications() will be called to stop it.

    See more

    Declaration

    Swift

    public final class UIDeviceProvider : UIDeviceProviderType, @unchecked Sendable
  • A mock implementation of the UIDeviceProviderType protocol which can be used in UnitTests to have full control of the returned values and thus being independent on the device currently used in the test. This mock makes UnitTests more reliable.

    See more

    Declaration

    Swift

    public class UIDeviceProviderMock : UIDeviceProviderType