Skip to content

Commit 72f2e45

Browse files
committed
[Chore] #188 - 유저세션정보 주입
1 parent d4e6cf5 commit 72f2e45

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Neki-iOS/APP/Sources/MainTab/MainTabCoordinator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ struct MainTabCoordinator {
153153
}
154154

155155
case .qrScannerPresented:
156-
state.destination = .qrScan(QRCodeScanFeature.State())
156+
state.destination = .qrScan(QRCodeScanFeature.State(user: state.user))
157157
return .none
158158

159159
case .presentPermissionAlert:

Neki-iOS/Features/QRCodeScanner/Sources/Presentation/Sources/Features/QRCodeScanFeature.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import os
1414
struct QRCodeScanFeature {
1515
@ObservableState
1616
struct State {
17+
let user: User
18+
1719
var isLightOn: Bool = false
1820
var isLoading: Bool = false
1921

@@ -105,11 +107,12 @@ struct QRCodeScanFeature {
105107
// MARK: - Scanning Flow
106108
case .codeScanned(let urlString):
107109
guard state.isLoading == false, state.isCameraActive else { return .none }
110+
let user = state.user
108111
state.isLoading = true
109112
Logger.presentation.debug("QR 스캔 감지: \(urlString)")
110113

111114
return .run { send in
112-
await send(.parseQRResult(Result { try await qrScannerClient.parse(urlString) }))
115+
await send(.parseQRResult(Result { try await qrScannerClient.parse(urlString, user) }))
113116
}
114117

115118
case let .parseQRResult(.success(parsed)):

0 commit comments

Comments
 (0)