diff --git a/Multiplatform/Shared/Add/AddWebFeedModel.swift b/Multiplatform/Shared/Add/AddWebFeedModel.swift index 452a61258..aaed3a9cc 100644 --- a/Multiplatform/Shared/Add/AddWebFeedModel.swift +++ b/Multiplatform/Shared/Add/AddWebFeedModel.swift @@ -134,6 +134,11 @@ class AddWebFeedModel: ObservableObject { } } - + func smallIconImage(for container: Container) -> RSImage? { + if let smallIconProvider = container as? SmallIconProvider { + return smallIconProvider.smallIcon?.image + } + return nil + } } diff --git a/Multiplatform/Shared/Add/AddWebFeedView.swift b/Multiplatform/Shared/Add/AddWebFeedView.swift index 40fb3754c..d4ae6d20b 100644 --- a/Multiplatform/Shared/Add/AddWebFeedView.swift +++ b/Multiplatform/Shared/Add/AddWebFeedView.swift @@ -56,7 +56,7 @@ struct AddWebFeedView: View { Text("Add a Web Feed") .font(.title) Spacer() - } + }.padding() LazyVGrid(columns: [GridItem(.fixed(75), spacing: 10, alignment: .trailing),GridItem(.fixed(400), spacing: 0, alignment: .leading) ], alignment: .leading, spacing: 10, pinnedViews: [], content:{ @@ -82,7 +82,7 @@ struct AddWebFeedView: View { #if os(iOS) @ViewBuilder var iosForm: some View { NavigationView { - Form { + List { urlTextField providedNameTextField folderPicker @@ -111,38 +111,40 @@ struct AddWebFeedView: View { } #endif - var urlTextField: some View { - HStack { - #if os(iOS) - Text("Feed:") - TextField("URL", text: $viewModel.providedURL) - .disableAutocorrection(true) - .autocapitalization(UITextAutocapitalizationType.none) - #else - TextField("URL", text: $viewModel.providedURL) - .disableAutocorrection(true) - #endif - } + @ViewBuilder var urlTextField: some View { + #if os(iOS) + TextField("URL", text: $viewModel.providedURL) + .disableAutocorrection(true) + .autocapitalization(UITextAutocapitalizationType.none) + #else + TextField("URL", text: $viewModel.providedURL) + .disableAutocorrection(true) + #endif } var providedNameTextField: some View { - HStack(alignment: .lastTextBaseline) { - #if os(iOS) - Text("Name:") - #endif - TextField("Optional", text: $viewModel.providedName) - } + TextField("Optional", text: $viewModel.providedName) } @ViewBuilder var folderPicker: some View { #if os(iOS) - Picker("Folder:", selection: $viewModel.selectedFolderIndex, content: { + Picker("Folder", selection: $viewModel.selectedFolderIndex, content: { ForEach(0..