Instance Method

update()

Updates the underlying value of the state.

Declaration

mutating func update()

Discussion

SwiftUI calls this function before rending a view’s body to ensure the view has the most recent value.