Skip to content

Commit 7224cbc

Browse files
Hints for Measurement Screen Text tweaks
1 parent dbce5b3 commit 7224cbc

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

Sources/SprenUI/UI/Screens/Flows/BodyComp/SetupGuide/Hint.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ struct Hint: View {
1212
var text: String
1313

1414
var body: some View {
15-
HStack {
15+
HStack(alignment: .top) {
1616
Image(systemName: "checkmark.circle.fill").foregroundColor(Color.sprenUISecondaryColor)
1717
Text(text)
1818
.font(.sprenParagraph)
19-
.lineLimit(1)
20-
.minimumScaleFactor(0.01)
2119
.multilineTextAlignment(.leading)
2220

2321
Spacer()

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

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,26 @@ struct SetupGuide: View {
3131

3232
getColor(colorScheme: colorScheme, light: .sprenBodyCompBackgroundLight, dark: .sprenBodyCompBackgroundDark).edgesIgnoringSafeArea(.top)
3333

34+
3435
VStack {
36+
ScrollView {
3537
CloseButton(action: {
36-
self.presentationMode.wrappedValue.dismiss()
38+
self.presentationMode.wrappedValue.dismiss()
3739
}).padding(.horizontal, Autoscale.convert(16))
38-
39-
if SprenUI.config.bundle == .module {
40-
Image(SprenUI.config.graphics[.setupGuide] ?? "", bundle: .module).resizable()
41-
.aspectRatio(contentMode: .fit)
42-
.colorMultiply(.sprenUISecondaryColor.opacity(0.75))
43-
} else {
44-
Image(SprenUI.config.graphics[.setupGuide] ?? "", bundle: .module).resizable()
45-
.aspectRatio(contentMode: .fit)
46-
}
40+
41+
if SprenUI.config.bundle == .module {
42+
Image(SprenUI.config.graphics[.setupGuide] ?? "", bundle: .module).resizable()
43+
.aspectRatio(contentMode: .fit)
44+
.colorMultiply(.sprenUISecondaryColor.opacity(0.75))
45+
} else {
46+
Image(SprenUI.config.graphics[.setupGuide] ?? "", bundle: .module).resizable()
47+
.aspectRatio(contentMode: .fit)
48+
}
4749

4850
title
4951
.padding(.horizontal, Autoscale.convert(16))
5052
.padding(.bottom, Autoscale.convert(16))
51-
53+
5254
VStack(spacing: 8) {
5355
Hint(text: "Find a well-lit location")
5456
Hint(text: "Avoid background objects and furniture")
@@ -57,9 +59,9 @@ struct SetupGuide: View {
5759
Hint(text: "Wear athletic, tightly fitting clothes")
5860
Hint(text: "Take off your shoes")
5961
Hint(text: "Pull your hair back and take off your hat")
60-
}.frame(height: Autoscale.convert(190))
61-
.padding(.horizontal, Autoscale.convert(16))
62-
62+
}.padding(.horizontal, Autoscale.convert(16))
63+
}
64+
6365
Spacer()
6466
button
6567

0 commit comments

Comments
 (0)