on...

#onappear #onchange #ondelete #onsubmit #editbutton #donebutton

Overview

onAppear

onChange

.onChange(of: xxx) // of: means change of the xxx
Slider(value: $filterIntensity)
    .onChange(of: filterIntensity) { _ in
        applyProcessing()
    }
Hacking with Swift / 100 Days / Day-62 - Responding to state changes using onChange()

onDelete

onReceive

See Also: Triggers

onScene

Hacking with Swift / 100 Days / Day-87 - How to be notified when your SwiftUI app moves to the background

onTapGesture

Sources

Hacking with Swift / 100 Days / Day-36 - Deleting items using onDelete()

onSubmit

Sources

Videos

Articles / Documents

Last updated