diff --git a/.swiftlint.yml b/.swiftlint.yml index b492aed..d4f33e7 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -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 diff --git a/Sources/Core/Model/Enumerations/Icon.swift b/Sources/Core/Model/Enumerations/Icon.swift index 67bd703..d117ab6 100644 --- a/Sources/Core/Model/Enumerations/Icon.swift +++ b/Sources/Core/Model/Enumerations/Icon.swift @@ -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 } diff --git a/Sources/Demo/Demo.swift b/Sources/Demo/Demo.swift index bb76e63..d19ad65 100644 --- a/Sources/Demo/Demo.swift +++ b/Sources/Demo/Demo.swift @@ -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/") } }