import SwiftUI struct LocalizedPostFeedSettingsView: View { @ObservedObject var settings: LocalizedPostSettings var body: some View { VStack(alignment: .leading) { Text("Title") .font(.headline) TextField("", text: $settings.title) .textFieldStyle(.roundedBorder) .frame(maxWidth: 400) Text("The title of all post feed pages.") .foregroundStyle(.secondary) .padding(.bottom) Text("URL prefix") .font(.headline) TextField("", text: $settings.feedUrlPrefix) .textFieldStyle(.roundedBorder) .frame(maxWidth: 400) Text("The prefix to generate the urls for all post feed pages.") .foregroundStyle(.secondary) .padding(.bottom) Text("Description") .font(.headline) TextEditor(text: $settings.description) .font(.body) .lineLimit(5, reservesSpace: true) .frame(maxWidth: 400, minHeight: 50, maxHeight: 500) .textEditorStyle(.plain) .padding(.vertical, 8) .padding(.leading, 3) .background(Color.gray.opacity(0.1)) .cornerRadius(8) Text("The description of all post feed pages.") .foregroundStyle(.secondary) .padding(.bottom) } } } #Preview { LocalizedPostFeedSettingsView(settings: .english) .padding() }