Skip to content

Commit

Permalink
🌱 :: [#123] ProposeMusicFeature / ProposeMusicFeature 기본 파일 세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
baekteun committed Jul 27, 2023
1 parent 8295ce1 commit 9cf7410
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
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
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import BaseFeature
import UIKit

final class ProposeMusicViewController: BaseStoredViewController<ProposeMusicStore> {
}
1 change: 0 additions & 1 deletion Projects/Feature/ProposeMusicFeature/Sources/Source.swift

This file was deleted.

0 comments on commit 9cf7410

Please sign in to comment.