Commit 62bb56cd by Daniel Dahan

development: minor clean up to navigation controllers

parent 957a1bdf
...@@ -112,10 +112,10 @@ open class NavigationController: UINavigationController { ...@@ -112,10 +112,10 @@ open class NavigationController: UINavigationController {
when subclassing. when subclassing.
*/ */
open func prepareView() { open func prepareView() {
edgesForExtendedLayout = []
view.clipsToBounds = true view.clipsToBounds = true
view.backgroundColor = Color.white view.backgroundColor = Color.white
view.contentScaleFactor = Device.scale view.contentScaleFactor = Device.scale
edgesForExtendedLayout = []
// This ensures the panning gesture is available when going back between views. // This ensures the panning gesture is available when going back between views.
if let v = interactivePopGestureRecognizer { if let v = interactivePopGestureRecognizer {
......
...@@ -47,10 +47,10 @@ open class PhotoLibraryController: UIViewController, PhotoLibraryDelegate { ...@@ -47,10 +47,10 @@ open class PhotoLibraryController: UIViewController, PhotoLibraryDelegate {
when subclassing. when subclassing.
*/ */
open func prepareView() { open func prepareView() {
edgesForExtendedLayout = []
view.clipsToBounds = true view.clipsToBounds = true
view.backgroundColor = Color.white view.backgroundColor = Color.white
view.contentScaleFactor = Device.scale view.contentScaleFactor = Device.scale
edgesForExtendedLayout = []
preparePhotoLibrary() preparePhotoLibrary()
} }
......
...@@ -151,10 +151,10 @@ open class RootController: UIViewController { ...@@ -151,10 +151,10 @@ open class RootController: UIViewController {
when subclassing. when subclassing.
*/ */
open func prepareView() { open func prepareView() {
edgesForExtendedLayout = []
view.clipsToBounds = true view.clipsToBounds = true
view.backgroundColor = Color.white view.backgroundColor = Color.white
view.contentScaleFactor = Device.scale view.contentScaleFactor = Device.scale
edgesForExtendedLayout = []
prepareRootViewController() prepareRootViewController()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment