Commit 98fd7ef7 by Daniel Dahan

development: issue-681: Fixed dropshadow - where by default the dropshadow image…

development: issue-681: Fixed dropshadow - where by default the dropshadow image was not being hidden
parent 8576197f
...@@ -118,7 +118,7 @@ open class BottomNavigationController: UITabBarController { ...@@ -118,7 +118,7 @@ open class BottomNavigationController: UITabBarController {
tabBar.heightPreset = .normal tabBar.heightPreset = .normal
tabBar.depthPreset = .depth1 tabBar.depthPreset = .depth1
tabBar.dividerAlignment = .top tabBar.dividerAlignment = .top
let image = UIImage.image(with: Color.clear, size: CGSize(width: 1, height: 1)) let image = UIImage()
tabBar.shadowImage = image tabBar.shadowImage = image
tabBar.backgroundImage = image tabBar.backgroundImage = image
tabBar.backgroundColor = .white tabBar.backgroundColor = .white
......
...@@ -556,7 +556,7 @@ extension Motion { ...@@ -556,7 +556,7 @@ extension Motion {
/// Prepares the transitionSnapshot. /// Prepares the transitionSnapshot.
fileprivate func prepareTransitionSnapshot() { fileprivate func prepareTransitionSnapshot() {
transitionSnapshot = fromView.transitionSnapshot(afterUpdates: true, shouldHide: false) transitionSnapshot = fromView.transitionSnapshot(afterUpdates: true, shouldHide: false)
transitionSnapshot.frame = fromView.bounds transitionSnapshot.frame = fromView.frame
containerView.insertSubview(transitionSnapshot, aboveSubview: fromView) containerView.insertSubview(transitionSnapshot, aboveSubview: fromView)
} }
......
...@@ -178,7 +178,7 @@ extension UIImage { ...@@ -178,7 +178,7 @@ extension UIImage {
extension UIImage { extension UIImage {
/** /**
Creates an clear image. Creates a clear image.
- Returns: A UIImage that is clear. - Returns: A UIImage that is clear.
*/ */
open class func clear(size: CGSize = CGSize(width: 16, height: 16)) -> UIImage? { open class func clear(size: CGSize = CGSize(width: 16, height: 16)) -> UIImage? {
......
...@@ -296,7 +296,7 @@ open class NavigationBar: UINavigationBar { ...@@ -296,7 +296,7 @@ open class NavigationBar: UINavigationBar {
contentEdgeInsetsPreset = .square1 contentEdgeInsetsPreset = .square1
contentScaleFactor = Screen.scale contentScaleFactor = Screen.scale
backButtonImage = Icon.cm.arrowBack backButtonImage = Icon.cm.arrowBack
let image = UIImage.image(with: .clear, size: CGSize(width: bounds.width, height: bounds.height)) let image = UIImage()
shadowImage = image shadowImage = image
setBackgroundImage(image, for: .default) setBackgroundImage(image, for: .default)
backgroundColor = .white backgroundColor = .white
......
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