Adapted Feed Inspector

This commit is contained in:
Maurice Parker 2019-09-27 19:49:54 -05:00
parent ca4a7f8b0b
commit e5f446c906
1 changed files with 5 additions and 1 deletions

View File

@ -21,7 +21,11 @@ struct FeedInspectorView : View {
Section(header:
HStack {
Spacer()
Image(uiImage: self.viewModel.image).resizable().frame(width: 48.0, height: 48.0)
if self.viewModel.image.size.width < 32 || self.viewModel.image.size.height < 32 {
Image(uiImage: self.viewModel.image).resizable().frame(width: 24.0, height: 24.0).cornerRadius(2.0)
} else {
Image(uiImage: self.viewModel.image).resizable().frame(width: 48.0, height: 48.0).cornerRadius(5.0)
}
Spacer()
}) {
TextField("Feed Name", text: $viewModel.name)