Skip to content

Latest commit

History

History
44 lines (30 loc) 路 483 Bytes

File metadata and controls

44 lines (30 loc) 路 483 Bytes

STRUCT

UserDefault

public struct UserDefault<T>
@UserDefault("key") var myInt = 0

Properties

key

public let key: String

Key

wrappedValue

public var wrappedValue: T?

Get the value if it existes

Methods

init(_:)

public init(_ key: String)

Create a new Default with Key

  • Parameter key: String key

Parameters

Name Description
key String key