Skip to content

Commit

Permalink
remove IBDesignable and IBInspectable
Browse files Browse the repository at this point in the history
  • Loading branch information
SoyArpad committed Apr 19, 2017
1 parent 7271acf commit 2499e95
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 24 deletions.
4 changes: 2 additions & 2 deletions CircularStepProgressView.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'CircularStepProgressView'
s.version = '1.5.6'
s.version = '1.6.0'
s.summary = 'Circular Progress View with Steps'

s.description = <<-DESC
Expand All @@ -10,7 +10,7 @@ This progress view allows you to mark a progress into a circular line with N ste
s.homepage = 'https://github.com/webuildyouridea/CircularStepProgressView'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Arpad Larrinaga' => '[email protected]' }
s.source = { :git => 'https://github.com/webuildyouridea/CircularStepProgressView.git', :tag => 'v1.5.6' }
s.source = { :git => 'https://github.com/webuildyouridea/CircularStepProgressView.git', :tag => 'v1.6.0' }

s.ios.deployment_target = '8.3'
s.source_files = 'CircularStepProgressView/CircularStepProgressView.swift'
Expand Down
11 changes: 0 additions & 11 deletions CircularStepProgressView/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ASy-cY-3n9" customClass="CircularStepProgressView" customModule="CircularStepProgressView" customModuleProvider="target">
<rect key="frame" x="37" y="183.5" width="300" height="300"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="backColor">
<color key="value" red="1" green="0.50196078430000002" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="fillColor">
<color key="value" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="circleColor">
<color key="value" red="0.0" green="0.80000000000000004" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Qch-rj-yML">
<rect key="frame" x="153.5" y="602" width="67" height="30"/>
Expand Down
10 changes: 1 addition & 9 deletions CircularStepProgressView/CircularStepProgressView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public protocol CircularStepProgressDelegate: class {
func didFinishCompleteAnimation(sender: CircularStepProgressView)
}

@IBDesignable
public class CircularStepProgressView: UIView {

weak public var delegate: CircularStepProgressDelegate?
Expand All @@ -23,55 +22,48 @@ public class CircularStepProgressView: UIView {
var circlePoints:[CAShapeLayer] = []
var pointDuration: CFTimeInterval = 0.4
public var points: Int = 0
@IBInspectable

public var steps: Int = 10 {
didSet {
drawSteps()
}
}
@IBInspectable
public var fillColor: UIColor = UIColor(red: 1.000, green: 0.281, blue: 0.000, alpha: 1.000){
didSet {
configureInitial()
drawSteps()
}
}
@IBInspectable
public var backColor: UIColor = UIColor(red: 0.777, green: 0.751, blue: 0.751, alpha: 1.000){
didSet {
configureInitial()
drawSteps()
}
}
@IBInspectable
public var circleColor: UIColor = UIColor.white{
didSet {
configureInitial()
drawSteps()
}
}
@IBInspectable
public var pathLineWidth:CGFloat = 9.0{
didSet {
configureInitial()
drawSteps()
}
}
@IBInspectable
public var circleLineWidth:CGFloat = 1.0{
didSet {
configureInitial()
drawSteps()
}
}
@IBInspectable
public var padding:CGFloat = 12.0{
didSet {
configureInitial()
drawSteps()
}
}
@IBInspectable
public var circleRadius:CGFloat = 15.0{
didSet {
configureInitial()
Expand Down
4 changes: 2 additions & 2 deletions CircularStepProgressView/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.6.0</string>
<string>1.6.2</string>
<key>CFBundleVersion</key>
<string>20</string>
<string>24</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down

0 comments on commit 2499e95

Please sign in to comment.