STRUCT
public struct UserDefault<T>
@UserDefault("key") var myInt = 0
public let key: String
Key
public var wrappedValue: T?
Get the value if it existes
public init(_ key: String)
Create a new Default with Key
- Parameter key: String key
Name | Description |
---|---|
key | String key |