Skip to content

Commit

Permalink
feat: mostTopViewController(of:) 적용하여 알림창 보여줌 (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyun99999 committed Jan 24, 2023
1 parent 6788633 commit 034e8b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ final class MoyaLoggerPlugin: PluginType {
let alertViewController = UIAlertController(title: "네트워크 연결 실패", message: "네트워크 환경을 한번 더 확인해주세요.", preferredStyle: .alert)
alertViewController.addAction(UIAlertAction(title: "확인", style: .default, handler: nil))

let rootViewController = UIApplication.getMostTopViewController()
let rootViewController = UIApplication.mostTopViewController()
rootViewController?.present(alertViewController, animated: true)
}
}
Expand Down

0 comments on commit 034e8b3

Please sign in to comment.