add customize onboarding views
make tab bar text color selected text color
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user