diff --git a/HostApp/HostApp/Views/LivenessResultContentView.swift b/HostApp/HostApp/Views/LivenessResultContentView.swift index cb7177ae..8ebda4ff 100644 --- a/HostApp/HostApp/Views/LivenessResultContentView.swift +++ b/HostApp/HostApp/Views/LivenessResultContentView.swift @@ -32,6 +32,19 @@ struct LivenessResultContentView: View { .background(result.valueBackgroundColor) .cornerRadius(8) } + + if let image = result.auditImage { + Image(uiImage: .init(data: image) ?? UIImage()) + .resizable() + .aspectRatio(contentMode: .fit) + .frame(maxHeight: 300) + .background(Color.secondary.opacity(0.1)) + } else { + Image(systemName: "person.fill") + .font(.system(size: 128)) + .frame(maxWidth: .infinity, idealHeight: 268) + .background(Color.secondary.opacity(0.1)) + } if !result.isLive { steps() @@ -46,19 +59,6 @@ struct LivenessResultContentView: View { ) .cornerRadius(6)) } - - if let image = result.auditImage { - Image(uiImage: .init(data: image) ?? UIImage()) - .resizable() - .aspectRatio(contentMode: .fit) - .frame(maxHeight: 300) - .background(Color.secondary.opacity(0.1)) - } else { - Image(systemName: "person.fill") - .font(.system(size: 128)) - .frame(maxWidth: .infinity, idealHeight: 268) - .background(Color.secondary.opacity(0.1)) - } } .padding(.bottom, 16) .onAppear { diff --git a/Tests/IntegrationTestApp/IntegrationTestApp/Views/LivenessResultContentView.swift b/Tests/IntegrationTestApp/IntegrationTestApp/Views/LivenessResultContentView.swift index f2d9748c..eb2cbbd0 100644 --- a/Tests/IntegrationTestApp/IntegrationTestApp/Views/LivenessResultContentView.swift +++ b/Tests/IntegrationTestApp/IntegrationTestApp/Views/LivenessResultContentView.swift @@ -33,6 +33,19 @@ struct LivenessResultContentView: View { .background(result.valueBackgroundColor) .cornerRadius(8) } + + if let image = result.auditImage { + Image(uiImage: .init(data: image) ?? UIImage()) + .resizable() + .aspectRatio(contentMode: .fit) + .frame(maxHeight: 300) + .background(Color.secondary.opacity(0.1)) + } else { + Image(systemName: "person.fill") + .font(.system(size: 128)) + .frame(maxWidth: .infinity, idealHeight: 268) + .background(Color.secondary.opacity(0.1)) + } if !result.isLive { steps() @@ -47,19 +60,6 @@ struct LivenessResultContentView: View { ) .cornerRadius(6)) } - - if let image = result.auditImage { - Image(uiImage: .init(data: image) ?? UIImage()) - .resizable() - .aspectRatio(contentMode: .fit) - .frame(maxHeight: 300) - .background(Color.secondary.opacity(0.1)) - } else { - Image(systemName: "person.fill") - .font(.system(size: 128)) - .frame(maxWidth: .infinity, idealHeight: 268) - .background(Color.secondary.opacity(0.1)) - } } .padding(.bottom, 16) .onAppear {