Instance Method

update()

Updates the value of any dynamic variables prior to populating the view.

Declaration

mutating func update()

Discussion

SwiftUI calls this method immediately before computing the view’s body.