diff --git a/Projects/Feature/FeatureContentList/Sources/ContentList/ContentListFeature.swift b/Projects/Feature/FeatureContentList/Sources/ContentList/ContentListFeature.swift index fca442dd..833a865f 100644 --- a/Projects/Feature/FeatureContentList/Sources/ContentList/ContentListFeature.swift +++ b/Projects/Feature/FeatureContentList/Sources/ContentList/ContentListFeature.swift @@ -82,6 +82,7 @@ public struct ContentListFeature { case 뷰가_나타났을때 case 링크_공유시트_해제 + case 경고시트_해제 } public enum InnerAction: Equatable { @@ -193,6 +194,9 @@ private extension ContentListFeature { case .링크_공유시트_해제: state.shareSheetItem = nil return .none + case .경고시트_해제: + state.alertItem = nil + return .none } } diff --git a/Projects/Feature/FeatureContentList/Sources/ContentList/ContentListView.swift b/Projects/Feature/FeatureContentList/Sources/ContentList/ContentListView.swift index f8ec982b..1e3089e6 100644 --- a/Projects/Feature/FeatureContentList/Sources/ContentList/ContentListView.swift +++ b/Projects/Feature/FeatureContentList/Sources/ContentList/ContentListView.swift @@ -55,8 +55,10 @@ public extension ContentListView { PokitAlert( "링크를 정말 삭제하시겠습니까?", message: "함께 저장한 모든 정보가 삭제되며, \n복구하실 수 없습니다.", - confirmText: "삭제" - ) { send(.컨텐츠_삭제_눌렀을때(content: content)) } + confirmText: "삭제", + action: { send(.컨텐츠_삭제_눌렀을때(content: content)) }, + cancelAction: { send(.경고시트_해제) } + ) } .task { await send(.뷰가_나타났을때, animation: .pokitDissolve).finish() } }