Skip to content

Commit

Permalink
Making stuff public
Browse files Browse the repository at this point in the history
  • Loading branch information
andriadze committed Sep 28, 2017
1 parent 29ba715 commit 3a4bbe9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions CircleLabel/Classes/CircleLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import UIKit

@IBDesignable
class CircleLabel : UIImageView
public class CircleLabel : UIImageView
{
static let DEFAULT_COLOR_SCHEME:[UInt32] = [
public static let DEFAULT_COLOR_SCHEME:[UInt32] = [
0xfff16364,
0xfff58559,
0xfff9a43e,
Expand All @@ -23,63 +23,63 @@ class CircleLabel : UIImageView
0xff805781
]

var COLOR_SCHEME:[UInt32] = CircleLabel.DEFAULT_COLOR_SCHEME{
public var COLOR_SCHEME:[UInt32] = CircleLabel.DEFAULT_COLOR_SCHEME{
didSet{
setCircleAndText();
}
}

@IBInspectable var textColor:UIColor = UIColor.white{
@IBInspectable public var textColor:UIColor = UIColor.white{
didSet{
setCircleAndText()
}
}

@IBInspectable var text:String = "" {
@IBInspectable public var text:String = "" {
didSet{
setCircleAndText()
}
}
@IBInspectable var colorFromText:String = ""{
@IBInspectable public var colorFromText:String = ""{
didSet{
setCircleAndText()
}
}
@IBInspectable var padding:Float = 0.3{
@IBInspectable public var padding:Float = 0.3{
didSet{
setCircleAndText()
}
}

@IBInspectable var useTextColor:Bool = true{
@IBInspectable public var useTextColor:Bool = true{
didSet{
setCircleAndText()
}
}

@IBInspectable var circleColor:UIColor = UIColor.gray{
@IBInspectable public var circleColor:UIColor = UIColor.gray{
didSet{
if(!useTextColor){
setCircleAndText()
}
}
}

@IBInspectable var amountLines:Int = 1{
@IBInspectable public var amountLines:Int = 1{
didSet{
setCircleAndText()
}
}


override init(frame:CGRect)
override public init(frame:CGRect)
{
super.init(frame: frame)

setCircleAndText();
}

init(frame:CGRect, text:String, colorText:String)
public init(frame:CGRect, text:String, colorText:String)
{

super.init(frame: frame)
Expand All @@ -89,7 +89,7 @@ class CircleLabel : UIImageView
setCircleAndText();
}

required init?(coder aDecoder: NSCoder) {
required public init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
setCircleAndText();

Expand Down Expand Up @@ -160,7 +160,7 @@ class CircleLabel : UIImageView

}

override func prepareForInterfaceBuilder()
override public func prepareForInterfaceBuilder()
{
setCircleAndText();
}
Expand Down
Binary file not shown.

0 comments on commit 3a4bbe9

Please sign in to comment.