Fix header image white background

This commit is contained in:
Rizwan Mohamed Ibrahim 2020-07-08 16:09:49 +05:30
parent 8fb95f7900
commit 57dbe2b8ab
No known key found for this signature in database
GPG Key ID: D5BEE468D448BCC5
2 changed files with 34 additions and 40 deletions

View File

@ -18,10 +18,8 @@ struct SettingsFeedbinAccountView: View {
var body: some View {
NavigationView {
VStack {
AccountHeaderImageView(image: AppAssets.image(for: .feedbin)!)
List {
Section {
Section(header: AccountHeaderImageView(image: AppAssets.image(for: .feedbin)!)) {
TextField("Email", text: $settingsModel.email).textContentType(.emailAddress)
SecureField("Password", text: $settingsModel.password)
}
@ -45,7 +43,6 @@ struct SettingsFeedbinAccountView: View {
}
.listStyle(InsetGroupedListStyle())
.disabled(settingsModel.busy)
}
.onReceive(settingsModel.$shouldDismiss, perform: { dismiss in
if dismiss == true {
presentationMode.wrappedValue.dismiss()

View File

@ -15,10 +15,8 @@ struct SettingsLocalAccountView: View {
var body: some View {
NavigationView {
VStack(spacing: 0) {
AccountHeaderImageView(image: AppAssets.image(for: .onMyMac)!)
List {
Section {
Section(header: AccountHeaderImageView(image: AppAssets.image(for: .onMyMac)!)) {
HStack {
TextField("Name", text: $name)
}
@ -34,7 +32,6 @@ struct SettingsLocalAccountView: View {
}
}
.listStyle(InsetGroupedListStyle())
}
.navigationBarTitle(Text(verbatim: Account.defaultLocalAccountName), displayMode: .inline)
.navigationBarItems(leading: Button(action: { self.dismiss() }) { Text("Cancel") } )
}