Эх сурвалжийг харах

Update NCSectionHeaderMenu.swift

Marino Faggiana 1 жил өмнө
parent
commit
85f98384db

+ 0 - 16
iOSClient/Main/Section Header Footer/NCSectionHeaderMenu.swift

@@ -103,8 +103,6 @@ class NCSectionHeaderMenu: UICollectionReusableView, UIGestureRecognizerDelegate
         transferSeparatorBottom.backgroundColor = .separator
         transferSeparatorTopHeightConstraint.constant = 0.5
         transferSeparatorBottomHeightConstraint.constant = 0.5
-
-        //buttonTransfer.addoverlay(color: .black, alpha: 0.1)
     }
 
     override func layoutSublayers(of layer: CALayer) {
@@ -385,17 +383,3 @@ protocol NCSectionFooterDelegate: AnyObject {
 extension NCSectionFooterDelegate {
     func tapButtonSection(_ sender: Any, metadataForSection: NCMetadataForSection?) {}
 }
-
-extension UIButton {
-    func addoverlay(color: UIColor = .black, alpha: CGFloat = 0.6) {
-        let overlay = UIView()
-        overlay.autoresizingMask = [.flexibleWidth, .flexibleHeight]
-        overlay.frame = bounds
-        overlay.backgroundColor = color
-        overlay.alpha = alpha
-        overlay.isUserInteractionEnabled = true
-        overlay.layer.cornerRadius = 6
-        overlay.layer.masksToBounds = true
-        addSubview(overlay)
-    }
-}