Skip to content

Commit

Permalink
🥅 :: [#496] LogHistoryViewController 중복 present 방지
Browse files Browse the repository at this point in the history
  • Loading branch information
baekteun committed Apr 25, 2024
1 parent 5741893 commit 933ae99
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Projects/App/Sources/Application/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,10 @@ private extension AppDelegate {
}
guard let topViewController else { break }
let logHistoryViewController = UINavigationController(rootViewController: LogHistoryViewController())
if let nav = topViewController as? UINavigationController {
if let nav = topViewController as? UINavigationController,
!(nav.visibleViewController is LogHistoryViewController) {
nav.visibleViewController?.present(logHistoryViewController, animated: true)
} else {
} else if !(topViewController is LogHistoryViewController) {
topViewController.present(logHistoryViewController, animated: true)
}

Expand Down

0 comments on commit 933ae99

Please sign in to comment.