Fix camera circle alignment

This commit is contained in:
Christoph Hagen 2022-07-10 14:12:08 +02:00
parent 68f82ce367
commit 42f625b94f

View File

@ -48,6 +48,21 @@ struct CameraView: View {
.padding(-CameraView.cameraImagePadding)
ErrorView(error: model.error)
VStack {
Spacer()
HStack {
Spacer()
Text("")
.frame(width: circleSize, height: circleSize, alignment: .center)
.overlay(RoundedRectangle(cornerRadius: circleSize/2)
.stroke(lineWidth: circleStrength)
.foregroundColor(circleColor))
//.background(Color(white: 1, opacity: 0.01))
.onAppear(perform: didTapCircle)
Spacer()
}.padding(.bottom, 0)
Spacer()
}
VStack {
Spacer()
HStack {
@ -78,22 +93,6 @@ struct CameraView: View {
Spacer()
}
}
VStack {
Spacer()
HStack {
Spacer()
Text("")
.frame(width: circleSize, height: circleSize, alignment: .center)
.overlay(RoundedRectangle(cornerRadius: circleSize/2)
.stroke(lineWidth: circleStrength)
.foregroundColor(circleColor))
.background(Color(white: 1, opacity: 0.01))
.onAppear(perform: didTapCircle)
Spacer()
}
Spacer()
}.ignoresSafeArea()
}
.onAppear() {
model.startCapture()