Classes
The following classes are available globally.
-
A type that publishes changes about its
See morewrappedValue
property after the property has changed (usingdidSet
semantics). Reimplementation ofCombine.Published
, which useswillSet
semantics. 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.
Important
This type is not sendable, useSendableReleaseTrigger
instead 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.
Important
This type is sendable and thus its reference type has to be. Consider usingReleaseTrigger
if sendable is not needed.Declaration
Swift
public final class SendableReleaseTrigger<ReferenceType> : Sendable where ReferenceType : Sendable
-
A concrete implementation of the
See moreApplicationManager
protocol 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 moreUIDeviceProviderType
protocol which can be used in app code to return the corresponding values fromUIDevice.current
. When instantiatingbeginGeneratingDeviceOrientationNotifications()
will be called onUIDevice.current
to start the generation of device orientations so thatdeviceOrientation
returns 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 moreUIDeviceProviderType
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.Declaration
Swift
public class UIDeviceProviderMock : UIDeviceProviderType