forked from aparoksha/adwaita-swift
Add copy and clear buttons
This commit is contained in:
parent
8011ceeaf3
commit
498610a0ef
@ -82,6 +82,18 @@ struct PasswordCheckerDemo: View {
|
|||||||
FormSection("") {
|
FormSection("") {
|
||||||
Form {
|
Form {
|
||||||
EntryRow("Password", text: $password)
|
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()
|
.padding()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user