Skip to content

Commit dbbed15

Browse files
committed
Use screen width for segmented control.
1 parent cfba563 commit dbbed15

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Shared/Supporting Files/Views/SampleInfoView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ struct SampleInfoView: View {
4343
}
4444
}
4545
.pickerStyle(.segmented)
46-
.frame(idealWidth: 320)
46+
// Set the ideal width to a big value so the segmented control
47+
// takes up the entire empty space of the toolbar on iOS 17.
48+
.frame(idealWidth: UIScreen.main.bounds.width)
4749
}
4850

4951
ToolbarItem(placement: .confirmationAction) {

0 commit comments

Comments
 (0)