diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..6a2596b --- /dev/null +++ b/Package.swift @@ -0,0 +1,7 @@ +import PackageDescription + +let package = Package(name: "TDBadgedCell") + +package.targets = [ + Target(name: "TDBadgedCell", dependencies: []) +] diff --git a/TDBadgedCell.podspec b/TDBadgedCell.podspec index 893be39..52f56fb 100644 --- a/TDBadgedCell.podspec +++ b/TDBadgedCell.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'TDBadgedCell' - s.version = '4.0.1' + s.version = '4.0.2' s.license = { :type => 'MIT', :file => 'LICENSE' } s.summary = 'UITableViewCell subclass that adds a "badgeString" property to table view cells.' s.description = <<-DESC diff --git a/TDBadgedCell/TDBadgedCell.swift b/TDBadgedCell/TDBadgedCell.swift index dd815df..f2bcc95 100644 --- a/TDBadgedCell/TDBadgedCell.swift +++ b/TDBadgedCell/TDBadgedCell.swift @@ -14,7 +14,7 @@ import UIKit class TDBadgedCell: UITableViewCell { /// Badge value - var badgeString : String = "" { + public var badgeString : String = "" { didSet { if(badgeString == "") { badgeView.removeFromSuperview() @@ -27,18 +27,18 @@ class TDBadgedCell: UITableViewCell { } /// Badge background color for normal states - var badgeColor : UIColor = UIColor(red: 0, green: 0.478, blue: 1, alpha: 1.0) + public var badgeColor : UIColor = UIColor(red: 0, green: 0.478, blue: 1, alpha: 1.0) /// Badge background color for highlighted states - var badgeColorHighlighted : UIColor = .darkGray + public var badgeColorHighlighted : UIColor = .darkGray /// Badge font size - var badgeFontSize : Float = 11.0 + public var badgeFontSize : Float = 11.0 /// Badge text color - var badgeTextColor: UIColor? + public var badgeTextColor: UIColor? /// Corner radius of the badge. Set to 0 for square corners. - var badgeRadius : Float = 20 + public var badgeRadius : Float = 20 /// The Badges offset from the right hand side of the Table View Cell - var badgeOffset = CGPoint(x:10, y:0) + public var badgeOffset = CGPoint(x:10, y:0) /// The Image view that the badge will be rendered into private let badgeView = UIImageView()