Skip to content

Commit

Permalink
[#63] SplashReducer 추가
Browse files Browse the repository at this point in the history
- 파일 및 기본 구조 추가
  • Loading branch information
jayden000106 committed Feb 27, 2025
1 parent 0e70c04 commit 5d32603
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Soomsil-USaint/Application/Feature/Splash/Core/SplashReducer.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
//
// SplashReducer.swift
// Soomsil-USaint
//
// Created by 정지혁 on 2/27/25.
//

import Foundation

import ComposableArchitecture

@Reducer
struct SplashReducer {
@ObservableState
struct State {
@Presents var alert: AlertState<Action.Alert>?
}

enum Action {
case alert(PresentationAction<Alert>)
case checkMinimumVersion
case checkMinimumVersionResponse(Result<String, Error>)
case initialize
case initResponse(Result<StudentInfo, Error>)

enum Alert: Equatable {
case moveAppStoreTapped
}
}

@Dependency(\.remoteConfigClient) var remoteConfigClient

var body: some Reducer<State, Action> {
Reduce { state, action in
return .none
}
}
}

0 comments on commit 5d32603

Please sign in to comment.