Fix camera circle alignment
This commit is contained in:
parent
68f82ce367
commit
42f625b94f
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user