fun Modifier.onChange(value: Any, perform: (Any) -> Unit): ModifierOverview
Modifier.onChange(value = value, perform = { value -> })This is the Kotlin form of SwiftUI View.onChange(of:perform:): SwiftUI documentation. In Swift it reads:
nonisolated func onChange<V>(of value: V, perform action: @escaping (V) -> Void) -> some View where V : EquatableTopics
Overloads
fun Modifier.onChange(value: Any, initial: Boolean = false, action: () -> Unit): Modifier
fun Modifier.onChange(value: Any, perform: (Any) -> Unit): Modifier