Configured and applied SwiftFormat

This commit is contained in:
Stefan Ceriu
2022-09-27 10:17:22 +03:00
committed by Stefan Ceriu
parent ff2e6ddfa7
commit 43c28d23b7
663 changed files with 2329 additions and 2840 deletions

View File

@@ -14,12 +14,12 @@
// limitations under the License.
//
import SwiftUI
import Combine
import SwiftUI
typealias OnboardingSplashScreenViewModelType = StateStoreViewModel<OnboardingSplashScreenViewState,
Never,
OnboardingSplashScreenViewAction>
Never,
OnboardingSplashScreenViewAction>
protocol OnboardingSplashScreenViewModelProtocol {
var completion: ((OnboardingSplashScreenViewModelResult) -> Void)? { get set }
@@ -27,7 +27,6 @@ protocol OnboardingSplashScreenViewModelProtocol {
}
class OnboardingSplashScreenViewModel: OnboardingSplashScreenViewModelType, OnboardingSplashScreenViewModelProtocol {
// MARK: - Properties
// MARK: Private
@@ -55,7 +54,7 @@ class OnboardingSplashScreenViewModel: OnboardingSplashScreenViewModelType, Onbo
state.bindings.pageIndex = (state.bindings.pageIndex + 1) % state.content.count
case .previousPage:
// Prevent the hidden page at index -1 from being shown.
state.bindings.pageIndex = max(0, (state.bindings.pageIndex - 1))
state.bindings.pageIndex = max(0, state.bindings.pageIndex - 1)
case .hiddenPage:
// Hidden page for a nicer animation when looping back to the start.
state.bindings.pageIndex = -1