diff options
| author | Andrew Bulhak <andrew.bulhak@mullvad.net> | 2024-11-27 12:09:25 +0100 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2024-11-28 09:54:26 +0100 |
| commit | 4f3a2e112e63728e4aaffced52bfd9806f0b8cb5 (patch) | |
| tree | 6f3774225109a62a56ff31daf5ed31c74907c702 /ios | |
| parent | d93953e4d1f105a10f6a172fe6df305e045be856 (diff) | |
| download | mullvadvpn-4f3a2e112e63728e4aaffced52bfd9806f0b8cb5.tar.xz mullvadvpn-4f3a2e112e63728e4aaffced52bfd9806f0b8cb5.zip | |
Make SwiftLint happy
Diffstat (limited to 'ios')
| -rw-r--r-- | ios/MullvadVPN/View controllers/Settings/SwiftUI components/SingleChoiceList.swift | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ios/MullvadVPN/View controllers/Settings/SwiftUI components/SingleChoiceList.swift b/ios/MullvadVPN/View controllers/Settings/SwiftUI components/SingleChoiceList.swift index 7f6cab3da3..1302921d18 100644 --- a/ios/MullvadVPN/View controllers/Settings/SwiftUI components/SingleChoiceList.swift +++ b/ios/MullvadVPN/View controllers/Settings/SwiftUI components/SingleChoiceList.swift @@ -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] @@ -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, @@ -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)) |
