From 7be65b56684d6a897ff962e530a3e1da73e2e2ba Mon Sep 17 00:00:00 2001 From: Andreas Bauer Date: Sun, 19 Jan 2025 20:07:51 +0100 Subject: [PATCH] Resolve swiftlint --- Sources/SpeziViews/Views/Controls/OptionSetPicker.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Sources/SpeziViews/Views/Controls/OptionSetPicker.swift b/Sources/SpeziViews/Views/Controls/OptionSetPicker.swift index 2f2e990..b05f632 100644 --- a/Sources/SpeziViews/Views/Controls/OptionSetPicker.swift +++ b/Sources/SpeziViews/Views/Controls/OptionSetPicker.swift @@ -115,7 +115,6 @@ public struct OptionSetPicker: View toggle(for: value) } } label: { - // TODO: use toggles instead! LabeledContent { HStack { if selectionCount < 2 { @@ -161,7 +160,12 @@ public struct OptionSetPicker: View /// - style: The style how the picker is displayed. /// - allowEmptySelection: Flag indicating if an empty selection is allowed. /// - label: The label view. - public init(selection: Binding, style: OptionSetPickerStyle = .automatic, allowEmptySelection: Bool = false, @ViewBuilder label: () -> Label) { + public init( + selection: Binding, + style: OptionSetPickerStyle = .automatic, + allowEmptySelection: Bool = false, + @ViewBuilder label: () -> Label + ) { self.style = style self.allowEmptySelection = allowEmptySelection self.label = label()