Skip to content

Commit cfba563

Browse files
committed
Adjust info view size.
See `swift/issues/4377`.
1 parent e8cf1ad commit cfba563

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Shared/Supporting Files/Views/SampleInfoView.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ struct SampleInfoView: View {
4343
}
4444
}
4545
.pickerStyle(.segmented)
46+
.frame(idealWidth: 320)
4647
}
4748

4849
ToolbarItem(placement: .confirmationAction) {
@@ -51,13 +52,15 @@ struct SampleInfoView: View {
5152
}
5253
}
5354

54-
ToolbarItem(placement: .bottomBar) {
55+
ToolbarItemGroup(placement: .bottomBar) {
5556
if informationMode == .code {
57+
Spacer()
5658
Picker("Source Code File Picker", selection: $selectedSnippetIndex) {
5759
ForEach(sample.snippetURLs.indices, id: \.self) { index in
5860
Text(sample.snippets[index].dropLast(6))
5961
}
6062
}
63+
Spacer()
6164
}
6265
}
6366
}

0 commit comments

Comments
 (0)