-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
As we can't use .onChange on iOS 13 here is solution with .onReceive: .
onReceive(Just(editMode?.wrappedValue)) { newValue in
if (newValue != nil) && (newValue!.isEditing) {
disableTextField = false // Edit button tapped
} else {
disableTextField = true // Done button tapped
}
}
You just have to import Combine, works the same
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels