Commit 957a1bdf by Daniel Dahan

development: updated default settings for PohotoLibraryController,…

development: updated default settings for PohotoLibraryController, SnackbarController, and PageTabBarController
parent 7adf68ce
......@@ -113,8 +113,10 @@ open class NavigationController: UINavigationController {
*/
open func prepareView() {
view.clipsToBounds = true
view.contentScaleFactor = Device.scale
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 {
v.isEnabled = true
......
......@@ -191,9 +191,6 @@ open class PageTabBarController: RootController {
*/
open override func prepareView() {
super.prepareView()
view.clipsToBounds = true
view.backgroundColor = Color.white
view.contentScaleFactor = Device.scale
preparePageTabBar()
}
......
......@@ -50,6 +50,7 @@ open class PhotoLibraryController: UIViewController, PhotoLibraryDelegate {
view.clipsToBounds = true
view.backgroundColor = Color.white
view.contentScaleFactor = Device.scale
edgesForExtendedLayout = []
preparePhotoLibrary()
}
......
......@@ -152,7 +152,8 @@ open class RootController: UIViewController {
*/
open func prepareView() {
view.clipsToBounds = true
view.contentScaleFactor = Device.scale
view.backgroundColor = Color.white
view.contentScaleFactor = Device.scale
edgesForExtendedLayout = []
prepareRootViewController()
}
......
......@@ -145,9 +145,6 @@ open class SnackbarController: RootController {
*/
open override func prepareView() {
super.prepareView()
view.clipsToBounds = true
view.backgroundColor = Color.white
view.contentScaleFactor = Device.scale
prepareSnackbar()
}
......
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