88
99import UIKit
1010
11- class IconDraw : UIView {
11+ public class IconDraw : UIView {
1212 override init ( frame: CGRect )
1313 {
1414 super. init ( frame: frame)
1515 self . backgroundColor = UIColor . clear
1616 }
1717
18- required init ? ( coder aDecoder: NSCoder ) {
18+ required public init ? ( coder aDecoder: NSCoder ) {
1919 super. init ( coder: aDecoder)
2020 self . backgroundColor = UIColor . clear
2121 }
2222
23- override func prepareForInterfaceBuilder( ) {
23+ override public func prepareForInterfaceBuilder( ) {
2424 self . backgroundColor = UIColor . clear
2525 }
2626
2727}
2828
29- @IBDesignable class FlashIconDraw : IconDraw
29+ @IBDesignable public class FlashIconDraw : IconDraw
3030{
3131 var iconcolor : CGColor !
3232 func CGPointMake( _ x: CGFloat , _ y: CGFloat ) -> CGPoint
@@ -43,7 +43,7 @@ class IconDraw: UIView {
4343 return CGPoint ( x: sx, y: sy)
4444 }
4545
46- override func draw( _ rect: CGRect ) {
46+ override public func draw( _ rect: CGRect ) {
4747 let iconlayers = CAShapeLayer ( )
4848 iconlayers. fillColor = iconcolor
4949 iconlayers. path = drawCanvas1 ( )
@@ -84,7 +84,7 @@ class IconDraw: UIView {
8484}
8585
8686
87- @IBDesignable class SwitchIconDraw : IconDraw
87+ @IBDesignable public class SwitchIconDraw : IconDraw
8888{
8989 var iconcolor : CGColor !
9090 func CGPointMake( _ x: CGFloat , _ y: CGFloat ) -> CGPoint
@@ -101,7 +101,7 @@ class IconDraw: UIView {
101101 return CGPoint ( x: sx, y: sy)
102102 }
103103
104- override func draw( _ rect: CGRect ) {
104+ override public func draw( _ rect: CGRect ) {
105105 let layers = CAShapeLayer ( )
106106 layers. fillColor = iconcolor
107107 layers. path = drawCanvas1 ( )
@@ -171,7 +171,7 @@ class IconDraw: UIView {
171171 }
172172}
173173
174- @IBDesignable class BackIconDraw : IconDraw
174+ @IBDesignable public class BackIconDraw : IconDraw
175175{
176176 var iconcolor : CGColor !
177177 func CGPointMake( _ x: CGFloat , _ y: CGFloat ) -> CGPoint
@@ -190,7 +190,7 @@ class IconDraw: UIView {
190190
191191
192192
193- override func draw( _ rect: CGRect ) {
193+ override public func draw( _ rect: CGRect ) {
194194 let layers = CAShapeLayer ( )
195195 layers. fillColor = UIColor . white. cgColor
196196 layers. path = drawCanvas1 ( )
@@ -240,7 +240,7 @@ class IconDraw: UIView {
240240 }
241241}
242242
243- @IBDesignable class InfinityIconDraw : IconDraw
243+ @IBDesignable public class InfinityIconDraw : IconDraw
244244{
245245 @IBInspectable var testcolor : UIColor = UIColor . black
246246
@@ -258,7 +258,7 @@ class IconDraw: UIView {
258258 return CGPoint ( x: sx, y: sy)
259259 }
260260
261- override func draw( _ rect: CGRect ) {
261+ override public func draw( _ rect: CGRect ) {
262262 let layers = CAShapeLayer ( )
263263 layers. fillColor = UIColor . white. cgColor
264264 layers. path = drawCanvas1 ( )
@@ -299,7 +299,7 @@ class IconDraw: UIView {
299299 }
300300}
301301
302- @IBDesignable class RecordIconDraw : IconDraw
302+ @IBDesignable public class RecordIconDraw : IconDraw
303303{
304304 var iconcolor : CGColor !
305305 func CGPointMake( _ x: CGFloat , _ y: CGFloat ) -> CGPoint
@@ -316,7 +316,7 @@ class IconDraw: UIView {
316316 return CGPoint ( x: sx, y: sy)
317317 }
318318
319- override func draw( _ rect: CGRect ) {
319+ override public func draw( _ rect: CGRect ) {
320320 let layers = CAShapeLayer ( )
321321 layers. fillColor = iconcolor
322322 layers. path = drawCanvas1 ( )
0 commit comments