Skip to content

Commit

Permalink
Resolve swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Jan 20, 2025
1 parent 1c496fd commit 7be65b5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Sources/SpeziViews/Views/Controls/OptionSetPicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ public struct OptionSetPicker<Label: View, Value: OptionSet & PickerValue>: View
toggle(for: value)
}
} label: {
// TODO: use toggles instead!
LabeledContent {
HStack {
if selectionCount < 2 {
Expand Down Expand Up @@ -161,7 +160,12 @@ public struct OptionSetPicker<Label: View, Value: OptionSet & PickerValue>: 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<Value>, style: OptionSetPickerStyle = .automatic, allowEmptySelection: Bool = false, @ViewBuilder label: () -> Label) {
public init(
selection: Binding<Value>,
style: OptionSetPickerStyle = .automatic,
allowEmptySelection: Bool = false,
@ViewBuilder label: () -> Label
) {
self.style = style
self.allowEmptySelection = allowEmptySelection
self.label = label()
Expand Down

0 comments on commit 7be65b5

Please sign in to comment.