mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
9b2eb80392
* use page view controller * UIPageControl instead of arrows for idiomatic swiping * Nudge title lower * better hit area for dismiss * use darker blue for text * Open privacy settings from callkit update screen * tweak copy * latest translations // FREEBIE
19 lines
462 B
Swift
19 lines
462 B
Swift
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension UIApplication {
|
|
|
|
var frontmostViewController: UIViewController? {
|
|
let window = UIApplication.shared.keyWindow
|
|
var viewController = window!.rootViewController
|
|
while viewController?.presentedViewController != nil {
|
|
viewController = viewController?.presentedViewController
|
|
}
|
|
|
|
return viewController
|
|
}
|
|
|
|
}
|