Skip to content

Commit b5837c1

Browse files
ShapeKim98stealmh
authored andcommitted
[fix] #111 컨텐츠 상세보기 시트 관련 iflet 오류 수정
1 parent b6ded79 commit b5837c1

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

Projects/App/Sources/MainTab/MainTabPath.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,9 @@ public extension MainTabFeature {
135135
let .path(.element(_, action: .알림함(.delegate(.moveToContentEdit(id))))):
136136
return .run { send in await send(.inner(.링크추가및수정이동(contentId: id))) }
137137

138-
/// - 컨텐츠 상세보기 닫힘
139-
case .contentDetail(.dismiss):
138+
/// - 컨텐츠 상세보기 내부 액션 실행
139+
case .contentDetail(.presented(.delegate(.즐겨찾기_갱신_완료))),
140+
.contentDetail(.presented(.delegate(.컨텐츠_조회_완료))):
140141
guard let stackElementId = state.path.ids.last,
141142
let lastPath = state.path.last else {
142143
switch state.selectedTab {

Projects/Feature/FeatureContentDetail/Sources/ContentDetail/ContentDetailFeature.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ public struct ContentDetailFeature {
9494

9595
public enum DelegateAction: Equatable {
9696
case editButtonTapped(contentId: Int)
97+
case 즐겨찾기_갱신_완료
98+
case 컨텐츠_조회_완료
9799
}
98100
}
99101

@@ -216,10 +218,13 @@ private extension ContentDetailFeature {
216218
return .none
217219
case .컨텐츠_상세_조회(content: let content):
218220
state.domain.content = content
219-
return .send(.inner(.parsingURL))
221+
return .run { send in
222+
await send(.delegate(.컨텐츠_조회_완료))
223+
await send(.inner(.parsingURL))
224+
}
220225
case .즐겨찾기_갱신(let favorite):
221226
state.domain.content?.favorites = favorite
222-
return .none
227+
return .send(.delegate(.즐겨찾기_갱신_완료))
223228
case .링크미리보기_presented:
224229
state.showLinkPreview = true
225230
return .none

0 commit comments

Comments
 (0)