Add binding reactor demo page

This commit is contained in:
Ira Limitanei 2024-06-14 18:02:06 +09:00
parent 2dd5c52930
commit fa714a2331
No known key found for this signature in database
GPG Key ID: 3B416C2117091FF3

View File

@ -25,6 +25,7 @@ enum Page: String, Identifiable, CaseIterable, Codable, CustomStringConvertible
case carousel case carousel
case viewSwitcher case viewSwitcher
case form case form
case bindingReactor
case popover case popover
case flowBox case flowBox
case navigationView case navigationView
@ -45,6 +46,8 @@ 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:
return "Binding Reactor"
default: default:
return rawValue.capitalized return rawValue.capitalized
} }
@ -87,6 +90,8 @@ 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:
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"
case .flowBox: case .flowBox:
@ -130,6 +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:
BindingReactorDemo(app: app)
case .popover: case .popover:
PopoverDemo() PopoverDemo()
case .flowBox: case .flowBox: