Skip to content

Commit 22a52c9

Browse files
committed
Tweak tuple element order
1 parent d5c2723 commit 22a52c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Authenticator/Source/DisplayOptionsViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ extension DisplayOptionsViewController {
115115
return DigitGroupingRowViewModel(
116116
title: "Digit Grouping",
117117
options: [
118-
(title: "•• •• ••", accessibilityLabel: "Groups of two digits", value: 2, accessibilityHint: "For example, 38 62 47"),
119-
(title: "••• •••", accessibilityLabel: "Groups of three digits", value: 3, accessibilityHint: "For example, 386 247"),
118+
(title: "•• •• ••", value: 2, accessibilityLabel: "Groups of two digits", accessibilityHint: "For example, 38 62 47"),
119+
(title: "••• •••", value: 3, accessibilityLabel: "Groups of three digits", accessibilityHint: "For example, 386 247"),
120120
],
121121
value: viewModel.digitGroupSize,
122122
changeAction: DisplayOptions.Effect.setDigitGroupSize
@@ -132,7 +132,7 @@ struct DigitGroupingRowViewModel<Action> {
132132
let segments: [(title: String, accessibilityLabel: String, accessibilityHint: String, action: Action)]
133133
let selectedSegmentIndex: Int?
134134

135-
init<V: Equatable>(title: String, options: [(title: String, accessibilityLabel: String, value: V, accessibilityHint: String)], value: V, changeAction: (V) -> Action) {
135+
init<V: Equatable>(title: String, options: [(title: String, value: V, accessibilityLabel: String, accessibilityHint: String)], value: V, changeAction: (V) -> Action) {
136136
self.title = title
137137
segments = options.map({ option in
138138
(title: option.title, accessibilityLabel: option.accessibilityLabel, accessibilityHint: option.accessibilityHint, action: changeAction(option.value))

0 commit comments

Comments
 (0)