UI improvements
This commit is contained in:
parent
1d425a97f0
commit
7d0feaac54
|
@ -30,14 +30,13 @@ struct AddIdentityView: View {
|
||||||
}
|
}
|
||||||
if let instance = viewModel.instance {
|
if let instance = viewModel.instance {
|
||||||
Section {
|
Section {
|
||||||
KFImage(instance.thumbnail)
|
|
||||||
.placeholder {
|
|
||||||
ProgressView()
|
|
||||||
}
|
|
||||||
.resizable()
|
|
||||||
.scaledToFit()
|
|
||||||
.listRowInsets(EdgeInsets())
|
|
||||||
VStack(alignment: .center) {
|
VStack(alignment: .center) {
|
||||||
|
KFImage(instance.thumbnail)
|
||||||
|
.placeholder {
|
||||||
|
ProgressView()
|
||||||
|
}
|
||||||
|
.resizable()
|
||||||
|
.aspectRatio(16 / 9, contentMode: .fill)
|
||||||
Text(instance.title)
|
Text(instance.title)
|
||||||
.font(.headline)
|
.font(.headline)
|
||||||
Text(instance.uri)
|
Text(instance.uri)
|
||||||
|
|
Loading…
Reference in New Issue