diff --git a/ios/CCC/UI/Slider/SlideView.swift b/ios/CCC/UI/Slider/SlideView.swift index 2d07a16f6f..60b9e48b6a 100644 --- a/ios/CCC/UI/Slider/SlideView.swift +++ b/ios/CCC/UI/Slider/SlideView.swift @@ -21,7 +21,7 @@ struct SlideView: View { var body: some View { ZStack { - Color(Res.colors().background_strong.get()).edgesIgnoringSafeArea(.all) +// Color(Res.colors().background_strong.get()).edgesIgnoringSafeArea(.all) VStack { Spacer() @@ -31,7 +31,7 @@ struct SlideView: View { image .resize(widthAndHeight: 144.cp()) - .accentColor(Res.colors().text.get()) +// .accentColor(Res.colors().text.get()) .padding(4.cp()) Text(subTitle1) @@ -59,7 +59,7 @@ struct SlideView: View { label: { Text(buttonText) .font(relative: .body) - .foregroundColor(Res.colors().text.get()) +// .foregroundColor(Res.colors().text.get()) } ).padding(top: 10.cp(), leading: 10.cp(), bottom: 15.cp(), trailing: 15.cp()) } @@ -67,3 +67,17 @@ struct SlideView: View { } } } + +struct SlideViewPreviews: PreviewProvider { + static var previews: some View { + SlideView( +// title: MR.strings().slide_intro_title.get() // this doens't work too + title: "Test Title", + image: Image(systemName: "gear"), + subTitle1: "Subtitle 1", + subTitle2: "Subtitle 2", + buttonText: "Button", + buttonAction: {} + ) + } +}