Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
kimscastle committed Nov 1, 2024
2 parents aaa4979 + b0e44d8 commit 1c6d12f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Genti_iOS/Genti_iOS/Application/Router/Router.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ final class Router<Destination: Route> {
isPresented.wrappedValue = nil
}

public func dismissFullScreenCover() {
self.presentingFullScreenCover = nil
}

public func dismissFullScreenCover(_ handler: @escaping () -> Void) {
if let _ = self.presentingFullScreenCover {
self.presentingFullScreenCover = nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ final class TabViewModel: ViewModel {
}
case .disagree:
userdefaultRepository.setOpenChatAgreement(isAgree: false)
self.router.dismissFullScreenCover()
}
} else {
self.router.dismissFullScreenCover()
}
} catch(let error) {
self.handleError(error)
Expand Down

0 comments on commit 1c6d12f

Please sign in to comment.