Add copy and clear buttons
This commit is contained in:
parent
8011ceeaf3
commit
498610a0ef
@ -82,6 +82,18 @@ struct PasswordCheckerDemo: View {
|
||||
FormSection("") {
|
||||
Form {
|
||||
EntryRow("Password", text: $password)
|
||||
.suffix {
|
||||
Button(icon: .default(icon: .editCopy)) {
|
||||
State<Any>.copy(password)
|
||||
}
|
||||
.flat()
|
||||
.verticalCenter()
|
||||
Button(icon: .default(icon: .editClear)) {
|
||||
password = ""
|
||||
}
|
||||
.flat()
|
||||
.verticalCenter()
|
||||
}
|
||||
}
|
||||
}
|
||||
.padding()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user