forked from aparoksha/adwaita-swift
Replace Binding Reactor with Password Checker
This commit is contained in:
parent
fbd0f2a117
commit
e26f1ea205
@ -56,7 +56,7 @@ struct Demo: App {
|
|||||||
.defaultSize(width: 400, height: 250)
|
.defaultSize(width: 400, height: 250)
|
||||||
.title("Form Demo")
|
.title("Form Demo")
|
||||||
Window(id: "binding-reactor-demo", open: 0) { _ in
|
Window(id: "binding-reactor-demo", open: 0) { _ in
|
||||||
BindingReactorDemo.WindowContent()
|
PasswordCheckerDemo.WindowContent()
|
||||||
}
|
}
|
||||||
.closeShortcut()
|
.closeShortcut()
|
||||||
.defaultSize(width: 400, height: 250)
|
.defaultSize(width: 400, height: 250)
|
||||||
|
|||||||
@ -25,7 +25,7 @@ enum Page: String, Identifiable, CaseIterable, Codable, CustomStringConvertible
|
|||||||
case carousel
|
case carousel
|
||||||
case viewSwitcher
|
case viewSwitcher
|
||||||
case form
|
case form
|
||||||
case bindingReactor
|
case passwordChecker
|
||||||
case popover
|
case popover
|
||||||
case flowBox
|
case flowBox
|
||||||
case navigationView
|
case navigationView
|
||||||
@ -46,7 +46,7 @@ enum Page: String, Identifiable, CaseIterable, Codable, CustomStringConvertible
|
|||||||
return "Navigation View"
|
return "Navigation View"
|
||||||
case .alertDialog:
|
case .alertDialog:
|
||||||
return "Alert Dialog"
|
return "Alert Dialog"
|
||||||
case .bindingReactor:
|
case .passwordChecker:
|
||||||
return "Binding Reactor"
|
return "Binding Reactor"
|
||||||
default:
|
default:
|
||||||
return rawValue.capitalized
|
return rawValue.capitalized
|
||||||
@ -90,7 +90,7 @@ enum Page: String, Identifiable, CaseIterable, Codable, CustomStringConvertible
|
|||||||
return "Switch the window's view"
|
return "Switch the window's view"
|
||||||
case .form:
|
case .form:
|
||||||
return "Group controls used for data entry"
|
return "Group controls used for data entry"
|
||||||
case .bindingReactor:
|
case .passwordChecker:
|
||||||
return "React to binding variable changes"
|
return "React to binding variable changes"
|
||||||
case .popover:
|
case .popover:
|
||||||
return "Present content in a bubble-like context popup"
|
return "Present content in a bubble-like context popup"
|
||||||
@ -135,8 +135,8 @@ enum Page: String, Identifiable, CaseIterable, Codable, CustomStringConvertible
|
|||||||
ViewSwitcherDemo(app: app)
|
ViewSwitcherDemo(app: app)
|
||||||
case .form:
|
case .form:
|
||||||
FormDemo(app: app)
|
FormDemo(app: app)
|
||||||
case .bindingReactor:
|
case .passwordChecker:
|
||||||
BindingReactorDemo(app: app)
|
PasswordCheckerDemo(app: app)
|
||||||
case .popover:
|
case .popover:
|
||||||
PopoverDemo()
|
PopoverDemo()
|
||||||
case .flowBox:
|
case .flowBox:
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// BindingReactorDemo.swift
|
// PasswordCheckerDemo.swift
|
||||||
// Adwaita
|
// Adwaita
|
||||||
//
|
//
|
||||||
// Created by lambdaclan on 13.06.24.
|
// Created by lambdaclan on 13.06.24.
|
||||||
@ -51,7 +51,7 @@ enum PasswordChecker: String, CaseIterable, CustomStringConvertible, Identifiabl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct BindingReactorDemo: View {
|
struct PasswordCheckerDemo: View {
|
||||||
|
|
||||||
var app: GTUIApp
|
var app: GTUIApp
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user