mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 15:38:28 +02:00
Configured and applied SwiftFormat
This commit is contained in:
committed by
Stefan Ceriu
parent
ff2e6ddfa7
commit
43c28d23b7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user