Releases: mgdgc/Viewrito
Releases · mgdgc/Viewrito
0.0.2
0.0.1
Usage
Viewrito {
TextField("", text: $text)
} returning: { textField in
if #available(iOS 17, *) {
textField
.onChange(of: text) { old, new in
print("\(old) -> \(new)")
}
} else {
textField
.onChange(of: text) { new in
print("\(new)")
}
}
}
or
TextField("", text: $text)
.addViewModifier {
if #available(iOS 17, *) {
$0.onChange(of: text) { old, new in
print("\(old) -> \(new)")
}
}
}