marinofaggiana 5 lat temu
rodzic
commit
2bacbc5eaa
1 zmienionych plików z 0 dodań i 10 usunięć
  1. 0 10
      iOSClient/RichWorkspace/NCRichWorkspace.swift

+ 0 - 10
iOSClient/RichWorkspace/NCRichWorkspace.swift

@@ -99,14 +99,4 @@ import SwiftRichString
         textView.isUserInteractionEnabled = false
         textView.sizeToFit()
     }
-    
-    func makeGradientLayer(`for` object : UIView, startPoint : CGPoint, endPoint : CGPoint, gradientColors : [Any]) -> CAGradientLayer {
-        let gradient: CAGradientLayer = CAGradientLayer()
-        gradient.colors = gradientColors
-        gradient.locations = [0.0 , 1.0]
-        gradient.startPoint = startPoint
-        gradient.endPoint = endPoint
-        gradient.frame = CGRect(x: 0, y: 0, width: object.frame.size.width, height: object.frame.size.height)
-        return gradient
-    }
 }