diff --git a/ios/MullvadVPN/View controllers/Settings/SwiftUI components/SingleChoiceList.swift b/ios/MullvadVPN/View controllers/Settings/SwiftUI components/SingleChoiceList.swift index 7f6cab3da3bd..1302921d188a 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: View where Value: Equatable { let title: String private let options: [OptionSpec] @@ -203,6 +205,7 @@ struct SingleChoiceList: 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: 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))