Change Settings to use Form instead of List/grouped
This commit is contained in:
parent
231011685c
commit
ba41d0dee0
|
@ -11,7 +11,7 @@ import Account
|
|||
|
||||
struct SettingsAddAccountView : View {
|
||||
var body: some View {
|
||||
List {
|
||||
Form {
|
||||
PresentationButton(destination: SettingsLocalAccountView(name: "")) {
|
||||
SettingsAccountLabelView(accountImage: "accountLocal", accountLabel: Account.defaultLocalAccountName)
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ struct SettingsAddAccountView : View {
|
|||
}
|
||||
.padding(4)
|
||||
}
|
||||
.listStyle(.grouped)
|
||||
.navigationBarTitle(Text("Add Account"), displayMode: .inline)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ struct SettingsDetailAccountView : View {
|
|||
@State private var showFeedbinCredentials = false
|
||||
|
||||
var body: some View {
|
||||
List {
|
||||
Form {
|
||||
Section {
|
||||
HStack {
|
||||
Text("Name")
|
||||
|
@ -63,7 +63,6 @@ struct SettingsDetailAccountView : View {
|
|||
}
|
||||
}
|
||||
}
|
||||
.listStyle(.grouped)
|
||||
.navigationBarTitle(Text(verbatim: viewModel.nameForDisplay), displayMode: .inline)
|
||||
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ struct SettingsFeedbinAccountView : View {
|
|||
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
List {
|
||||
Form {
|
||||
Section(header:
|
||||
SettingsAccountLabelView(accountImage: "accountFeedbin", accountLabel: "Feedbin").padding()
|
||||
) {
|
||||
|
@ -57,7 +57,6 @@ struct SettingsFeedbinAccountView : View {
|
|||
}
|
||||
}
|
||||
.disabled(busy)
|
||||
.listStyle(.grouped)
|
||||
.navigationBarTitle(Text(""), displayMode: .inline)
|
||||
.navigationBarItems(leading:
|
||||
Button(action: { self.dismiss() }) { Text("Cancel") }
|
||||
|
|
|
@ -15,7 +15,7 @@ struct SettingsLocalAccountView : View {
|
|||
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
List {
|
||||
Form {
|
||||
Section(header:
|
||||
SettingsAccountLabelView(accountImage: "accountLocal", accountLabel: Account.defaultLocalAccountName).padding()
|
||||
) {
|
||||
|
@ -35,7 +35,6 @@ struct SettingsLocalAccountView : View {
|
|||
}
|
||||
}
|
||||
}
|
||||
.listStyle(.grouped)
|
||||
.navigationBarTitle(Text(""), displayMode: .inline)
|
||||
.navigationBarItems(leading: Button(action: { self.dismiss() }) { Text("Cancel") } )
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ struct SettingsView : View {
|
|||
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
List {
|
||||
Form {
|
||||
|
||||
Section(header: Text("ACCOUNTS")) {
|
||||
ForEach(viewModel.accounts.identified(by: \.self)) { account in
|
||||
|
@ -86,7 +86,6 @@ struct SettingsView : View {
|
|||
.foregroundColor(.primary)
|
||||
|
||||
}
|
||||
.listStyle(.grouped)
|
||||
.navigationBarTitle(Text("Settings"), displayMode: .inline)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue