Classes
The following classes are available globally.
-
A type that publishes changes about its
See morewrappedValueproperty after the property has changed (usingdidSetsemantics). Reimplementation ofCombine.Published, which useswillSetsemantics. Source: https://stackoverflow.com/questions/69978018/observe-change-on-a-published-var-in-swift-combine-after-didsetDeclaration
Swift
@propertyWrapper public class PostPublished<Value> -
A class which holds a reference and calls a closure when the classes’ instance gets released.
See moreImportant
This type is not sendable, useSendableReleaseTriggerinstead for a sendable version.Declaration
Swift
public class ReleaseTrigger<ReferenceType> -
A class which holds a reference and calls a closure when the classes’ instance gets released.
See moreImportant
This type is sendable and thus its reference type has to be. Consider usingReleaseTriggerif sendable is not needed.Declaration
Swift
public final class SendableReleaseTrigger<ReferenceType> : Sendable where ReferenceType : Sendable -
A concrete implementation of the
See moreApplicationManagerprotocol which can be used in app code to return the corresponding values fromUIApplication.Declaration
Swift
@available(iOSApplicationExtension, unavailable) @MainActor public final class ApplicationManagerLogic : ApplicationManager -
A concrete implementation of the
See moreUIDeviceProviderTypeprotocol which can be used in app code to return the corresponding values fromUIDevice.current. When instantiatingbeginGeneratingDeviceOrientationNotifications()will be called onUIDevice.currentto start the generation of device orientations so thatdeviceOrientationreturns correct values. On de-initendGeneratingDeviceOrientationNotifications()will be called to stop it.Declaration
Swift
public final class UIDeviceProvider : UIDeviceProviderType, @unchecked Sendable -
A mock implementation of the
See moreUIDeviceProviderTypeprotocol 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.Declaration
Swift
public class UIDeviceProviderMock : UIDeviceProviderType
View on GitHub
Classes Reference