feat(event): 이벤트 상세 딥링크와 OneLink를 연결한다

This commit is contained in:
Yu Sung
2026-10-29 15:44:21 +09:00
parent ed92dfbe40
commit c78f7417ab
7 changed files with 595 additions and 10 deletions
+9 -1
View File
@@ -110,8 +110,15 @@ class AppState: ObservableObject {
routeStepMap[route]
}
func setAppStep(step: AppStep) {
func setAppStep(
step: AppStep,
ifCurrentStep matches: ((AppStep) -> Bool)? = nil,
completion: @escaping () -> Void = {}
) {
DispatchQueue.main.async {
defer { completion() }
guard matches?(self.appStep) ?? true else { return }
switch step {
case .splash, .main:
self.liveDetailSheet = nil
@@ -196,6 +203,7 @@ class AppState: ObservableObject {
return
}
pendingExternalNavigationCancelAction?()
pendingExternalNavigationAction = navigationAction
pendingExternalNavigationCancelAction = cancelAction
isShowLeaveLiveNavigationDialog = true