Commit 3cb09fa1 by Daniel Dahan

development: issue-571, update that removes contentEdgeInsetsPreset setting in prepare method

parent 124ec56c
......@@ -248,7 +248,6 @@ open class Button: UIButton {
*/
open func prepare() {
contentScaleFactor = Device.scale
contentEdgeInsetsPreset = .none
prepareVisualLayer()
}
......
......@@ -54,6 +54,14 @@ open class CaptureController: ToolbarController, CaptureDelegate, CaptureSession
@IBInspectable
open private(set) lazy var capture: Capture = Capture()
open override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
return UIInterfaceOrientationMask.portrait
}
open override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation {
return UIInterfaceOrientation.portrait
}
/**
Prepares the view instance when intialized. When subclassing,
it is recommended to override the prepare method
......
......@@ -174,7 +174,7 @@ open class View: UIView {
*/
open func prepare() {
contentScaleFactor = Device.scale
backgroundColor = Color.white
backgroundColor = .white
prepareVisualLayer()
}
......
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