Commit bf3ccd4 1 parent 3dbe4ee commit bf3ccd4 Copy full SHA for bf3ccd4
File tree 1 file changed +1
-16
lines changed
1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -240,22 +240,7 @@ public extension UIAlertController {
240
240
}
241
241
}
242
242
243
- // TODO: either import EZSE or migrate away
244
- public extension UIApplication {
245
- /// EZSE: Run a block in background after app resigns activity
246
- func runInBackground( _ closure: @escaping ( ) -> Void , expirationHandler: ( ( ) -> Void ) ? = nil ) {
247
- DispatchQueue . main. async {
248
- let taskID : UIBackgroundTaskIdentifier
249
- if let expirationHandler = expirationHandler {
250
- taskID = self . beginBackgroundTask ( expirationHandler: expirationHandler)
251
- } else {
252
- taskID = self . beginBackgroundTask ( expirationHandler: { } )
253
- }
254
- closure ( )
255
- self . endBackgroundTask ( taskID)
256
- }
257
- }
258
-
243
+ fileprivate extension UIApplication {
259
244
/// EZSE: Get the top most view controller from the base view controller; default param is UIWindow's rootViewController
260
245
class func topViewController( _ base: UIViewController ? = UIApplication . shared. keyWindow? . rootViewController) -> UIViewController ? {
261
246
if let nav = base as? UINavigationController {
You can’t perform that action at this time.
0 commit comments