Skip to content

Commit 97e13f1

Browse files
committed
chore: Presentation 공용 타입을 PresentationShared로 이동
1 parent 8ff41a2 commit 97e13f1

14 files changed

Lines changed: 26 additions & 12 deletions

File tree

Application/Presentation/Sources/Common/Component/LoadingView.swift renamed to Application/Presentation/Shared/Sources/Common/Component/LoadingView.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
//
22
// LoadingView.swift
3-
// Presentation
3+
// PresentationShared
44
//
55
// Created by opfic on 5/16/25.
66
//
77

88
import SwiftUI
9-
import Domain
109

11-
struct LoadingView: View {
12-
var body: some View {
10+
public struct LoadingView: View {
11+
public init() {}
12+
13+
public var body: some View {
1314
ZStack {
1415
Color.gray.opacity(0.001).ignoresSafeArea()
1516
ProgressView()

Application/Presentation/Sources/Common/NavigationRouter.swift renamed to Application/Presentation/Shared/Sources/Common/NavigationRouter.swift

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
//
22
// NavigationRouter.swift
3-
// Presentation
3+
// PresentationShared
44
//
55
// Created by 최윤진 on 1/1/26.
66
//
77

88
import SwiftUI
9-
import Domain
109

1110
@Observable
12-
final class NavigationRouter<Route: Hashable> {
13-
var path: [Route] = []
11+
public final class NavigationRouter<Route: Hashable> {
12+
public var path: [Route] = []
1413

15-
var root: Route? {
14+
public var root: Route? {
1615
path.first
1716
}
1817

19-
var detailPath: [Route] {
18+
public var detailPath: [Route] {
2019
get {
2120
Array(path.dropFirst())
2221
}
@@ -29,11 +28,13 @@ final class NavigationRouter<Route: Hashable> {
2928
}
3029
}
3130

32-
func replace(with route: Route) {
31+
public init() {}
32+
33+
public func replace(with route: Route) {
3334
path = [route]
3435
}
3536

36-
func push(_ route: Route) {
37+
public func push(_ route: Route) {
3738
path.append(route)
3839
}
3940
}

Application/Presentation/Sources/Home/Home/HomeView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import SwiftUI
99
import ComposableArchitecture
1010
import Domain
11+
import PresentationShared
1112

1213
struct HomeView: View {
1314
@Environment(\.openWindow) private var openWindow

Application/Presentation/Sources/Home/Home/HomeViewCoordinator.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import ComposableArchitecture
1010
import Foundation
1111
import Core
1212
import Domain
13+
import PresentationShared
1314

1415
@MainActor
1516
@Observable

Application/Presentation/Sources/Main/MainView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import SwiftUI
99
import ComposableArchitecture
1010
import Core
1111
import Domain
12+
import PresentationShared
1213

1314
struct MainView: View {
1415
@Environment(\.horizontalSizeClass) private var horizontalSizeClass

Application/Presentation/Sources/Profile/ProfileView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import SwiftUI
1010
import ComposableArchitecture
1111
import Core
1212
import Domain
13+
import PresentationShared
1314

1415
struct ProfileView: View {
1516
@Bindable var store: StoreOf<ProfileFeature>

Application/Presentation/Sources/Profile/ProfileViewCoordinator.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import Foundation
99
import ComposableArchitecture
1010
import Core
1111
import Domain
12+
import PresentationShared
1213

1314
@MainActor
1415
@Observable

Application/Presentation/Sources/PushNotification/PushNotificationListView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import SwiftUI
99
import ComposableArchitecture
1010
import Core
11+
import PresentationShared
1112

1213
struct PushNotificationListView: View {
1314
@Environment(\.colorScheme) private var colorScheme

Application/Presentation/Sources/Search/SearchView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import SwiftUI
99
import ComposableArchitecture
1010
import Core
1111
import Domain
12+
import PresentationShared
1213

1314
struct SearchView: View {
1415
@Environment(\.dismiss) private var dismiss

Application/Presentation/Sources/Settings/SettingsView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import SwiftUI
99
import ComposableArchitecture
10+
import PresentationShared
1011

1112
struct SettingsView: View {
1213
@Environment(NavigationRouter<ProfileRoute>.self) private var router

0 commit comments

Comments
 (0)