Fix style
This commit is contained in:
parent
266fb1dc23
commit
24ae87f124
@ -3,7 +3,6 @@ opt_in_rules:
|
||||
- anonymous_argument_in_multiline_closure
|
||||
- array_init
|
||||
- attributes
|
||||
- closure_body_length
|
||||
- closure_end_indentation
|
||||
- closure_spacing
|
||||
- collection_alignment
|
||||
|
@ -43,7 +43,7 @@ public enum Icon: WinUIWidget, Equatable {
|
||||
data: WidgetData,
|
||||
updateProperties: Bool,
|
||||
type: Data.Type
|
||||
) where Data : ViewRenderData {
|
||||
) where Data: ViewRenderData {
|
||||
guard updateProperties else {
|
||||
return
|
||||
}
|
||||
|
@ -80,15 +80,27 @@ struct ContentView: View {
|
||||
SettingsControl("Button Control", icon: .systemIcon(unicode: "\u{E7C9}")) {
|
||||
Button("Control") { }
|
||||
}
|
||||
SettingsControl("Combo Box", icon: .systemIcon(unicode: "\u{E700}"), description: "Selected item: \(comboBoxSelection)") {
|
||||
SettingsControl(
|
||||
"Combo Box",
|
||||
icon: .systemIcon(unicode: "\u{E700}"),
|
||||
description: "Selected item: \(comboBoxSelection)"
|
||||
) {
|
||||
ComboBox(NavigationItem.allCases, selection: $comboBoxSelection)
|
||||
}
|
||||
SettingsControl("Toggle Switch", icon: .systemIcon(unicode: "\u{F19E}"), description: "Current state: \(switchState ? "on" : "off")") {
|
||||
SettingsControl(
|
||||
"Toggle Switch",
|
||||
icon: .systemIcon(unicode: "\u{F19E}"),
|
||||
description: "Current state: \(switchState ? "on" : "off")"
|
||||
) {
|
||||
ToggleSwitch(isOn: $switchState)
|
||||
}
|
||||
}
|
||||
SettingsSection("About") {
|
||||
SettingsControl("WinUI for Swift Demo", icon: .systemIcon(unicode: "\u{E946}"), description: "main") {
|
||||
SettingsControl(
|
||||
"WinUI for Swift Demo",
|
||||
icon: .systemIcon(unicode: "\u{E946}"),
|
||||
description: "main"
|
||||
) {
|
||||
HyperlinkButton("Website", url: "https://aparoksha.dev/")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user