feat(event): 이벤트 상세 딥링크와 OneLink를 연결한다
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user