Skip to content

Commit

Permalink
Make SwiftLint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
acb-mv authored and buggmagnet committed Nov 28, 2024
1 parent d93953e commit 4f3a2e1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ import SwiftUI
```
*/

// swiftlint:disable function_parameter_count

struct SingleChoiceList<Value>: View where Value: Equatable {
let title: String
private let options: [OptionSpec]
Expand Down Expand Up @@ -203,6 +205,7 @@ struct SingleChoiceList<Value>: View where Value: Equatable {
}

// Construct the one row with a custom input field for a custom value
// swiftlint:disable function_body_length
private func customRow(
label: String,
prompt: String,
Expand Down Expand Up @@ -256,7 +259,7 @@ struct SingleChoiceList<Value>: View where Value: Equatable {
)
)
.focused($customValueIsFocused)
.onChange(of: customValueInput) { newValue in
.onChange(of: customValueInput) { _ in
if let maxInputLength {
if customValueInput.count > maxInputLength {
customValueInput = String(customValueInput.prefix(maxInputLength))
Expand Down

0 comments on commit 4f3a2e1

Please sign in to comment.