diff options
| author | Andrew Bulhak <andrew.bulhak@mullvad.net> | 2024-11-14 15:25:47 +0100 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2024-11-28 09:54:26 +0100 |
| commit | 193886149592b0e7f3dc4b6e1edb5ec98f66e60d (patch) | |
| tree | 1679e8265613a74ee87092466ff3e877681dba3d | |
| parent | 85b15dc7da0ec36302ae4b2b7eb37285692fd65b (diff) | |
| download | mullvadvpn-193886149592b0e7f3dc4b6e1edb5ec98f66e60d.tar.xz mullvadvpn-193886149592b0e7f3dc4b6e1edb5ec98f66e60d.zip | |
Move localisation out of SingleChoiceList to the client
| -rw-r--r-- | ios/MullvadVPN/View controllers/Settings/SwiftUI components/SingleChoiceList.swift | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ios/MullvadVPN/View controllers/Settings/SwiftUI components/SingleChoiceList.swift b/ios/MullvadVPN/View controllers/Settings/SwiftUI components/SingleChoiceList.swift index 6077539b5d..adb0f7bd28 100644 --- a/ios/MullvadVPN/View controllers/Settings/SwiftUI components/SingleChoiceList.swift +++ b/ios/MullvadVPN/View controllers/Settings/SwiftUI components/SingleChoiceList.swift @@ -19,6 +19,7 @@ struct SingleChoiceList<Item>: View where Item: Hashable { var value: Binding<Item> let itemDescription: (Item) -> String + init(title: String, options: [Item], value: Binding<Item>, itemDescription: ((Item) -> String)? = nil) { self.title = title self.options = options |
