Skip to content

Commit 2e5dcae

Browse files
committed
Update sample for Xcode 11 Beta 7
1 parent 3ec4dff commit 2e5dcae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TipCalculator/TipCalculator/ContentView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ struct ContentView : View {
8989
}
9090

9191
private var segmentedTipPercentages: some View {
92-
SegmentedControl(selection: $selectedTipPercentage) {
92+
Picker(selection: $selectedTipPercentage, label: Text("")) {
9393
ForEach(0..<tipPercentages.count) { index in
9494
Text(self.formatPercent(self.tipPercentages[index])).tag(index)
9595
}
96-
}
96+
}.pickerStyle(SegmentedPickerStyle())
9797
}
9898

9999
private func formatPercent(_ p: Double) -> String {

0 commit comments

Comments
 (0)