Skip to content

Commit 25cb183

Browse files
Timer options styling
1 parent c072e59 commit 25cb183

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ struct CameraScreen: View {
7474
Spacer()
7575

7676
HStack {
77+
Spacer()
78+
7779
if(isTimerOpen) {
7880
CameraScreenTimerSelectionContainer(model: model, buttonCallBack: {
7981
isTimerOpen = !isTimerOpen
8082
})
8183
}
8284

83-
Spacer()
84-
8585
ZStack {
8686
VisualEffectView(effect: UIBlurEffect(style: .dark)).edgesIgnoringSafeArea(.bottom)
8787

@@ -191,7 +191,7 @@ struct CameraScreen: View {
191191
.foregroundColor(.white)
192192
.padding(.top, Autoscale.convert(10))
193193
}else{
194-
Text(" ")
194+
Text(" ").padding(.top, Autoscale.convert(45))
195195
}
196196
Spacer()
197197
}

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ struct CameraScreenTimerSelectionContainer: View {
1616
ZStack {
1717
VisualEffectView(effect: UIBlurEffect(style: .dark)).edgesIgnoringSafeArea(.bottom)
1818

19-
HStack(spacing: Autoscale.convert(10)) {
19+
VStack(spacing: Autoscale.convert(35)) {
2020
Button {
2121
model.setTimer(nil)
2222
buttonCallBack()
2323
} label: {
2424
Text("timer off")
2525
.font(.sprenParagraph)
26-
.foregroundColor(model.isTimerOn == nil ? Color.sprenUISecondaryColor : .white).padding()
26+
.foregroundColor(model.isTimerOn == nil ? Color.sprenUISecondaryColor : .white)
2727
}
2828

2929
Button {
@@ -32,7 +32,7 @@ struct CameraScreenTimerSelectionContainer: View {
3232
} label: {
3333
Text("5s")
3434
.font(.sprenParagraph)
35-
.foregroundColor(model.isTimerOn == 5 ? Color.sprenUISecondaryColor : .white).padding()
35+
.foregroundColor(model.isTimerOn == 5 ? Color.sprenUISecondaryColor : .white)
3636
}
3737

3838
Button {
@@ -41,11 +41,12 @@ struct CameraScreenTimerSelectionContainer: View {
4141
} label: {
4242
Text("10s")
4343
.font(.sprenParagraph)
44-
.foregroundColor(model.isTimerOn == 10 ? Color.sprenUISecondaryColor : .white).padding()
44+
.foregroundColor(model.isTimerOn == 10 ? Color.sprenUISecondaryColor : .white)
4545
}
46-
}
47-
}.frame(height: Autoscale.convert(44)).cornerRadius(Autoscale.convert(44))
48-
.padding()
46+
}.padding(.vertical, Autoscale.convert(20))
47+
}.fixedSize(horizontal: false, vertical: true)
48+
.frame(width: Autoscale.convert(44))
49+
.cornerRadius(Autoscale.convert(44))
4950
.animation(.easeInOut)
5051
}
5152
}

0 commit comments

Comments
 (0)