Fix account header image alignment and foreground color

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

View File

@ -14,12 +14,15 @@ struct AccountHeaderImageView: View {
var body: some View {
HStack(alignment: .center) {
Spacer()
Image(rsImage: image)
.resizable()
.scaledToFit()
.frame(height: 48, alignment: .center)
.padding()
.foregroundColor(Color.primary)
Spacer()
}
.padding(16)
}
}
@ -30,6 +33,5 @@ struct AccountHeaderImageView_Previews: PreviewProvider {
AccountHeaderImageView(image: AppAssets.image(for: .feedbin)!)
AccountHeaderImageView(image: AppAssets.accountLocalPadImage)
}
}
}