generated from GSM-MSG/MSG-Repository-Generator
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌱 :: [#123] ProposeMusicFeature / ProposeMusicFeature 기본 파일 세팅
- Loading branch information
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
Projects/Feature/ProposeMusicFeature/Sources/Scene/ProposeMusicStore.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import BaseFeature | ||
import Combine | ||
import Moordinator | ||
import Store | ||
|
||
final class ProposeMusicStore: BaseStore { | ||
var route: PassthroughSubject<RoutePath, Never> = .init() | ||
var subscription: Set<AnyCancellable> = .init() | ||
var initialState: State | ||
var stateSubject: CurrentValueSubject<State, Never> | ||
|
||
init() { | ||
self.initialState = .init() | ||
self.stateSubject = .init(initialState) | ||
} | ||
|
||
struct State {} | ||
enum Action {} | ||
enum Mutation {} | ||
} | ||
|
||
extension ProposeMusicStore { | ||
func mutate(state: State, action: Action) -> SideEffect<Mutation, Never> { | ||
.none | ||
} | ||
} | ||
|
||
extension ProposeMusicStore { | ||
func reduce(state: State, mutate: Mutation) -> State { | ||
var newState = state | ||
return newState | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
Projects/Feature/ProposeMusicFeature/Sources/Scene/ProposeMusicViewController.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import BaseFeature | ||
import UIKit | ||
|
||
final class ProposeMusicViewController: BaseStoredViewController<ProposeMusicStore> { | ||
} |
This file was deleted.
Oops, something went wrong.