ObservableTheme
@propertyWrapper
public struct ObservableTheme<Value> where Value : Theme
A property wrapper type for an observable theme object.
Reference:
-
Creates an observed theme with initial theme’s default value. Subscribes to the theme’s stylesheet to create a new instance of the holded theme on each stylesheet change.
Declaration
Swift
public init()
-
An observable to the theme value.
Declaration
Swift
public var projectedValue: Observable<Value> { get }
-
The underlying value referenced by the observable theme variable.
Declaration
Swift
public var wrappedValue: Value { get nonmutating set }