Skip to main content

atomic-properties

wrappedValue

public var wrappedValue: T 

Methods

mutate(_:)

Update the value safely.

public func mutate(_ changes: (_ value: inout T) -> Void) 

Parameters

  • changes: a block with changes. It should return a new value.

callAsFunction(_:)

Update the value safely.

public func callAsFunction(_ changes: (_ value: inout T) -> Void) 

Parameters

Did you find this page helpful?