Commit 62bb56cd by Daniel Dahan

development: minor clean up to navigation controllers

parent 957a1bdf
......@@ -112,10 +112,10 @@ open class NavigationController: UINavigationController {
when subclassing.
*/
open func prepareView() {
view.clipsToBounds = true
edgesForExtendedLayout = []
view.clipsToBounds = true
view.backgroundColor = Color.white
view.contentScaleFactor = Device.scale
edgesForExtendedLayout = []
// This ensures the panning gesture is available when going back between views.
if let v = interactivePopGestureRecognizer {
......
......@@ -47,10 +47,10 @@ open class PhotoLibraryController: UIViewController, PhotoLibraryDelegate {
when subclassing.
*/
open func prepareView() {
edgesForExtendedLayout = []
view.clipsToBounds = true
view.backgroundColor = Color.white
view.contentScaleFactor = Device.scale
edgesForExtendedLayout = []
preparePhotoLibrary()
}
......
......@@ -151,10 +151,10 @@ open class RootController: UIViewController {
when subclassing.
*/
open func prepareView() {
view.clipsToBounds = true
edgesForExtendedLayout = []
view.clipsToBounds = true
view.backgroundColor = Color.white
view.contentScaleFactor = Device.scale
edgesForExtendedLayout = []
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