From 876338ed0b6171129fb380bbf7b160294361a2b1 Mon Sep 17 00:00:00 2001 From: Mustafa Ozhan Date: Tue, 19 Apr 2022 17:58:24 +0200 Subject: [PATCH] [#653] Temporary disable Slider intro for iOS (#654) --- ios/CCC/UI/MainView.swift | 2 +- ios/CCC/UI/SliderView.swift | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ios/CCC/UI/MainView.swift b/ios/CCC/UI/MainView.swift index d4be217b8d..9ab1be2c08 100644 --- a/ios/CCC/UI/MainView.swift +++ b/ios/CCC/UI/MainView.swift @@ -27,7 +27,7 @@ struct MainView: View { easing: Animation.easeInOut(duration: 0.5) ) { if observable.viewModel.isFistRun() { - SliderView() + CurrenciesView(onBaseChange: { _ in }) } else { CalculatorView() } diff --git a/ios/CCC/UI/SliderView.swift b/ios/CCC/UI/SliderView.swift index b6f67793bd..a99efa00f9 100644 --- a/ios/CCC/UI/SliderView.swift +++ b/ios/CCC/UI/SliderView.swift @@ -5,7 +5,7 @@ // Created by Mustafa Ozhan on 30/01/2021. // Copyright © 2021 orgName. All rights reserved. // - +#if DEBUG import SwiftUI import Resources import NavigationStack @@ -124,3 +124,5 @@ struct SliderViewPreviews: PreviewProvider { SliderView().colorScheme(.light) } } + +#endif