One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

DynamicProperty

protocol · iOS 13.0+ · SDK 27.1

protocol DynamicProperty

An interface for a stored variable that updates an external property of a view. The view gives values to these properties prior to recomputing the view's ``View/body-swift.property``.

Members (1)

method · iOS 13.0+

update

Swift declaration
mutating func update()

Updates the underlying value of the stored value. SwiftUI calls this function before rendering a view's ``View/body-swift.property`` to ensure the view has the most recent value.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →