Explorar el Código

VLCActionSheet: Fix bottomBackgroundView default height

On < iOS 11 devices the height was setted as if it was an iPhoneX

(cherry picked from commit 38f15d839eabb4d61ee38d0d48e8a6b2ee24f9ff)
Soomin Lee hace 7 años
padre
commit
252bed6cb8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Sources/VLCActionSheet/VLCActionSheet.swift

+ 1 - 1
Sources/VLCActionSheet/VLCActionSheet.swift

@@ -105,7 +105,7 @@ class VLCActionSheet: UIViewController {
     }()
 
     fileprivate lazy var bottomBackgroundViewHeightConstraint: NSLayoutConstraint = {
-        let bottomBackgroundViewHeightConstraint = bottomBackgroundView.heightAnchor.constraint(equalToConstant: cellHeight)
+        let bottomBackgroundViewHeightConstraint = bottomBackgroundView.heightAnchor.constraint(equalToConstant: 0)
         return bottomBackgroundViewHeightConstraint
     }()