Skip to content

Commit 69ec53c

Browse files
Camera screen + confirmation screen updates
1 parent 11b3c0e commit 69ec53c

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

Sources/SprenUI/UI/Screens/Flows/BodyComp/CameraScreen/CanvasBoxes.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ struct CanvasBoxes: View {
236236
path.addLine(to: p4)
237237
path.addArc(center: p3, radius: 8, startAngle: .degrees(270), endAngle: .degrees(180), clockwise: true)
238238
path.addLine(to: p2)
239-
}.stroke(isLeftRightAnkleIn() ? Color.sprenUISecondaryColor : .white, style: StrokeStyle(lineWidth: 4, lineCap: .round, lineJoin: .round))
239+
}.stroke(isLeftRightAnkleIn() ? Color.sprenGreen : .white, style: StrokeStyle(lineWidth: 4, lineCap: .round, lineJoin: .round))
240240

241241
Path { path in
242242
let p1 = CGPoint(x: rightWidth - 50, y: bottomHeight - 106)
@@ -248,7 +248,7 @@ struct CanvasBoxes: View {
248248
path.addLine(to: p4)
249249
path.addArc(center: p3, radius: 8, startAngle: .degrees(270), endAngle: .degrees(0), clockwise: false)
250250
path.addLine(to: p2)
251-
}.stroke(isLeftRightAnkleIn() ? Color.sprenUISecondaryColor : .white, style: StrokeStyle(lineWidth: 4, lineCap: .round, lineJoin: .round))
251+
}.stroke(isLeftRightAnkleIn() ? Color.sprenGreen : .white, style: StrokeStyle(lineWidth: 4, lineCap: .round, lineJoin: .round))
252252

253253
Path { path in
254254
let p1 = CGPoint(x: leftWidth - 50, y: bottomHeight - 31)
@@ -260,7 +260,7 @@ struct CanvasBoxes: View {
260260
path.addLine(to: p2)
261261
path.addArc(center: p3, radius: 8, startAngle: .degrees(180), endAngle: .degrees(90), clockwise: true)
262262
path.addLine(to: p4)
263-
}.stroke(isLeftRightAnkleIn() ? Color.sprenUISecondaryColor : .white, style: StrokeStyle(lineWidth: 4, lineCap: .round, lineJoin: .round))
263+
}.stroke(isLeftRightAnkleIn() ? Color.sprenGreen : .white, style: StrokeStyle(lineWidth: 4, lineCap: .round, lineJoin: .round))
264264

265265
Path { path in
266266
let p1 = CGPoint(x: rightWidth - 26, y: bottomHeight - 31)
@@ -272,7 +272,7 @@ struct CanvasBoxes: View {
272272
path.addLine(to: p2)
273273
path.addArc(center: p3, radius: 8, startAngle: .degrees(0), endAngle: .degrees(90), clockwise: false)
274274
path.addLine(to: p4)
275-
}.stroke(isLeftRightAnkleIn() ? Color.sprenUISecondaryColor : .white, style: StrokeStyle(lineWidth: 4, lineCap: .round, lineJoin: .round))
275+
}.stroke(isLeftRightAnkleIn() ? Color.sprenGreen : .white, style: StrokeStyle(lineWidth: 4, lineCap: .round, lineJoin: .round))
276276

277277
CanvasCircles(x: leftWidth - 17, y: bottomHeight - 56.5, size1: 30, size2: 19.2, size3: 6, action: isLeftAnkleIn)
278278

@@ -294,19 +294,19 @@ struct CanvasCircles: View {
294294
var body: some View {
295295
GeometryReader { geometry in
296296
Circle()
297-
.foregroundColor(action() ? Color.sprenUISecondaryColor : .white)
297+
.foregroundColor(action() ? Color.sprenGreen : .white)
298298
.opacity(0.5)
299299
.frame(height: size1)
300300
.position(x: x, y: y)
301301

302302
Circle()
303-
.foregroundColor(action() ? Color.sprenUISecondaryColor : .white)
303+
.foregroundColor(action() ? Color.sprenGreen : .white)
304304
.opacity(0.5)
305305
.frame(height: size2)
306306
.position(x: x, y: y)
307307

308308
Circle()
309-
.foregroundColor(action() ? Color.sprenUISecondaryColor : .white)
309+
.foregroundColor(action() ? Color.sprenGreen : .white)
310310
.frame(height: size3)
311311
.position(x: x, y: y)
312312
}

Sources/SprenUI/UI/Screens/Flows/BodyComp/Utils/UserImageMasked.swift

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,28 +70,28 @@ struct UserImageMasked {
7070
}
7171

7272
func getFinalImage(inputImage: UIImage, finalOutputImage: UIImage, size: CGSize, shouldApplyShadow: Bool) -> some View {
73-
if #available(iOS 15.0, *) {
74-
let image = Image(uiImage: finalOutputImage)
75-
.resizable()
76-
.rotationEffect(inputImage.getRotationAngle())
77-
.scaledToFill()
78-
.frame(width: size.width, height: size.height)
79-
80-
if (shouldApplyShadow) {
81-
return AnyView(
82-
image
83-
.shadow(color: Color(red: 190 / 255, green: 190 / 255, blue: 190 / 255).opacity(0.5), radius: 10, x: -40, y: 5)
84-
)
85-
}
86-
return AnyView(image)
87-
} else {
73+
// if #available(iOS 15.0, *) {
74+
// let image = Image(uiImage: finalOutputImage)
75+
// .resizable()
76+
// .rotationEffect(inputImage.getRotationAngle())
77+
// .scaledToFill()
78+
// .frame(width: size.width, height: size.height)
79+
//
80+
// if (shouldApplyShadow) {
81+
// return AnyView(
82+
// image
83+
// .shadow(color: Color(red: 190 / 255, green: 190 / 255, blue: 190 / 255).opacity(0.5), radius: 10, x: -40, y: 5)
84+
// )
85+
// }
86+
// return AnyView(image)
87+
// } else {
8888
return AnyView(Image(uiImage: inputImage)
8989
.resizable()
9090
// .rotationEffect(inputImage.getRotationAngle())
9191
.scaledToFill()
9292
.frame(width: size.width, height: size.height)
9393
)
94-
}
94+
// }
9595
}
9696

9797
func getMesh() -> some View {

0 commit comments

Comments
 (0)