add customize onboarding views

make tab bar text color selected text color
This commit is contained in:
Trey t
2022-04-05 23:46:01 -05:00
parent 6fa4e2db26
commit 9bf6190bab
12 changed files with 272 additions and 71 deletions

View File

@@ -39,7 +39,7 @@ struct OnboardingDay: View {
GeometryReader { geometry in
VStack {
Spacer()
Image("average", bundle: .main)
Image("good", bundle: .main)
.foregroundColor(Color(UIColor.darkText))
.opacity(0.04)
.scaleEffect(1.2, anchor: .trailing)
@@ -47,12 +47,12 @@ struct OnboardingDay: View {
}
ScrollView {
VStack{
VStack(alignment: .leading) {
Text(String(localized: "onboarding_day_title"))
.font(.title)
.padding()
.fixedSize(horizontal: false, vertical: true)
.foregroundColor(Color(UIColor.white))
.foregroundColor(.black)
Picker(selection: $onboardingData.inputDay,
@@ -62,21 +62,20 @@ struct OnboardingDay: View {
}
}
.padding()
.colorScheme(.dark)
.padding([.trailing, .leading], 55)
.pickerStyle(SegmentedPickerStyle())
Text(previewText)
.font(.body)
.font(.title3)
.padding()
.fixedSize(horizontal: false, vertical: true)
.foregroundColor(Color(UIColor.white))
.foregroundColor(.black)
}
.frame(maxWidth: geometry.size.width)
}
.padding()
}
}
.background(.blue)
.background(Color(hex: "ffd709"))
}
}