We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ec4dff commit 2e5dcaeCopy full SHA for 2e5dcae
TipCalculator/TipCalculator/ContentView.swift
@@ -89,11 +89,11 @@ struct ContentView : View {
89
}
90
91
private var segmentedTipPercentages: some View {
92
- SegmentedControl(selection: $selectedTipPercentage) {
+ Picker(selection: $selectedTipPercentage, label: Text("")) {
93
ForEach(0..<tipPercentages.count) { index in
94
Text(self.formatPercent(self.tipPercentages[index])).tag(index)
95
96
- }
+ }.pickerStyle(SegmentedPickerStyle())
97
98
99
private func formatPercent(_ p: Double) -> String {
0 commit comments