PersistStorage
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
@propertyWrapper
public struct PersistStorage<Value> : DynamicProperty
A type that conforms to DynamicProperty
to facilitate
automatically updating SwiftUI View
s.
-
Declaration
Swift
public var wrappedValue: Value { get nonmutating set }
-
A
Binding
to thewrappedValue
. Supports animations.Declaration
Swift
public var projectedValue: Binding<Value> { get }