Using Form and monospace to keep alignment

Work in progress for #2184
This commit is contained in:
Stuart Breckenridge 2020-07-03 22:58:39 +08:00
parent bfd5bd467d
commit a4f53bc167

View File

@ -76,7 +76,7 @@ struct AddFeedView: View {
#if os(macOS) #if os(macOS)
var macForm: some View { var macForm: some View {
VStack(alignment: .leading) { Form {
HStack { HStack {
Spacer() Spacer()
Image(systemName: "globe").foregroundColor(.accentColor).font(.title) Image(systemName: "globe").foregroundColor(.accentColor).font(.title)
@ -124,7 +124,7 @@ struct AddFeedView: View {
} }
var folderPicker: some View { var folderPicker: some View {
Picker("Folder:", selection: $viewModel.selectedFolderIndex, content: { Picker(" ", selection: $viewModel.selectedFolderIndex, content: {
ForEach(0..<viewModel.containers.count, id: \.self, content: { index in ForEach(0..<viewModel.containers.count, id: \.self, content: { index in
if let containerName = (viewModel.containers[index] as? DisplayNameProvider)?.nameForDisplay { if let containerName = (viewModel.containers[index] as? DisplayNameProvider)?.nameForDisplay {
if viewModel.containers[index] is Folder { if viewModel.containers[index] is Folder {