Skip to content

Commit

Permalink
chore: #146 상수 -> 변수 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
juri123123 committed Jan 24, 2025
1 parent b0b6ae0 commit 13aa3f8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Spoony-iOS/Spoony-iOS/Source/Feature/Explore/Explore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import SwiftUI
import Lottie

struct Explore: View {
@StateObject private var store: ExploreStore
@StateObject var store: ExploreStore

var body: some View {
VStack(spacing: 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class ExploreStore: ObservableObject {
private let network: ExploreProtocol = DefaultExploreService()
// private let network: ExploreProtocol = MockExploreService()

private let navigationManager: NavigationManager
private var navigationManager: NavigationManager

init(navigationManager: NavigationManager) {
self.navigationManager = navigationManager
Expand Down Expand Up @@ -61,7 +61,6 @@ extension ExploreStore {
getFeedList()
state.tempLocation = nil
state.isPresentedLocation = false
// state.isSelectLocationButtonDisabled = true
}

private func changeFilter(filter: FilterType) {
Expand Down
24 changes: 11 additions & 13 deletions Spoony-iOS/Spoony-iOS/Source/Feature/SpoonyTabView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import SwiftUI
//TODO: build 고쳐야함
struct SpoonyTabView: View {

@EnvironmentObject var navigationManager: NavigationManager

init() {
Expand Down Expand Up @@ -38,18 +37,17 @@ struct SpoonyTabView: View {
}
}
case .explore:
// NavigationStack(path: Binding(get: {
// navigationManager.state.explorePath
// }, set: { newValue in
// navigationManager.dispatch(.changePath(newValue, .explore))
// })) {
// Explore(store: .init(navigationManager: navigationManager))
// .navigationDestination(for: ViewType.self) { view in
// navigationManager.build(view)
// .navigationBarBackButtonHidden()
// }
// }
EmptyView()
NavigationStack(path: Binding(get: {
navigationManager.state.explorePath
}, set: { newValue in
navigationManager.dispatch(.changePath(newValue, .explore))
})) {
Explore(store: .init(navigationManager: navigationManager))
.navigationDestination(for: ViewType.self) { view in
navigationManager.build(view)
.navigationBarBackButtonHidden()
}
}
case .register:
NavigationStack(path: Binding(get: {
navigationManager.state.registerPath
Expand Down

0 comments on commit 13aa3f8

Please sign in to comment.