Permalink
Browse files

Disabled status bar update to prevent bug

Updating the status bar in an interactive transition will cause
animation to not complete, when panning fast. Tracked in
rdar://21961293 fix will be included in iOS 9.3
  • Loading branch information...
martinnormark committed Feb 1, 2016
1 parent 621a575 commit 58a27b0abe91580c5fcc0ec3a4071e9a53457860
@@ -9,7 +9,8 @@
import UIKit

class AppNavController: UINavigationController, HalfModalPresentable {
override func preferredStatusBarStyle() -> UIStatusBarStyle {
// // Disabled until rdar://21961293 is fixed in iOS 9.3
/*override func preferredStatusBarStyle() -> UIStatusBarStyle {
return isHalfModalMaximized() ? .Default : .LightContent
}
}*/
}
@@ -46,7 +46,8 @@ class HalfModalPresentationController : UIPresentationController {
if let navController = self.presentedViewController as? UINavigationController {
self.isMaximized = true

navController.setNeedsStatusBarAppearanceUpdate()
// Disabled until rdar://21961293 is fixed in iOS 9.3
//navController.setNeedsStatusBarAppearanceUpdate()
// Force the navigation bar to update its size
navController.navigationBarHidden = true

0 comments on commit 58a27b0

Please sign in to comment.