├── .gitignore ├── .travis.yml ├── AMProgressBar.gif ├── AMProgressBar.podspec ├── AMProgressBar └── Classes │ ├── .gitkeep │ └── AMProgressView.swift ├── Example ├── AMProgressBar.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── AMProgressBar-Example.xcscheme ├── AMProgressBar.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── AMProgressBar │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── AMProgressBar.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ ├── project.pbxproj │ │ └── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── Target Support Files │ │ ├── AMProgressBar │ │ ├── AMProgressBar-dummy.m │ │ ├── AMProgressBar-prefix.pch │ │ ├── AMProgressBar-umbrella.h │ │ ├── AMProgressBar.modulemap │ │ ├── AMProgressBar.xcconfig │ │ └── Info.plist │ │ ├── Pods-AMProgressBar_Example │ │ ├── Info.plist │ │ ├── Pods-AMProgressBar_Example-acknowledgements.markdown │ │ ├── Pods-AMProgressBar_Example-acknowledgements.plist │ │ ├── Pods-AMProgressBar_Example-dummy.m │ │ ├── Pods-AMProgressBar_Example-frameworks.sh │ │ ├── Pods-AMProgressBar_Example-resources.sh │ │ ├── Pods-AMProgressBar_Example-umbrella.h │ │ ├── Pods-AMProgressBar_Example.debug.xcconfig │ │ ├── Pods-AMProgressBar_Example.modulemap │ │ └── Pods-AMProgressBar_Example.release.xcconfig │ │ └── Pods-AMProgressBar_Tests │ │ ├── Info.plist │ │ ├── Pods-AMProgressBar_Tests-acknowledgements.markdown │ │ ├── Pods-AMProgressBar_Tests-acknowledgements.plist │ │ ├── Pods-AMProgressBar_Tests-dummy.m │ │ ├── Pods-AMProgressBar_Tests-frameworks.sh │ │ ├── Pods-AMProgressBar_Tests-resources.sh │ │ ├── Pods-AMProgressBar_Tests-umbrella.h │ │ ├── Pods-AMProgressBar_Tests.debug.xcconfig │ │ ├── Pods-AMProgressBar_Tests.modulemap │ │ └── Pods-AMProgressBar_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── README.md ├── _Pods.xcodeproj └── swift_versions /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode10.2 6 | language: swift 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # xcode_project: Example/AMProgressBar.xcworkspace 10 | # xcode_scheme: AMProgressBar-Example 11 | # xcode_destination: platform=iOS Simulator,OS=12.0,name=iPhone X 12 | 13 | before_install: 14 | - gem install cocoapods # Since Travis is not always on latest version 15 | - pod install --project-directory=Example 16 | script: 17 | - set -o pipefail && xcodebuild test -workspace Example/AMProgressBar.xcworkspace -scheme AMProgressBar-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty 18 | - pod lib lint 19 | -------------------------------------------------------------------------------- /AMProgressBar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdul-Moiz/AMProgressBar/a489d6ced17ba8ecccc4fca83b818c8dd02cf0ea/AMProgressBar.gif -------------------------------------------------------------------------------- /AMProgressBar.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'AMProgressBar' 3 | s.version = '0.1.2' 4 | 5 | s.summary = 'Elegant progress bar for your iOS app written in Swift.' 6 | s.homepage = 'https://github.com/Abdul-Moiz/AMProgressBar' 7 | s.license = { :type => 'MIT', :file => 'LICENSE' } 8 | s.author = { 'Abdul Moiz' => 'abdul.moiz1991@gmail.com' } 9 | s.source = { :git => 'https://github.com/Abdul-Moiz/AMProgressBar.git', :tag => s.version.to_s } 10 | s.platform = :ios, '12.0' 11 | s.swift_versions = '5' 12 | 13 | s.description = <<-DESC 14 | Elegant progress bar for your iOS app written in Swift. 15 | 16 | Features 17 | * Up-to-date: Swift 5 18 | * Super easy to use and lightweight 19 | * `IBInspectable` properties can be customized from `Interface Builder` 20 | * Global config file to apply same style across app. 21 | DESC 22 | 23 | s.source_files = 'AMProgressBar/Classes/**/*' 24 | end 25 | -------------------------------------------------------------------------------- /AMProgressBar/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdul-Moiz/AMProgressBar/a489d6ced17ba8ecccc4fca83b818c8dd02cf0ea/AMProgressBar/Classes/.gitkeep -------------------------------------------------------------------------------- /AMProgressBar/Classes/AMProgressView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AMProgressView.swift 3 | // AMProgressView 4 | // 5 | // Created by Abdul Moiz on 2017-04-13. 6 | // Copyright © 2017 AppBakery. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public enum AMProgressBarStripesOrientation: Int { 12 | case vertical = 0 13 | case diagonalRight = 1 14 | case diagonalLeft = 2 15 | } 16 | 17 | public enum AMProgressBarStripesMotion: Int { 18 | case none = 0 19 | case right = 1 20 | case left = -1 21 | } 22 | 23 | public enum AMProgressBarMode: Int { 24 | case determined = 0 25 | case undetermined = 1 26 | } 27 | 28 | public enum AMProgressBarTextPosition: Int { 29 | case topLeft = 0 30 | case topRight = 1 31 | case bottomLeft = 2 32 | case bottomRight = 3 33 | case middleLeft = 4 34 | case middleRight = 5 35 | case middleRightUnderBar = 6 36 | case middle = 7 37 | case onBar = 8 38 | } 39 | 40 | @IBDesignable 41 | open class AMProgressBar: UIView { 42 | // MARK: - Global Configs 43 | public struct config { 44 | // Track Configs 45 | static public var cornerRadius: CGFloat = 10 46 | 47 | static public var borderColor: UIColor = .white 48 | static public var borderWidth: CGFloat = 2 49 | 50 | // Bar Configs 51 | static public var barCornerRadius: CGFloat = 10 52 | static public var barColor: UIColor = .blue 53 | static public var barMode: AMProgressBarMode = .determined 54 | 55 | // Stripes Configs 56 | static public var hideStripes: Bool = false 57 | static public var stripesColor: UIColor = .red 58 | static public var stripesMotion: AMProgressBarStripesMotion = .right 59 | static public var stripesOrientation: AMProgressBarStripesOrientation = .diagonalRight 60 | static public var stripesWidth: CGFloat = 30 61 | static public var stripesSpacing: CGFloat = 30 62 | static public var stripesDelta: CGFloat = 80 63 | 64 | // Percentage Text Config 65 | static public var textColor: UIColor = .black 66 | static public var textFont: UIFont = UIFont.systemFont(ofSize: 18) 67 | static public var textPosition: AMProgressBarTextPosition = .onBar 68 | } 69 | 70 | // MARK: - Inspectable Properties 71 | @IBInspectable open var cornerRadius: CGFloat = config.cornerRadius { 72 | didSet { 73 | configureView() 74 | } 75 | } 76 | 77 | @IBInspectable open var borderColor: UIColor = config.borderColor { 78 | didSet { 79 | configureView() 80 | } 81 | } 82 | 83 | @IBInspectable open var borderWidth: CGFloat = config.borderWidth { 84 | didSet { 85 | configureView() 86 | } 87 | } 88 | 89 | @IBInspectable open var barCornerRadius: CGFloat = config.barCornerRadius { 90 | didSet { 91 | configureView() 92 | } 93 | } 94 | 95 | @IBInspectable open var barColor: UIColor = config.barColor { 96 | didSet { 97 | configureView() 98 | } 99 | } 100 | 101 | @IBInspectable open var barMode: Int = 0 { 102 | didSet { 103 | barMode_ = AMProgressBarMode(rawValue: barMode) ?? .determined 104 | configureView() 105 | } 106 | } 107 | 108 | @IBInspectable open var hideStripes: Bool = config.hideStripes { 109 | didSet { 110 | configureView() 111 | } 112 | } 113 | 114 | @IBInspectable open var stripesColor: UIColor = config.stripesColor { 115 | didSet { 116 | configureView() 117 | } 118 | } 119 | 120 | @IBInspectable open var stripesWidth: CGFloat = config.stripesWidth { 121 | didSet { 122 | configureView() 123 | } 124 | } 125 | 126 | @IBInspectable open var stripesSpacing: CGFloat = config.stripesSpacing { 127 | didSet { 128 | configureView() 129 | } 130 | } 131 | 132 | @IBInspectable open var stripesDelta: CGFloat = config.stripesDelta { 133 | didSet { 134 | configureView() 135 | } 136 | } 137 | 138 | @IBInspectable open var stripesMotion: Int = config.barMode.rawValue { 139 | didSet { 140 | stripesMotion_ = AMProgressBarStripesMotion(rawValue: stripesMotion) ?? .right 141 | configureView() 142 | } 143 | } 144 | 145 | @IBInspectable open var stripesOrientation: Int = config.stripesOrientation.rawValue { 146 | didSet { 147 | stripesOrientation_ = AMProgressBarStripesOrientation(rawValue: stripesOrientation) ?? .diagonalRight 148 | configureView() 149 | } 150 | } 151 | 152 | @IBInspectable open var textColor: UIColor = config.textColor { 153 | didSet { 154 | configureView() 155 | } 156 | } 157 | 158 | @IBInspectable open var textFont: UIFont = config.textFont { 159 | didSet { 160 | configureView() 161 | } 162 | } 163 | 164 | @IBInspectable open var textPosition: Int = config.textPosition.rawValue { 165 | didSet { 166 | textPosition_ = AMProgressBarTextPosition(rawValue: textPosition) ?? .onBar 167 | configureView() 168 | } 169 | } 170 | 171 | @IBInspectable open var progressValue: CGFloat = 0 { 172 | didSet { 173 | if (progressValue >= 1) { 174 | progressValue = 1 175 | } else if (progressValue <= 0) { 176 | progressValue = 0 177 | } 178 | } 179 | } 180 | 181 | // MARK: - Private Properties 182 | private var barMode_: AMProgressBarMode = config.barMode 183 | private var stripesMotion_: AMProgressBarStripesMotion = config.stripesMotion 184 | private var stripesOrientation_: AMProgressBarStripesOrientation = config.stripesOrientation 185 | private var textPosition_: AMProgressBarTextPosition = config.textPosition 186 | 187 | private var barLayer: CAShapeLayer? = nil 188 | private var stripeLayers: [CAShapeLayer]? = nil 189 | private var textLabel: UILabel? = nil 190 | 191 | private var animationDuration: CGFloat = 0.25 192 | 193 | private var customizing: Bool = false 194 | private var isStripesAnimating: Bool = false 195 | 196 | // MARK: - Override properties 197 | open override var isHidden: Bool { 198 | didSet { 199 | if isHidden == false && isStripesAnimating == false { 200 | self.perform(#selector(addStripeAnimation), with: nil, afterDelay: 0.2) 201 | } else if isHidden == true { 202 | isStripesAnimating = false 203 | } 204 | } 205 | } 206 | 207 | // MARK: - UIView Methods 208 | open override func prepareForInterfaceBuilder() { 209 | super.prepareForInterfaceBuilder() 210 | configureView() 211 | } 212 | 213 | public override init(frame: CGRect) { 214 | super.init(frame: frame) 215 | configureView() 216 | } 217 | 218 | required public init?(coder aDecoder: NSCoder) { 219 | super.init(coder: aDecoder) 220 | configureView() 221 | } 222 | 223 | open override func layoutSubviews() { 224 | super.layoutSubviews() 225 | 226 | if barMode_ == .undetermined { 227 | configureView() 228 | } else { 229 | let rect = CGRect(x:0, y: 0, width: frame.width, height: frame.height) 230 | let path = UIBezierPath(roundedRect: rect, cornerRadius: barCornerRadius) 231 | barLayer?.path = path.cgPath 232 | } 233 | } 234 | 235 | deinit { 236 | NotificationCenter.default.removeObserver(self) 237 | } 238 | 239 | // MARK: - Listener Methods 240 | @objc private func resumeActions(notification: Notification) { 241 | addStripeAnimation() 242 | } 243 | 244 | // MARK: - Bulk Customzations 245 | @discardableResult 246 | open func customize(_ block: (_ progressBar: AMProgressBar) -> ()) -> AMProgressBar { 247 | customizing = true 248 | block(self) 249 | customizing = false 250 | configureView() 251 | return self 252 | } 253 | 254 | // MARK: - Configuration Methods 255 | private func configureView() { 256 | if customizing == true { return } 257 | clipsToBounds = false 258 | layer.cornerRadius = cornerRadius 259 | layer.borderWidth = borderWidth 260 | layer.borderColor = borderColor.cgColor 261 | 262 | configureListeners() 263 | configureBarLayer() 264 | configureStripesLayer() 265 | configureText() 266 | addStripeAnimation() 267 | } 268 | 269 | private func configureBarLayer() { 270 | //Remove old bar 271 | if barLayer != nil { 272 | barLayer?.removeFromSuperlayer() 273 | } 274 | 275 | // Calculate new frames 276 | let width = barMode_ == .undetermined ? frame.width : frame.width * progressValue 277 | let frameRect = CGRect(x:0, y: 0, width: width, height: frame.height) 278 | let rect = CGRect(x:0, y: 0, width: frame.width, height: frame.height) 279 | let path = UIBezierPath(roundedRect: rect, cornerRadius: barCornerRadius) 280 | 281 | // Add new bar 282 | barLayer = CAShapeLayer() 283 | barLayer?.anchorPoint = .zero 284 | barLayer?.path = path.cgPath 285 | barLayer?.fillColor = barColor.cgColor 286 | barLayer?.masksToBounds = true 287 | barLayer?.frame = frameRect 288 | barLayer?.cornerRadius = barCornerRadius 289 | barLayer?.zPosition = 1 290 | 291 | self.layer.addSublayer(barLayer!) 292 | } 293 | 294 | private func configureStripesLayer() { 295 | // Remove old stripes 296 | stripeLayers?.forEach({ (layer: CAShapeLayer) in 297 | layer.removeFromSuperlayer() 298 | }) 299 | stripeLayers?.removeAll() 300 | 301 | // if is hide stripes is true then return 302 | if hideStripes == true { return } 303 | 304 | // Add stripes 305 | let stripesCount = Int(frame.width/stripesWidth) 306 | stripeLayers = [] 307 | 308 | for i in -1...stripesCount + 1 { 309 | let stripe = CAShapeLayer() 310 | let rect = CGRect(x:((stripesWidth + stripesSpacing) * CGFloat(i)), y: 0, width: stripesWidth, height: frame.height) 311 | let path = getStripeShape(rect: rect) 312 | 313 | stripe.path = path.cgPath 314 | stripe.fillColor = stripesColor.cgColor 315 | 316 | self.barLayer?.addSublayer(stripe) 317 | stripeLayers?.append(stripe) 318 | } 319 | } 320 | 321 | private func configureText() { 322 | if textLabel != nil { 323 | textLabel?.removeFromSuperview() 324 | } 325 | 326 | textLabel = UILabel() 327 | textLabel?.numberOfLines = 1 328 | textLabel?.font = textFont 329 | textLabel?.textColor = textColor 330 | textLabel?.text = barMode_ == .undetermined ? "" : String(format: "%i%%", Int(progressValue * 100)) 331 | textLabel?.layer.zPosition = 2 332 | textLabel?.sizeToFit() 333 | updateTextPosition() 334 | 335 | self.addSubview(textLabel!) 336 | } 337 | 338 | private func configureListeners() { 339 | NotificationCenter.default.removeObserver(self) 340 | NotificationCenter.default.addObserver(self, selector: #selector(resumeActions(notification:)), name: UIApplication.willEnterForegroundNotification, object: nil) 341 | } 342 | 343 | // MARK: - Helping Methods 344 | // This method will generate stripes path 345 | private func getStripeShape(rect: CGRect) -> UIBezierPath { 346 | var path: UIBezierPath! 347 | switch stripesOrientation_ { 348 | case .diagonalLeft: 349 | let diagonalValue: CGFloat = -40 350 | path = UIBezierPath() 351 | path.move(to: CGPoint(x: rect.origin.x + diagonalValue, y: rect.origin.y)) 352 | path.addLine(to: CGPoint(x: rect.origin.x + rect.width + diagonalValue, y: rect.origin.y)) 353 | path.addLine(to: CGPoint(x: rect.origin.x + rect.width, y: rect.origin.y + rect.height)) 354 | path.addLine(to: CGPoint(x: rect.origin.x, y: rect.origin.y + rect.height)) 355 | 356 | case .diagonalRight: 357 | let diagonalValue: CGFloat = 40 358 | path = UIBezierPath() 359 | path.move(to: CGPoint(x: rect.origin.x + diagonalValue, y: rect.origin.y)) 360 | path.addLine(to: CGPoint(x: rect.origin.x + rect.width + diagonalValue, y: rect.origin.y)) 361 | path.addLine(to: CGPoint(x: rect.origin.x + rect.width, y: rect.origin.y + rect.height)) 362 | path.addLine(to: CGPoint(x: rect.origin.x, y: rect.origin.y + rect.height)) 363 | 364 | case .vertical: 365 | path = UIBezierPath(roundedRect: rect, cornerRadius: 0) 366 | } 367 | 368 | return path 369 | } 370 | 371 | // MARK: - Animation Methods 372 | public func startAnimation() { 373 | addStripeAnimation() 374 | } 375 | 376 | @objc private func addStripeAnimation() { 377 | guard let stripeLayers = stripeLayers, hideStripes == false && stripesMotion_ != .none else { 378 | // If there are any stripes but animation is none 379 | self.isStripesAnimating = false 380 | self.stripeLayers?.forEach { (stripeLayer: CAShapeLayer) in stripeLayer.removeAllAnimations() } 381 | return 382 | } 383 | let direction = stripesMotion_.rawValue 384 | stripeLayers.forEach { (stripeLayer: CAShapeLayer) in 385 | stripeLayer.removeAllAnimations() 386 | let anim = CABasicAnimation(keyPath: "transform.translation.x") 387 | anim.duration = CFTimeInterval(stripesDelta/60) 388 | anim.repeatCount = Float.greatestFiniteMagnitude 389 | anim.fromValue = 0 390 | anim.toValue = (stripesWidth + stripesSpacing) * CGFloat(direction) 391 | stripeLayer.add(anim, forKey: "transform.translation.x") 392 | } 393 | isStripesAnimating = true 394 | } 395 | 396 | // MARK: - Update Methods 397 | private func updateProgress(animated: Bool) { 398 | guard let barLayer = barLayer, barMode_ != .undetermined else { return } 399 | barLayer.removeAllAnimations() 400 | 401 | let oldBounds = barLayer.frame 402 | let newBounds = CGRect(x: 0, y: 0, width: frame.width * progressValue, height: frame.height) 403 | barLayer.bounds = newBounds 404 | 405 | if animated == true { 406 | let anim = CABasicAnimation(keyPath: "bounds") 407 | anim.duration = CFTimeInterval(animationDuration) 408 | anim.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeIn) 409 | anim.fromValue = NSValue(cgRect: oldBounds) 410 | anim.toValue = NSValue(cgRect: newBounds) 411 | anim.isRemovedOnCompletion = true 412 | barLayer.add(anim, forKey: "bounds") 413 | } 414 | } 415 | 416 | private func updateTextPosition(animated: Bool = false) { 417 | guard let textLabel = textLabel else { return } 418 | clipsToBounds = false 419 | textLabel.layer.zPosition = 2 420 | textLabel.layer.anchorPoint = CGPoint(x: 0.5, y: 0.5) 421 | 422 | switch textPosition_ { 423 | case .topLeft: 424 | textLabel.center = CGPoint(x: textLabel.frame.width/2, y: -textLabel.frame.height/2) 425 | 426 | case .topRight: 427 | textLabel.center = CGPoint(x: frame.width - textLabel.frame.width/2, y: -textLabel.frame.height/2) 428 | 429 | case .bottomLeft: 430 | textLabel.center = CGPoint(x: textLabel.frame.width/2, y: frame.height + textLabel.frame.height/2) 431 | 432 | case .bottomRight: 433 | textLabel.center = CGPoint(x: frame.width - textLabel.frame.width/2, y: frame.height + textLabel.frame.height/2) 434 | 435 | case .middleLeft: 436 | textLabel.center = CGPoint(x: textLabel.frame.width/2 + 10, y: frame.height/2) 437 | 438 | case .middleRight: 439 | textLabel.center = CGPoint(x: frame.width - textLabel.frame.width/2 - 10, y: frame.height/2) 440 | 441 | case .middleRightUnderBar: 442 | textLabel.layer.zPosition = 0 443 | textLabel.center = CGPoint(x: frame.width - textLabel.frame.width/2 - 10, y: frame.height/2) 444 | 445 | case .middle: 446 | textLabel.center = CGPoint(x: frame.width/2, y: frame.height/2) 447 | 448 | case .onBar: 449 | clipsToBounds = true 450 | textLabel.layer.anchorPoint = CGPoint(x: 1, y: 0.5) 451 | let oldCenter = textLabel.layer.position 452 | let newCenter = CGPoint(x: (frame.width * progressValue) - 10, y: frame.height/2) 453 | textLabel.layer.position = newCenter 454 | 455 | if animated == true { 456 | textLabel.layer.removeAllAnimations() 457 | 458 | let anim = CABasicAnimation(keyPath: "position") 459 | anim.duration = CFTimeInterval(animationDuration) 460 | anim.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeIn) 461 | anim.fromValue = NSValue(cgPoint: oldCenter) 462 | anim.toValue = NSValue(cgPoint: newCenter) 463 | anim.isRemovedOnCompletion = true 464 | textLabel.layer.add(anim, forKey: "position") 465 | } 466 | } 467 | } 468 | 469 | // MARK: - Public Methods 470 | public func setProgress(progress: CGFloat, animated: Bool) { 471 | progressValue = progress 472 | textLabel?.text = barMode_ == .undetermined ? "" : String(format: "%i%%", Int(progressValue * 100)) 473 | textLabel?.sizeToFit() 474 | updateTextPosition(animated: animated) 475 | updateProgress(animated: animated) 476 | } 477 | } 478 | -------------------------------------------------------------------------------- /Example/AMProgressBar.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 5C3051724092390856488846 /* Pods_AMProgressBar_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 642547F0A58E9615E486E058 /* Pods_AMProgressBar_Example.framework */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 16 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 17 | A6DDB153933B1F0D38A13D75 /* Pods_AMProgressBar_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 59C84F2657C9AE4F5F75DB15 /* Pods_AMProgressBar_Tests.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = AMProgressBar; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 1F420854100789784CF7FB8E /* AMProgressBar.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = AMProgressBar.podspec; path = ../AMProgressBar.podspec; sourceTree = ""; }; 32 | 271045CF3D026073441E91E9 /* Pods-AMProgressBar_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AMProgressBar_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-AMProgressBar_Example/Pods-AMProgressBar_Example.debug.xcconfig"; sourceTree = ""; }; 33 | 454858EF89AB61D1E1863D0B /* Pods-AMProgressBar_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AMProgressBar_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-AMProgressBar_Example/Pods-AMProgressBar_Example.release.xcconfig"; sourceTree = ""; }; 34 | 481447A01317D620165C5FA1 /* Pods-AMProgressBar_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AMProgressBar_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-AMProgressBar_Tests/Pods-AMProgressBar_Tests.debug.xcconfig"; sourceTree = ""; }; 35 | 59C84F2657C9AE4F5F75DB15 /* Pods_AMProgressBar_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AMProgressBar_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 607FACD01AFB9204008FA782 /* AMProgressBar_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AMProgressBar_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 38 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 39 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 40 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 41 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 42 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 43 | 607FACE51AFB9204008FA782 /* AMProgressBar_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AMProgressBar_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 46 | 642547F0A58E9615E486E058 /* Pods_AMProgressBar_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AMProgressBar_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 7756CEA9700CD35CD7773ACC /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 48 | 9F29B59EB5167B75D1E673E9 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 49 | A9E726EB7A105F624B9DD27F /* Pods-AMProgressBar_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AMProgressBar_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-AMProgressBar_Tests/Pods-AMProgressBar_Tests.release.xcconfig"; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 5C3051724092390856488846 /* Pods_AMProgressBar_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | A6DDB153933B1F0D38A13D75 /* Pods_AMProgressBar_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 1BCA43B031D1A869EA782011 /* Frameworks */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 642547F0A58E9615E486E058 /* Pods_AMProgressBar_Example.framework */, 76 | 59C84F2657C9AE4F5F75DB15 /* Pods_AMProgressBar_Tests.framework */, 77 | ); 78 | name = Frameworks; 79 | sourceTree = ""; 80 | }; 81 | 607FACC71AFB9204008FA782 = { 82 | isa = PBXGroup; 83 | children = ( 84 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 85 | 607FACD21AFB9204008FA782 /* Example for AMProgressBar */, 86 | 607FACE81AFB9204008FA782 /* Tests */, 87 | 607FACD11AFB9204008FA782 /* Products */, 88 | B02CF23790F8C613AA657410 /* Pods */, 89 | 1BCA43B031D1A869EA782011 /* Frameworks */, 90 | ); 91 | sourceTree = ""; 92 | }; 93 | 607FACD11AFB9204008FA782 /* Products */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 607FACD01AFB9204008FA782 /* AMProgressBar_Example.app */, 97 | 607FACE51AFB9204008FA782 /* AMProgressBar_Tests.xctest */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | 607FACD21AFB9204008FA782 /* Example for AMProgressBar */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 106 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 107 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 108 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 109 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 110 | 607FACD31AFB9204008FA782 /* Supporting Files */, 111 | ); 112 | name = "Example for AMProgressBar"; 113 | path = AMProgressBar; 114 | sourceTree = ""; 115 | }; 116 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 607FACD41AFB9204008FA782 /* Info.plist */, 120 | ); 121 | name = "Supporting Files"; 122 | sourceTree = ""; 123 | }; 124 | 607FACE81AFB9204008FA782 /* Tests */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 128 | 607FACE91AFB9204008FA782 /* Supporting Files */, 129 | ); 130 | path = Tests; 131 | sourceTree = ""; 132 | }; 133 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 607FACEA1AFB9204008FA782 /* Info.plist */, 137 | ); 138 | name = "Supporting Files"; 139 | sourceTree = ""; 140 | }; 141 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | 1F420854100789784CF7FB8E /* AMProgressBar.podspec */, 145 | 7756CEA9700CD35CD7773ACC /* README.md */, 146 | 9F29B59EB5167B75D1E673E9 /* LICENSE */, 147 | ); 148 | name = "Podspec Metadata"; 149 | sourceTree = ""; 150 | }; 151 | B02CF23790F8C613AA657410 /* Pods */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 271045CF3D026073441E91E9 /* Pods-AMProgressBar_Example.debug.xcconfig */, 155 | 454858EF89AB61D1E1863D0B /* Pods-AMProgressBar_Example.release.xcconfig */, 156 | 481447A01317D620165C5FA1 /* Pods-AMProgressBar_Tests.debug.xcconfig */, 157 | A9E726EB7A105F624B9DD27F /* Pods-AMProgressBar_Tests.release.xcconfig */, 158 | ); 159 | name = Pods; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* AMProgressBar_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AMProgressBar_Example" */; 168 | buildPhases = ( 169 | FB68EE7403ACF0D4D0CA7A07 /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | EFCBB081D49AEB6FEA837637 /* [CP] Embed Pods Frameworks */, 174 | 7383C3D25AEF5DD848937F91 /* [CP] Copy Pods Resources */, 175 | ); 176 | buildRules = ( 177 | ); 178 | dependencies = ( 179 | ); 180 | name = AMProgressBar_Example; 181 | productName = AMProgressBar; 182 | productReference = 607FACD01AFB9204008FA782 /* AMProgressBar_Example.app */; 183 | productType = "com.apple.product-type.application"; 184 | }; 185 | 607FACE41AFB9204008FA782 /* AMProgressBar_Tests */ = { 186 | isa = PBXNativeTarget; 187 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AMProgressBar_Tests" */; 188 | buildPhases = ( 189 | 2D9939B71A4DBD7DA25024B2 /* [CP] Check Pods Manifest.lock */, 190 | 607FACE11AFB9204008FA782 /* Sources */, 191 | 607FACE21AFB9204008FA782 /* Frameworks */, 192 | 607FACE31AFB9204008FA782 /* Resources */, 193 | 9A0E370431B60741903954D3 /* [CP] Embed Pods Frameworks */, 194 | 8B51EFBA862D0AC4394DBF9F /* [CP] Copy Pods Resources */, 195 | ); 196 | buildRules = ( 197 | ); 198 | dependencies = ( 199 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 200 | ); 201 | name = AMProgressBar_Tests; 202 | productName = Tests; 203 | productReference = 607FACE51AFB9204008FA782 /* AMProgressBar_Tests.xctest */; 204 | productType = "com.apple.product-type.bundle.unit-test"; 205 | }; 206 | /* End PBXNativeTarget section */ 207 | 208 | /* Begin PBXProject section */ 209 | 607FACC81AFB9204008FA782 /* Project object */ = { 210 | isa = PBXProject; 211 | attributes = { 212 | LastSwiftUpdateCheck = 0720; 213 | LastUpgradeCheck = 0820; 214 | ORGANIZATIONNAME = CocoaPods; 215 | TargetAttributes = { 216 | 607FACCF1AFB9204008FA782 = { 217 | CreatedOnToolsVersion = 6.3.1; 218 | LastSwiftMigration = 1020; 219 | }; 220 | 607FACE41AFB9204008FA782 = { 221 | CreatedOnToolsVersion = 6.3.1; 222 | LastSwiftMigration = 1020; 223 | TestTargetID = 607FACCF1AFB9204008FA782; 224 | }; 225 | }; 226 | }; 227 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "AMProgressBar" */; 228 | compatibilityVersion = "Xcode 3.2"; 229 | developmentRegion = English; 230 | hasScannedForEncodings = 0; 231 | knownRegions = ( 232 | English, 233 | en, 234 | Base, 235 | ); 236 | mainGroup = 607FACC71AFB9204008FA782; 237 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 238 | projectDirPath = ""; 239 | projectRoot = ""; 240 | targets = ( 241 | 607FACCF1AFB9204008FA782 /* AMProgressBar_Example */, 242 | 607FACE41AFB9204008FA782 /* AMProgressBar_Tests */, 243 | ); 244 | }; 245 | /* End PBXProject section */ 246 | 247 | /* Begin PBXResourcesBuildPhase section */ 248 | 607FACCE1AFB9204008FA782 /* Resources */ = { 249 | isa = PBXResourcesBuildPhase; 250 | buildActionMask = 2147483647; 251 | files = ( 252 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 253 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 254 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 255 | ); 256 | runOnlyForDeploymentPostprocessing = 0; 257 | }; 258 | 607FACE31AFB9204008FA782 /* Resources */ = { 259 | isa = PBXResourcesBuildPhase; 260 | buildActionMask = 2147483647; 261 | files = ( 262 | ); 263 | runOnlyForDeploymentPostprocessing = 0; 264 | }; 265 | /* End PBXResourcesBuildPhase section */ 266 | 267 | /* Begin PBXShellScriptBuildPhase section */ 268 | 2D9939B71A4DBD7DA25024B2 /* [CP] Check Pods Manifest.lock */ = { 269 | isa = PBXShellScriptBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | ); 273 | inputPaths = ( 274 | ); 275 | name = "[CP] Check Pods Manifest.lock"; 276 | outputPaths = ( 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | shellPath = /bin/sh; 280 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; 281 | showEnvVarsInLog = 0; 282 | }; 283 | 7383C3D25AEF5DD848937F91 /* [CP] Copy Pods Resources */ = { 284 | isa = PBXShellScriptBuildPhase; 285 | buildActionMask = 2147483647; 286 | files = ( 287 | ); 288 | inputPaths = ( 289 | ); 290 | name = "[CP] Copy Pods Resources"; 291 | outputPaths = ( 292 | ); 293 | runOnlyForDeploymentPostprocessing = 0; 294 | shellPath = /bin/sh; 295 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AMProgressBar_Example/Pods-AMProgressBar_Example-resources.sh\"\n"; 296 | showEnvVarsInLog = 0; 297 | }; 298 | 8B51EFBA862D0AC4394DBF9F /* [CP] Copy Pods Resources */ = { 299 | isa = PBXShellScriptBuildPhase; 300 | buildActionMask = 2147483647; 301 | files = ( 302 | ); 303 | inputPaths = ( 304 | ); 305 | name = "[CP] Copy Pods Resources"; 306 | outputPaths = ( 307 | ); 308 | runOnlyForDeploymentPostprocessing = 0; 309 | shellPath = /bin/sh; 310 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AMProgressBar_Tests/Pods-AMProgressBar_Tests-resources.sh\"\n"; 311 | showEnvVarsInLog = 0; 312 | }; 313 | 9A0E370431B60741903954D3 /* [CP] Embed Pods Frameworks */ = { 314 | isa = PBXShellScriptBuildPhase; 315 | buildActionMask = 2147483647; 316 | files = ( 317 | ); 318 | inputPaths = ( 319 | ); 320 | name = "[CP] Embed Pods Frameworks"; 321 | outputPaths = ( 322 | ); 323 | runOnlyForDeploymentPostprocessing = 0; 324 | shellPath = /bin/sh; 325 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AMProgressBar_Tests/Pods-AMProgressBar_Tests-frameworks.sh\"\n"; 326 | showEnvVarsInLog = 0; 327 | }; 328 | EFCBB081D49AEB6FEA837637 /* [CP] Embed Pods Frameworks */ = { 329 | isa = PBXShellScriptBuildPhase; 330 | buildActionMask = 2147483647; 331 | files = ( 332 | ); 333 | inputPaths = ( 334 | ); 335 | name = "[CP] Embed Pods Frameworks"; 336 | outputPaths = ( 337 | ); 338 | runOnlyForDeploymentPostprocessing = 0; 339 | shellPath = /bin/sh; 340 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AMProgressBar_Example/Pods-AMProgressBar_Example-frameworks.sh\"\n"; 341 | showEnvVarsInLog = 0; 342 | }; 343 | FB68EE7403ACF0D4D0CA7A07 /* [CP] Check Pods Manifest.lock */ = { 344 | isa = PBXShellScriptBuildPhase; 345 | buildActionMask = 2147483647; 346 | files = ( 347 | ); 348 | inputPaths = ( 349 | ); 350 | name = "[CP] Check Pods Manifest.lock"; 351 | outputPaths = ( 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | shellPath = /bin/sh; 355 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; 356 | showEnvVarsInLog = 0; 357 | }; 358 | /* End PBXShellScriptBuildPhase section */ 359 | 360 | /* Begin PBXSourcesBuildPhase section */ 361 | 607FACCC1AFB9204008FA782 /* Sources */ = { 362 | isa = PBXSourcesBuildPhase; 363 | buildActionMask = 2147483647; 364 | files = ( 365 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 366 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 367 | ); 368 | runOnlyForDeploymentPostprocessing = 0; 369 | }; 370 | 607FACE11AFB9204008FA782 /* Sources */ = { 371 | isa = PBXSourcesBuildPhase; 372 | buildActionMask = 2147483647; 373 | files = ( 374 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 375 | ); 376 | runOnlyForDeploymentPostprocessing = 0; 377 | }; 378 | /* End PBXSourcesBuildPhase section */ 379 | 380 | /* Begin PBXTargetDependency section */ 381 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 382 | isa = PBXTargetDependency; 383 | target = 607FACCF1AFB9204008FA782 /* AMProgressBar_Example */; 384 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 385 | }; 386 | /* End PBXTargetDependency section */ 387 | 388 | /* Begin PBXVariantGroup section */ 389 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 390 | isa = PBXVariantGroup; 391 | children = ( 392 | 607FACDA1AFB9204008FA782 /* Base */, 393 | ); 394 | name = Main.storyboard; 395 | sourceTree = ""; 396 | }; 397 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 398 | isa = PBXVariantGroup; 399 | children = ( 400 | 607FACDF1AFB9204008FA782 /* Base */, 401 | ); 402 | name = LaunchScreen.xib; 403 | sourceTree = ""; 404 | }; 405 | /* End PBXVariantGroup section */ 406 | 407 | /* Begin XCBuildConfiguration section */ 408 | 607FACED1AFB9204008FA782 /* Debug */ = { 409 | isa = XCBuildConfiguration; 410 | buildSettings = { 411 | ALWAYS_SEARCH_USER_PATHS = NO; 412 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 413 | CLANG_CXX_LIBRARY = "libc++"; 414 | CLANG_ENABLE_MODULES = YES; 415 | CLANG_ENABLE_OBJC_ARC = YES; 416 | CLANG_WARN_BOOL_CONVERSION = YES; 417 | CLANG_WARN_CONSTANT_CONVERSION = YES; 418 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 419 | CLANG_WARN_EMPTY_BODY = YES; 420 | CLANG_WARN_ENUM_CONVERSION = YES; 421 | CLANG_WARN_INFINITE_RECURSION = YES; 422 | CLANG_WARN_INT_CONVERSION = YES; 423 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 424 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 425 | CLANG_WARN_UNREACHABLE_CODE = YES; 426 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 427 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 428 | COPY_PHASE_STRIP = NO; 429 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 430 | ENABLE_STRICT_OBJC_MSGSEND = YES; 431 | ENABLE_TESTABILITY = YES; 432 | GCC_C_LANGUAGE_STANDARD = gnu99; 433 | GCC_DYNAMIC_NO_PIC = NO; 434 | GCC_NO_COMMON_BLOCKS = YES; 435 | GCC_OPTIMIZATION_LEVEL = 0; 436 | GCC_PREPROCESSOR_DEFINITIONS = ( 437 | "DEBUG=1", 438 | "$(inherited)", 439 | ); 440 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 441 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 442 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 443 | GCC_WARN_UNDECLARED_SELECTOR = YES; 444 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 445 | GCC_WARN_UNUSED_FUNCTION = YES; 446 | GCC_WARN_UNUSED_VARIABLE = YES; 447 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 448 | MTL_ENABLE_DEBUG_INFO = YES; 449 | ONLY_ACTIVE_ARCH = YES; 450 | SDKROOT = iphoneos; 451 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 452 | }; 453 | name = Debug; 454 | }; 455 | 607FACEE1AFB9204008FA782 /* Release */ = { 456 | isa = XCBuildConfiguration; 457 | buildSettings = { 458 | ALWAYS_SEARCH_USER_PATHS = NO; 459 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 460 | CLANG_CXX_LIBRARY = "libc++"; 461 | CLANG_ENABLE_MODULES = YES; 462 | CLANG_ENABLE_OBJC_ARC = YES; 463 | CLANG_WARN_BOOL_CONVERSION = YES; 464 | CLANG_WARN_CONSTANT_CONVERSION = YES; 465 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 466 | CLANG_WARN_EMPTY_BODY = YES; 467 | CLANG_WARN_ENUM_CONVERSION = YES; 468 | CLANG_WARN_INFINITE_RECURSION = YES; 469 | CLANG_WARN_INT_CONVERSION = YES; 470 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 471 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 472 | CLANG_WARN_UNREACHABLE_CODE = YES; 473 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 474 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 475 | COPY_PHASE_STRIP = NO; 476 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 477 | ENABLE_NS_ASSERTIONS = NO; 478 | ENABLE_STRICT_OBJC_MSGSEND = YES; 479 | GCC_C_LANGUAGE_STANDARD = gnu99; 480 | GCC_NO_COMMON_BLOCKS = YES; 481 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 482 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 483 | GCC_WARN_UNDECLARED_SELECTOR = YES; 484 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 485 | GCC_WARN_UNUSED_FUNCTION = YES; 486 | GCC_WARN_UNUSED_VARIABLE = YES; 487 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 488 | MTL_ENABLE_DEBUG_INFO = NO; 489 | SDKROOT = iphoneos; 490 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 491 | VALIDATE_PRODUCT = YES; 492 | }; 493 | name = Release; 494 | }; 495 | 607FACF01AFB9204008FA782 /* Debug */ = { 496 | isa = XCBuildConfiguration; 497 | baseConfigurationReference = 271045CF3D026073441E91E9 /* Pods-AMProgressBar_Example.debug.xcconfig */; 498 | buildSettings = { 499 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 500 | INFOPLIST_FILE = AMProgressBar/Info.plist; 501 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 502 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 503 | MODULE_NAME = ExampleApp; 504 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 505 | PRODUCT_NAME = "$(TARGET_NAME)"; 506 | SWIFT_VERSION = 5.0; 507 | }; 508 | name = Debug; 509 | }; 510 | 607FACF11AFB9204008FA782 /* Release */ = { 511 | isa = XCBuildConfiguration; 512 | baseConfigurationReference = 454858EF89AB61D1E1863D0B /* Pods-AMProgressBar_Example.release.xcconfig */; 513 | buildSettings = { 514 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 515 | INFOPLIST_FILE = AMProgressBar/Info.plist; 516 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 517 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 518 | MODULE_NAME = ExampleApp; 519 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 520 | PRODUCT_NAME = "$(TARGET_NAME)"; 521 | SWIFT_VERSION = 5.0; 522 | }; 523 | name = Release; 524 | }; 525 | 607FACF31AFB9204008FA782 /* Debug */ = { 526 | isa = XCBuildConfiguration; 527 | baseConfigurationReference = 481447A01317D620165C5FA1 /* Pods-AMProgressBar_Tests.debug.xcconfig */; 528 | buildSettings = { 529 | FRAMEWORK_SEARCH_PATHS = ( 530 | "$(SDKROOT)/Developer/Library/Frameworks", 531 | "$(inherited)", 532 | ); 533 | GCC_PREPROCESSOR_DEFINITIONS = ( 534 | "DEBUG=1", 535 | "$(inherited)", 536 | ); 537 | INFOPLIST_FILE = Tests/Info.plist; 538 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 539 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 540 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 541 | PRODUCT_NAME = "$(TARGET_NAME)"; 542 | SWIFT_VERSION = 5.0; 543 | }; 544 | name = Debug; 545 | }; 546 | 607FACF41AFB9204008FA782 /* Release */ = { 547 | isa = XCBuildConfiguration; 548 | baseConfigurationReference = A9E726EB7A105F624B9DD27F /* Pods-AMProgressBar_Tests.release.xcconfig */; 549 | buildSettings = { 550 | FRAMEWORK_SEARCH_PATHS = ( 551 | "$(SDKROOT)/Developer/Library/Frameworks", 552 | "$(inherited)", 553 | ); 554 | INFOPLIST_FILE = Tests/Info.plist; 555 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 556 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 557 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 558 | PRODUCT_NAME = "$(TARGET_NAME)"; 559 | SWIFT_VERSION = 5.0; 560 | }; 561 | name = Release; 562 | }; 563 | /* End XCBuildConfiguration section */ 564 | 565 | /* Begin XCConfigurationList section */ 566 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "AMProgressBar" */ = { 567 | isa = XCConfigurationList; 568 | buildConfigurations = ( 569 | 607FACED1AFB9204008FA782 /* Debug */, 570 | 607FACEE1AFB9204008FA782 /* Release */, 571 | ); 572 | defaultConfigurationIsVisible = 0; 573 | defaultConfigurationName = Release; 574 | }; 575 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AMProgressBar_Example" */ = { 576 | isa = XCConfigurationList; 577 | buildConfigurations = ( 578 | 607FACF01AFB9204008FA782 /* Debug */, 579 | 607FACF11AFB9204008FA782 /* Release */, 580 | ); 581 | defaultConfigurationIsVisible = 0; 582 | defaultConfigurationName = Release; 583 | }; 584 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AMProgressBar_Tests" */ = { 585 | isa = XCConfigurationList; 586 | buildConfigurations = ( 587 | 607FACF31AFB9204008FA782 /* Debug */, 588 | 607FACF41AFB9204008FA782 /* Release */, 589 | ); 590 | defaultConfigurationIsVisible = 0; 591 | defaultConfigurationName = Release; 592 | }; 593 | /* End XCConfigurationList section */ 594 | }; 595 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 596 | } 597 | -------------------------------------------------------------------------------- /Example/AMProgressBar.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/AMProgressBar.xcodeproj/xcshareddata/xcschemes/AMProgressBar-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /Example/AMProgressBar.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/AMProgressBar.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/AMProgressBar/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // AMProgressBar 4 | // 5 | // Created by acct= on 04/21/2017. 6 | // Copyright (c) 2017 acct=. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/AMProgressBar/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/AMProgressBar/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | -------------------------------------------------------------------------------- /Example/AMProgressBar/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /Example/AMProgressBar/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/AMProgressBar/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // AMProgressBar 4 | // 5 | // Created by acct= on 04/21/2017. 6 | // Copyright (c) 2017 acct=. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import AMProgressBar 11 | 12 | class ViewController: UIViewController { 13 | 14 | @IBOutlet weak var progressBar1: AMProgressBar! 15 | @IBOutlet weak var progressBar2: AMProgressBar! 16 | @IBOutlet weak var progressBar3: AMProgressBar! 17 | @IBOutlet weak var progressBar4: AMProgressBar! 18 | @IBOutlet weak var progressBar5: AMProgressBar! 19 | @IBOutlet weak var progressBar6: AMProgressBar! 20 | 21 | override func viewDidLoad() { 22 | super.viewDidLoad() 23 | // Do any additional setup after loading the view, typically from a nib. 24 | testAnimation() 25 | 26 | // Global Config 27 | AMProgressBar.config.barColor = .blue 28 | AMProgressBar.config.barCornerRadius = 10 29 | AMProgressBar.config.barMode = .determined // .undetermined 30 | 31 | AMProgressBar.config.borderColor = .white 32 | AMProgressBar.config.borderWidth = 2 33 | 34 | AMProgressBar.config.cornerRadius = 10 35 | 36 | AMProgressBar.config.hideStripes = false 37 | 38 | AMProgressBar.config.stripesColor = .red 39 | AMProgressBar.config.stripesDelta = 80 40 | AMProgressBar.config.stripesMotion = .right // .none or .left 41 | AMProgressBar.config.stripesOrientation = .diagonalRight // .diagonalLeft or .vertical 42 | AMProgressBar.config.stripesWidth = 30 43 | 44 | AMProgressBar.config.textColor = .black 45 | AMProgressBar.config.textFont = UIFont.systemFont(ofSize: 12) 46 | AMProgressBar.config.textPosition = .onBar // AMProgressBarTextPosition 47 | 48 | let progressBar = AMProgressBar(frame: CGRect(x: 0, y: 0, width: 300, height: 40)) 49 | progressBar.center = view.center 50 | 51 | progressBar.cornerRadius = 10 52 | progressBar.borderColor = UIColor.gray 53 | progressBar.borderWidth = 4 54 | 55 | progressBar.barCornerRadius = 10 56 | progressBar.barColor = UIColor.blue 57 | progressBar.barMode = AMProgressBarMode.determined.rawValue 58 | 59 | progressBar.hideStripes = false 60 | progressBar.stripesColor = UIColor.white 61 | progressBar.stripesWidth = 10 62 | progressBar.stripesDelta = 100 63 | progressBar.stripesMotion = AMProgressBarStripesMotion.right.rawValue 64 | progressBar.stripesOrientation = AMProgressBarStripesOrientation.diagonalRight.rawValue 65 | progressBar.stripesSpacing = 50 66 | 67 | progressBar.textColor = UIColor.black 68 | progressBar.textFont = UIFont.systemFont(ofSize: 12) 69 | progressBar.textPosition = AMProgressBarTextPosition.middle.rawValue 70 | 71 | progressBar.progressValue = 1 72 | 73 | progressBar.setProgress(progress: 1, animated: true) 74 | 75 | 76 | self.view.addSubview(progressBar) 77 | } 78 | 79 | override func didReceiveMemoryWarning() { 80 | super.didReceiveMemoryWarning() 81 | // Dispose of any resources that can be recreated. 82 | } 83 | 84 | func testAnimation() { 85 | DispatchQueue.main.asyncAfter(deadline: .now() + 2) { 86 | self.progressBar1.setProgress(progress: 0, animated: true) 87 | self.progressBar2.setProgress(progress: 0, animated: true) 88 | self.progressBar3.setProgress(progress: 0, animated: true) 89 | self.progressBar4.setProgress(progress: 0, animated: true) 90 | self.progressBar5.setProgress(progress: 0, animated: true) 91 | self.progressBar6.setProgress(progress: 0, animated: true) 92 | } 93 | 94 | DispatchQueue.main.asyncAfter(deadline: .now() + 3) { 95 | self.progressBar1.setProgress(progress: 0.2, animated: true) 96 | self.progressBar2.setProgress(progress: 0.2, animated: true) 97 | self.progressBar3.setProgress(progress: 0.2, animated: true) 98 | self.progressBar4.setProgress(progress: 0.2, animated: true) 99 | self.progressBar5.setProgress(progress: 0.2, animated: true) 100 | self.progressBar6.setProgress(progress: 0.2, animated: true) 101 | } 102 | 103 | DispatchQueue.main.asyncAfter(deadline: .now() + 4) { 104 | self.progressBar1.setProgress(progress: 0.5, animated: true) 105 | self.progressBar2.setProgress(progress: 0.5, animated: true) 106 | self.progressBar3.setProgress(progress: 0.5, animated: true) 107 | self.progressBar4.setProgress(progress: 0.5, animated: true) 108 | self.progressBar5.setProgress(progress: 0.5, animated: true) 109 | self.progressBar6.setProgress(progress: 0.5, animated: true) 110 | } 111 | 112 | DispatchQueue.main.asyncAfter(deadline: .now() + 5) { 113 | self.progressBar1.setProgress(progress: 0.8, animated: true) 114 | self.progressBar2.setProgress(progress: 0.8, animated: true) 115 | self.progressBar3.setProgress(progress: 0.8, animated: true) 116 | self.progressBar4.setProgress(progress: 0.8, animated: true) 117 | self.progressBar5.setProgress(progress: 0.8, animated: true) 118 | self.progressBar6.setProgress(progress: 0.8, animated: true) 119 | } 120 | 121 | DispatchQueue.main.asyncAfter(deadline: .now() + 6) { 122 | self.progressBar1.setProgress(progress: 1, animated: true) 123 | self.progressBar2.setProgress(progress: 1, animated: true) 124 | self.progressBar3.setProgress(progress: 1, animated: true) 125 | self.progressBar4.setProgress(progress: 1, animated: true) 126 | self.progressBar5.setProgress(progress: 1, animated: true) 127 | self.progressBar6.setProgress(progress: 1, animated: true) 128 | } 129 | 130 | DispatchQueue.main.asyncAfter(deadline: .now() + 7) { 131 | self.testAnimation() 132 | } 133 | } 134 | 135 | } 136 | 137 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'AMProgressBar_Example' do 4 | pod 'AMProgressBar', :path => '../' 5 | 6 | target 'AMProgressBar_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AMProgressBar (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - AMProgressBar (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | AMProgressBar: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | AMProgressBar: c71cf10a56d8f64303a012b2fe440d7f1f843543 13 | 14 | PODFILE CHECKSUM: 42015d643be8907fbfca68a3209e8d8ad9180a36 15 | 16 | COCOAPODS: 1.2.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/AMProgressBar.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AMProgressBar", 3 | "version": "0.1.0", 4 | "summary": "Beautiful progress bar for your iOS apps.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/Abdul-Moiz/AMProgressBar", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "Abdul Moiz": "abdul.moiz1991@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/Abdul-Moiz/AMProgressBar.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": null 20 | }, 21 | "source_files": "AMProgressBar/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AMProgressBar (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - AMProgressBar (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | AMProgressBar: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | AMProgressBar: c71cf10a56d8f64303a012b2fe440d7f1f843543 13 | 14 | PODFILE CHECKSUM: 42015d643be8907fbfca68a3209e8d8ad9180a36 15 | 16 | COCOAPODS: 1.2.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 218DB3718A6245B995912A0CE09A0DD3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 11 | 3DA25DC56367A9D8A7FC4A277822E1F7 /* Pods-AMProgressBar_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 2A0D80437E275E285939E922E1ABC355 /* Pods-AMProgressBar_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 5C85289D4449C7C47342E29FACAEA8D0 /* Pods-AMProgressBar_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 8223AFBF40723DD4DAC0796EEDA6C0F6 /* Pods-AMProgressBar_Example-dummy.m */; }; 13 | 63C2D9FF7ACEC603D7A8466E105787ED /* AMProgressBar-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 4560173CE4360439ECBF32A710832A1B /* AMProgressBar-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | 6A75D8425470EBEF5AB10D92587D1E3F /* Pods-AMProgressBar_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 71FF680E8DDAA0C61E86F44324DBBFC6 /* Pods-AMProgressBar_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | 7A7CC807FD8508F8FDD1AA55D4B17085 /* AMProgressBar-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 31AA6D9575BECF863C64FE459E4FEE03 /* AMProgressBar-dummy.m */; }; 16 | 9B73B873D3EB2A37857F8D2D35E3F665 /* AMProgressView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1B1F087194A78C1CB8077273218BB886 /* AMProgressView.swift */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; 17 | C6B158BA52BA159942A1A2DB693A08C4 /* Pods-AMProgressBar_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = A469CEDC59AF94AF94B86920BC66D2B1 /* Pods-AMProgressBar_Tests-dummy.m */; }; 18 | EB82429E4A77F922EF0F4A47DECAB464 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 19 | FABF5BE338152BC36CD85C009A6AA454 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 086D3A4E8CEED8384EC070B6D8D30CDB /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = B028D81AC5F40F1BC72683B634E8B016; 28 | remoteInfo = AMProgressBar; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 19CF2E1B3E580DFCFDD2CD5B38DA73FB /* AMProgressBar.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AMProgressBar.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 1B1F087194A78C1CB8077273218BB886 /* AMProgressView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = AMProgressView.swift; sourceTree = ""; }; 35 | 21E47A307B50F0F21BCAE8278F05B980 /* Pods-AMProgressBar_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AMProgressBar_Example.debug.xcconfig"; sourceTree = ""; }; 36 | 21FEAA424891264EE52103AF833645BF /* AMProgressBar-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "AMProgressBar-prefix.pch"; sourceTree = ""; }; 37 | 2A0D80437E275E285939E922E1ABC355 /* Pods-AMProgressBar_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-AMProgressBar_Example-umbrella.h"; sourceTree = ""; }; 38 | 31AA6D9575BECF863C64FE459E4FEE03 /* AMProgressBar-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "AMProgressBar-dummy.m"; sourceTree = ""; }; 39 | 4560173CE4360439ECBF32A710832A1B /* AMProgressBar-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "AMProgressBar-umbrella.h"; sourceTree = ""; }; 40 | 4D735BA8C74294839A71A586265BA837 /* Pods-AMProgressBar_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AMProgressBar_Tests.debug.xcconfig"; sourceTree = ""; }; 41 | 500D6EFE3A0241B1369D3FD1310A230E /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 559BA74E3F9DC06D469B0DE5F79F85CF /* Pods-AMProgressBar_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-AMProgressBar_Tests-acknowledgements.markdown"; sourceTree = ""; }; 43 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 44 | 6F3C65D413EB3014CDA4ABBAAC3D0DF5 /* AMProgressBar.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = AMProgressBar.modulemap; sourceTree = ""; }; 45 | 71FF680E8DDAA0C61E86F44324DBBFC6 /* Pods-AMProgressBar_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-AMProgressBar_Tests-umbrella.h"; sourceTree = ""; }; 46 | 7B3B1B742B4CE449D5F90EA638BB3CB7 /* Pods-AMProgressBar_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AMProgressBar_Tests.release.xcconfig"; sourceTree = ""; }; 47 | 8223AFBF40723DD4DAC0796EEDA6C0F6 /* Pods-AMProgressBar_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-AMProgressBar_Example-dummy.m"; sourceTree = ""; }; 48 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 49 | 9E6F22B3ECD44E7955059EAD285D2855 /* Pods-AMProgressBar_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AMProgressBar_Tests-resources.sh"; sourceTree = ""; }; 50 | 9F47A79270D907E5ABB56ED8A1BBFF49 /* Pods-AMProgressBar_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AMProgressBar_Example-frameworks.sh"; sourceTree = ""; }; 51 | A079D73D3FC3B2B4F419179C6C01CD81 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | A469CEDC59AF94AF94B86920BC66D2B1 /* Pods-AMProgressBar_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-AMProgressBar_Tests-dummy.m"; sourceTree = ""; }; 53 | AD9F3396860B00520DAF53367CAC8305 /* Pods_AMProgressBar_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AMProgressBar_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | B4221629B4687051D0D2BA5688C87126 /* Pods-AMProgressBar_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AMProgressBar_Tests-acknowledgements.plist"; sourceTree = ""; }; 55 | BC32F8C1375F542A3A805C8C8A9366CF /* Pods-AMProgressBar_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-AMProgressBar_Example.modulemap"; sourceTree = ""; }; 56 | C42BF5EA7F81207F276DADA6173823AA /* AMProgressBar.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = AMProgressBar.xcconfig; sourceTree = ""; }; 57 | C8E613F0863D3E0FE34701E2D19359B4 /* Pods-AMProgressBar_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AMProgressBar_Example-resources.sh"; sourceTree = ""; }; 58 | C91A5473339B23E75FB1715DB9A2FE2C /* Pods-AMProgressBar_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AMProgressBar_Example-acknowledgements.plist"; sourceTree = ""; }; 59 | CC115A213551026D8377D9F0EBDDF1D7 /* Pods-AMProgressBar_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-AMProgressBar_Tests.modulemap"; sourceTree = ""; }; 60 | CFBE922DB26E4364F5DA90A1F46C6C1B /* Pods_AMProgressBar_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AMProgressBar_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 61 | D077501ED45A487E865B13F59B3C86A8 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 62 | D9D1D6A2BCB52C4A8D08D3F6918682C8 /* Pods-AMProgressBar_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-AMProgressBar_Example-acknowledgements.markdown"; sourceTree = ""; }; 63 | F3F1A5755F733A7DF374E8048FC458F7 /* Pods-AMProgressBar_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AMProgressBar_Tests-frameworks.sh"; sourceTree = ""; }; 64 | FE98768367A7CBA2C9F4608D6E812593 /* Pods-AMProgressBar_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AMProgressBar_Example.release.xcconfig"; sourceTree = ""; }; 65 | /* End PBXFileReference section */ 66 | 67 | /* Begin PBXFrameworksBuildPhase section */ 68 | 059194600ECD1D170457963BAB611355 /* Frameworks */ = { 69 | isa = PBXFrameworksBuildPhase; 70 | buildActionMask = 2147483647; 71 | files = ( 72 | EB82429E4A77F922EF0F4A47DECAB464 /* Foundation.framework in Frameworks */, 73 | ); 74 | runOnlyForDeploymentPostprocessing = 0; 75 | }; 76 | 24C303748D971D2CAE042BB27E9241C5 /* Frameworks */ = { 77 | isa = PBXFrameworksBuildPhase; 78 | buildActionMask = 2147483647; 79 | files = ( 80 | 218DB3718A6245B995912A0CE09A0DD3 /* Foundation.framework in Frameworks */, 81 | ); 82 | runOnlyForDeploymentPostprocessing = 0; 83 | }; 84 | 8C27D97198D62F82287DD9855832EADB /* Frameworks */ = { 85 | isa = PBXFrameworksBuildPhase; 86 | buildActionMask = 2147483647; 87 | files = ( 88 | FABF5BE338152BC36CD85C009A6AA454 /* Foundation.framework in Frameworks */, 89 | ); 90 | runOnlyForDeploymentPostprocessing = 0; 91 | }; 92 | /* End PBXFrameworksBuildPhase section */ 93 | 94 | /* Begin PBXGroup section */ 95 | 437A3C186875A1D1CDA66BBB088D7021 /* Development Pods */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 921EB08ED1BF6A1759F0BF38E6612451 /* AMProgressBar */, 99 | ); 100 | name = "Development Pods"; 101 | sourceTree = ""; 102 | }; 103 | 7DB346D0F39D3F0E887471402A8071AB = { 104 | isa = PBXGroup; 105 | children = ( 106 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 107 | 437A3C186875A1D1CDA66BBB088D7021 /* Development Pods */, 108 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 109 | BAD47A90A155026FECC6CD9186A3019D /* Products */, 110 | DF7E9BE4743A489F07BC98F7D41FE8CF /* Targets Support Files */, 111 | ); 112 | sourceTree = ""; 113 | }; 114 | 858542EF7E0C231E4C77C0F2169E8D2D /* Classes */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 1B1F087194A78C1CB8077273218BB886 /* AMProgressView.swift */, 118 | ); 119 | path = Classes; 120 | sourceTree = ""; 121 | }; 122 | 8F216D0B66594175FCF2C62B1E139F6A /* AMProgressBar */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 858542EF7E0C231E4C77C0F2169E8D2D /* Classes */, 126 | ); 127 | path = AMProgressBar; 128 | sourceTree = ""; 129 | }; 130 | 9000352114D7AF9F396EF50AFDB61CFE /* Support Files */ = { 131 | isa = PBXGroup; 132 | children = ( 133 | 6F3C65D413EB3014CDA4ABBAAC3D0DF5 /* AMProgressBar.modulemap */, 134 | C42BF5EA7F81207F276DADA6173823AA /* AMProgressBar.xcconfig */, 135 | 31AA6D9575BECF863C64FE459E4FEE03 /* AMProgressBar-dummy.m */, 136 | 21FEAA424891264EE52103AF833645BF /* AMProgressBar-prefix.pch */, 137 | 4560173CE4360439ECBF32A710832A1B /* AMProgressBar-umbrella.h */, 138 | A079D73D3FC3B2B4F419179C6C01CD81 /* Info.plist */, 139 | ); 140 | name = "Support Files"; 141 | path = "Example/Pods/Target Support Files/AMProgressBar"; 142 | sourceTree = ""; 143 | }; 144 | 921EB08ED1BF6A1759F0BF38E6612451 /* AMProgressBar */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 8F216D0B66594175FCF2C62B1E139F6A /* AMProgressBar */, 148 | 9000352114D7AF9F396EF50AFDB61CFE /* Support Files */, 149 | ); 150 | name = AMProgressBar; 151 | path = ../..; 152 | sourceTree = ""; 153 | }; 154 | 97A43ADF64325F78C9FD8749B7E4B10D /* Pods-AMProgressBar_Example */ = { 155 | isa = PBXGroup; 156 | children = ( 157 | 500D6EFE3A0241B1369D3FD1310A230E /* Info.plist */, 158 | BC32F8C1375F542A3A805C8C8A9366CF /* Pods-AMProgressBar_Example.modulemap */, 159 | D9D1D6A2BCB52C4A8D08D3F6918682C8 /* Pods-AMProgressBar_Example-acknowledgements.markdown */, 160 | C91A5473339B23E75FB1715DB9A2FE2C /* Pods-AMProgressBar_Example-acknowledgements.plist */, 161 | 8223AFBF40723DD4DAC0796EEDA6C0F6 /* Pods-AMProgressBar_Example-dummy.m */, 162 | 9F47A79270D907E5ABB56ED8A1BBFF49 /* Pods-AMProgressBar_Example-frameworks.sh */, 163 | C8E613F0863D3E0FE34701E2D19359B4 /* Pods-AMProgressBar_Example-resources.sh */, 164 | 2A0D80437E275E285939E922E1ABC355 /* Pods-AMProgressBar_Example-umbrella.h */, 165 | 21E47A307B50F0F21BCAE8278F05B980 /* Pods-AMProgressBar_Example.debug.xcconfig */, 166 | FE98768367A7CBA2C9F4608D6E812593 /* Pods-AMProgressBar_Example.release.xcconfig */, 167 | ); 168 | name = "Pods-AMProgressBar_Example"; 169 | path = "Target Support Files/Pods-AMProgressBar_Example"; 170 | sourceTree = ""; 171 | }; 172 | BAD47A90A155026FECC6CD9186A3019D /* Products */ = { 173 | isa = PBXGroup; 174 | children = ( 175 | 19CF2E1B3E580DFCFDD2CD5B38DA73FB /* AMProgressBar.framework */, 176 | AD9F3396860B00520DAF53367CAC8305 /* Pods_AMProgressBar_Example.framework */, 177 | CFBE922DB26E4364F5DA90A1F46C6C1B /* Pods_AMProgressBar_Tests.framework */, 178 | ); 179 | name = Products; 180 | sourceTree = ""; 181 | }; 182 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 183 | isa = PBXGroup; 184 | children = ( 185 | D35AF013A5F0BAD4F32504907A52519E /* iOS */, 186 | ); 187 | name = Frameworks; 188 | sourceTree = ""; 189 | }; 190 | D35AF013A5F0BAD4F32504907A52519E /* iOS */ = { 191 | isa = PBXGroup; 192 | children = ( 193 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */, 194 | ); 195 | name = iOS; 196 | sourceTree = ""; 197 | }; 198 | DAF71E284FD9BE928162D4C2614FAE39 /* Pods-AMProgressBar_Tests */ = { 199 | isa = PBXGroup; 200 | children = ( 201 | D077501ED45A487E865B13F59B3C86A8 /* Info.plist */, 202 | CC115A213551026D8377D9F0EBDDF1D7 /* Pods-AMProgressBar_Tests.modulemap */, 203 | 559BA74E3F9DC06D469B0DE5F79F85CF /* Pods-AMProgressBar_Tests-acknowledgements.markdown */, 204 | B4221629B4687051D0D2BA5688C87126 /* Pods-AMProgressBar_Tests-acknowledgements.plist */, 205 | A469CEDC59AF94AF94B86920BC66D2B1 /* Pods-AMProgressBar_Tests-dummy.m */, 206 | F3F1A5755F733A7DF374E8048FC458F7 /* Pods-AMProgressBar_Tests-frameworks.sh */, 207 | 9E6F22B3ECD44E7955059EAD285D2855 /* Pods-AMProgressBar_Tests-resources.sh */, 208 | 71FF680E8DDAA0C61E86F44324DBBFC6 /* Pods-AMProgressBar_Tests-umbrella.h */, 209 | 4D735BA8C74294839A71A586265BA837 /* Pods-AMProgressBar_Tests.debug.xcconfig */, 210 | 7B3B1B742B4CE449D5F90EA638BB3CB7 /* Pods-AMProgressBar_Tests.release.xcconfig */, 211 | ); 212 | name = "Pods-AMProgressBar_Tests"; 213 | path = "Target Support Files/Pods-AMProgressBar_Tests"; 214 | sourceTree = ""; 215 | }; 216 | DF7E9BE4743A489F07BC98F7D41FE8CF /* Targets Support Files */ = { 217 | isa = PBXGroup; 218 | children = ( 219 | 97A43ADF64325F78C9FD8749B7E4B10D /* Pods-AMProgressBar_Example */, 220 | DAF71E284FD9BE928162D4C2614FAE39 /* Pods-AMProgressBar_Tests */, 221 | ); 222 | name = "Targets Support Files"; 223 | sourceTree = ""; 224 | }; 225 | /* End PBXGroup section */ 226 | 227 | /* Begin PBXHeadersBuildPhase section */ 228 | 26B013A4B09FC608D21B5F801B6730C2 /* Headers */ = { 229 | isa = PBXHeadersBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | 3DA25DC56367A9D8A7FC4A277822E1F7 /* Pods-AMProgressBar_Example-umbrella.h in Headers */, 233 | ); 234 | runOnlyForDeploymentPostprocessing = 0; 235 | }; 236 | 909902E1B374284FA6D3D5F38BE6FBDE /* Headers */ = { 237 | isa = PBXHeadersBuildPhase; 238 | buildActionMask = 2147483647; 239 | files = ( 240 | 6A75D8425470EBEF5AB10D92587D1E3F /* Pods-AMProgressBar_Tests-umbrella.h in Headers */, 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | }; 244 | D8EA5A7D5DC7B69DFE8F56E5B814D35D /* Headers */ = { 245 | isa = PBXHeadersBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | 63C2D9FF7ACEC603D7A8466E105787ED /* AMProgressBar-umbrella.h in Headers */, 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | }; 252 | /* End PBXHeadersBuildPhase section */ 253 | 254 | /* Begin PBXNativeTarget section */ 255 | 15B03A17A752FDC9C0AA0BBA07A200C4 /* Pods-AMProgressBar_Tests */ = { 256 | isa = PBXNativeTarget; 257 | buildConfigurationList = B0BBC186F0207E9952B38160A8254866 /* Build configuration list for PBXNativeTarget "Pods-AMProgressBar_Tests" */; 258 | buildPhases = ( 259 | 2FD33E582B736F69FB57B6B9BA18A2E5 /* Sources */, 260 | 059194600ECD1D170457963BAB611355 /* Frameworks */, 261 | 909902E1B374284FA6D3D5F38BE6FBDE /* Headers */, 262 | ); 263 | buildRules = ( 264 | ); 265 | dependencies = ( 266 | ); 267 | name = "Pods-AMProgressBar_Tests"; 268 | productName = "Pods-AMProgressBar_Tests"; 269 | productReference = CFBE922DB26E4364F5DA90A1F46C6C1B /* Pods_AMProgressBar_Tests.framework */; 270 | productType = "com.apple.product-type.framework"; 271 | }; 272 | B028D81AC5F40F1BC72683B634E8B016 /* AMProgressBar */ = { 273 | isa = PBXNativeTarget; 274 | buildConfigurationList = 94D370FF599140C2C2B85261A675C114 /* Build configuration list for PBXNativeTarget "AMProgressBar" */; 275 | buildPhases = ( 276 | B07F6386CCFA7357E97E6CA1BA2253C0 /* Sources */, 277 | 8C27D97198D62F82287DD9855832EADB /* Frameworks */, 278 | D8EA5A7D5DC7B69DFE8F56E5B814D35D /* Headers */, 279 | ); 280 | buildRules = ( 281 | ); 282 | dependencies = ( 283 | ); 284 | name = AMProgressBar; 285 | productName = AMProgressBar; 286 | productReference = 19CF2E1B3E580DFCFDD2CD5B38DA73FB /* AMProgressBar.framework */; 287 | productType = "com.apple.product-type.framework"; 288 | }; 289 | E182A466679ADC232CF59791E58821E6 /* Pods-AMProgressBar_Example */ = { 290 | isa = PBXNativeTarget; 291 | buildConfigurationList = 90486A51A80B9DBCAFA72D70FF30D1A1 /* Build configuration list for PBXNativeTarget "Pods-AMProgressBar_Example" */; 292 | buildPhases = ( 293 | 09BF035765C06B9F576650DEDC1134AF /* Sources */, 294 | 24C303748D971D2CAE042BB27E9241C5 /* Frameworks */, 295 | 26B013A4B09FC608D21B5F801B6730C2 /* Headers */, 296 | ); 297 | buildRules = ( 298 | ); 299 | dependencies = ( 300 | E16DE492C551E009CDDA7A28C746CA48 /* PBXTargetDependency */, 301 | ); 302 | name = "Pods-AMProgressBar_Example"; 303 | productName = "Pods-AMProgressBar_Example"; 304 | productReference = AD9F3396860B00520DAF53367CAC8305 /* Pods_AMProgressBar_Example.framework */; 305 | productType = "com.apple.product-type.framework"; 306 | }; 307 | /* End PBXNativeTarget section */ 308 | 309 | /* Begin PBXProject section */ 310 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 311 | isa = PBXProject; 312 | attributes = { 313 | LastSwiftUpdateCheck = 0830; 314 | LastUpgradeCheck = 0700; 315 | TargetAttributes = { 316 | B028D81AC5F40F1BC72683B634E8B016 = { 317 | LastSwiftMigration = 0910; 318 | }; 319 | }; 320 | }; 321 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 322 | compatibilityVersion = "Xcode 3.2"; 323 | developmentRegion = English; 324 | hasScannedForEncodings = 0; 325 | knownRegions = ( 326 | English, 327 | en, 328 | ); 329 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 330 | productRefGroup = BAD47A90A155026FECC6CD9186A3019D /* Products */; 331 | projectDirPath = ""; 332 | projectRoot = ""; 333 | targets = ( 334 | B028D81AC5F40F1BC72683B634E8B016 /* AMProgressBar */, 335 | E182A466679ADC232CF59791E58821E6 /* Pods-AMProgressBar_Example */, 336 | 15B03A17A752FDC9C0AA0BBA07A200C4 /* Pods-AMProgressBar_Tests */, 337 | ); 338 | }; 339 | /* End PBXProject section */ 340 | 341 | /* Begin PBXSourcesBuildPhase section */ 342 | 09BF035765C06B9F576650DEDC1134AF /* Sources */ = { 343 | isa = PBXSourcesBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | 5C85289D4449C7C47342E29FACAEA8D0 /* Pods-AMProgressBar_Example-dummy.m in Sources */, 347 | ); 348 | runOnlyForDeploymentPostprocessing = 0; 349 | }; 350 | 2FD33E582B736F69FB57B6B9BA18A2E5 /* Sources */ = { 351 | isa = PBXSourcesBuildPhase; 352 | buildActionMask = 2147483647; 353 | files = ( 354 | C6B158BA52BA159942A1A2DB693A08C4 /* Pods-AMProgressBar_Tests-dummy.m in Sources */, 355 | ); 356 | runOnlyForDeploymentPostprocessing = 0; 357 | }; 358 | B07F6386CCFA7357E97E6CA1BA2253C0 /* Sources */ = { 359 | isa = PBXSourcesBuildPhase; 360 | buildActionMask = 2147483647; 361 | files = ( 362 | 7A7CC807FD8508F8FDD1AA55D4B17085 /* AMProgressBar-dummy.m in Sources */, 363 | 9B73B873D3EB2A37857F8D2D35E3F665 /* AMProgressView.swift in Sources */, 364 | ); 365 | runOnlyForDeploymentPostprocessing = 0; 366 | }; 367 | /* End PBXSourcesBuildPhase section */ 368 | 369 | /* Begin PBXTargetDependency section */ 370 | E16DE492C551E009CDDA7A28C746CA48 /* PBXTargetDependency */ = { 371 | isa = PBXTargetDependency; 372 | name = AMProgressBar; 373 | target = B028D81AC5F40F1BC72683B634E8B016 /* AMProgressBar */; 374 | targetProxy = 086D3A4E8CEED8384EC070B6D8D30CDB /* PBXContainerItemProxy */; 375 | }; 376 | /* End PBXTargetDependency section */ 377 | 378 | /* Begin XCBuildConfiguration section */ 379 | 09DFDE837CCE2FD0F4091D6265A6C8C3 /* Debug */ = { 380 | isa = XCBuildConfiguration; 381 | baseConfigurationReference = C42BF5EA7F81207F276DADA6173823AA /* AMProgressBar.xcconfig */; 382 | buildSettings = { 383 | CODE_SIGN_IDENTITY = ""; 384 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 386 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 387 | CURRENT_PROJECT_VERSION = 1; 388 | DEBUG_INFORMATION_FORMAT = dwarf; 389 | DEFINES_MODULE = YES; 390 | DYLIB_COMPATIBILITY_VERSION = 1; 391 | DYLIB_CURRENT_VERSION = 1; 392 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 393 | ENABLE_STRICT_OBJC_MSGSEND = YES; 394 | GCC_NO_COMMON_BLOCKS = YES; 395 | GCC_PREFIX_HEADER = "Target Support Files/AMProgressBar/AMProgressBar-prefix.pch"; 396 | INFOPLIST_FILE = "Target Support Files/AMProgressBar/Info.plist"; 397 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 398 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 399 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 400 | MODULEMAP_FILE = "Target Support Files/AMProgressBar/AMProgressBar.modulemap"; 401 | MTL_ENABLE_DEBUG_INFO = YES; 402 | PRODUCT_NAME = AMProgressBar; 403 | SDKROOT = iphoneos; 404 | SKIP_INSTALL = YES; 405 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 406 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 407 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 408 | SWIFT_VERSION = 5.0; 409 | TARGETED_DEVICE_FAMILY = "1,2"; 410 | VERSIONING_SYSTEM = "apple-generic"; 411 | VERSION_INFO_PREFIX = ""; 412 | }; 413 | name = Debug; 414 | }; 415 | 0F3C164D4E835DC2137548B8326C4182 /* Debug */ = { 416 | isa = XCBuildConfiguration; 417 | baseConfigurationReference = 21E47A307B50F0F21BCAE8278F05B980 /* Pods-AMProgressBar_Example.debug.xcconfig */; 418 | buildSettings = { 419 | CODE_SIGN_IDENTITY = ""; 420 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 421 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 422 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 423 | CURRENT_PROJECT_VERSION = 1; 424 | DEBUG_INFORMATION_FORMAT = dwarf; 425 | DEFINES_MODULE = YES; 426 | DYLIB_COMPATIBILITY_VERSION = 1; 427 | DYLIB_CURRENT_VERSION = 1; 428 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 429 | ENABLE_STRICT_OBJC_MSGSEND = YES; 430 | GCC_NO_COMMON_BLOCKS = YES; 431 | INFOPLIST_FILE = "Target Support Files/Pods-AMProgressBar_Example/Info.plist"; 432 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 433 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 434 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 435 | MACH_O_TYPE = staticlib; 436 | MODULEMAP_FILE = "Target Support Files/Pods-AMProgressBar_Example/Pods-AMProgressBar_Example.modulemap"; 437 | MTL_ENABLE_DEBUG_INFO = YES; 438 | OTHER_LDFLAGS = ""; 439 | OTHER_LIBTOOLFLAGS = ""; 440 | PODS_ROOT = "$(SRCROOT)"; 441 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 442 | PRODUCT_NAME = Pods_AMProgressBar_Example; 443 | SDKROOT = iphoneos; 444 | SKIP_INSTALL = YES; 445 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 446 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 447 | SWIFT_VERSION = 3.0; 448 | TARGETED_DEVICE_FAMILY = "1,2"; 449 | VERSIONING_SYSTEM = "apple-generic"; 450 | VERSION_INFO_PREFIX = ""; 451 | }; 452 | name = Debug; 453 | }; 454 | 26B8EAC2687B410CE16645F12B616ABE /* Release */ = { 455 | isa = XCBuildConfiguration; 456 | baseConfigurationReference = C42BF5EA7F81207F276DADA6173823AA /* AMProgressBar.xcconfig */; 457 | buildSettings = { 458 | CODE_SIGN_IDENTITY = ""; 459 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 460 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 461 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 462 | CURRENT_PROJECT_VERSION = 1; 463 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 464 | DEFINES_MODULE = YES; 465 | DYLIB_COMPATIBILITY_VERSION = 1; 466 | DYLIB_CURRENT_VERSION = 1; 467 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 468 | ENABLE_STRICT_OBJC_MSGSEND = YES; 469 | GCC_NO_COMMON_BLOCKS = YES; 470 | GCC_PREFIX_HEADER = "Target Support Files/AMProgressBar/AMProgressBar-prefix.pch"; 471 | INFOPLIST_FILE = "Target Support Files/AMProgressBar/Info.plist"; 472 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 473 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 474 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 475 | MODULEMAP_FILE = "Target Support Files/AMProgressBar/AMProgressBar.modulemap"; 476 | MTL_ENABLE_DEBUG_INFO = NO; 477 | PRODUCT_NAME = AMProgressBar; 478 | SDKROOT = iphoneos; 479 | SKIP_INSTALL = YES; 480 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 481 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 482 | SWIFT_VERSION = 5.0; 483 | TARGETED_DEVICE_FAMILY = "1,2"; 484 | VERSIONING_SYSTEM = "apple-generic"; 485 | VERSION_INFO_PREFIX = ""; 486 | }; 487 | name = Release; 488 | }; 489 | 345CC476DF4A7516DBD2220CF5035FF3 /* Debug */ = { 490 | isa = XCBuildConfiguration; 491 | buildSettings = { 492 | ALWAYS_SEARCH_USER_PATHS = NO; 493 | CLANG_ANALYZER_NONNULL = YES; 494 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; 495 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 496 | CLANG_CXX_LIBRARY = "libc++"; 497 | CLANG_ENABLE_MODULES = YES; 498 | CLANG_ENABLE_OBJC_ARC = YES; 499 | CLANG_WARN_BOOL_CONVERSION = YES; 500 | CLANG_WARN_CONSTANT_CONVERSION = YES; 501 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 502 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 503 | CLANG_WARN_EMPTY_BODY = YES; 504 | CLANG_WARN_ENUM_CONVERSION = YES; 505 | CLANG_WARN_INFINITE_RECURSION = YES; 506 | CLANG_WARN_INT_CONVERSION = YES; 507 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 508 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 509 | CLANG_WARN_UNREACHABLE_CODE = YES; 510 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 511 | CODE_SIGNING_REQUIRED = NO; 512 | COPY_PHASE_STRIP = NO; 513 | ENABLE_TESTABILITY = YES; 514 | GCC_C_LANGUAGE_STANDARD = gnu99; 515 | GCC_DYNAMIC_NO_PIC = NO; 516 | GCC_OPTIMIZATION_LEVEL = 0; 517 | GCC_PREPROCESSOR_DEFINITIONS = ( 518 | "POD_CONFIGURATION_DEBUG=1", 519 | "DEBUG=1", 520 | "$(inherited)", 521 | ); 522 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 523 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 524 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 525 | GCC_WARN_UNDECLARED_SELECTOR = YES; 526 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 527 | GCC_WARN_UNUSED_FUNCTION = YES; 528 | GCC_WARN_UNUSED_VARIABLE = YES; 529 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 530 | ONLY_ACTIVE_ARCH = YES; 531 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 532 | STRIP_INSTALLED_PRODUCT = NO; 533 | SYMROOT = "${SRCROOT}/../build"; 534 | }; 535 | name = Debug; 536 | }; 537 | 4ECBFC83092F074D9CE6848CFD432B5A /* Release */ = { 538 | isa = XCBuildConfiguration; 539 | baseConfigurationReference = 7B3B1B742B4CE449D5F90EA638BB3CB7 /* Pods-AMProgressBar_Tests.release.xcconfig */; 540 | buildSettings = { 541 | CODE_SIGN_IDENTITY = ""; 542 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 543 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 544 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 545 | CURRENT_PROJECT_VERSION = 1; 546 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 547 | DEFINES_MODULE = YES; 548 | DYLIB_COMPATIBILITY_VERSION = 1; 549 | DYLIB_CURRENT_VERSION = 1; 550 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 551 | ENABLE_STRICT_OBJC_MSGSEND = YES; 552 | GCC_NO_COMMON_BLOCKS = YES; 553 | INFOPLIST_FILE = "Target Support Files/Pods-AMProgressBar_Tests/Info.plist"; 554 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 555 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 556 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 557 | MACH_O_TYPE = staticlib; 558 | MODULEMAP_FILE = "Target Support Files/Pods-AMProgressBar_Tests/Pods-AMProgressBar_Tests.modulemap"; 559 | MTL_ENABLE_DEBUG_INFO = NO; 560 | OTHER_LDFLAGS = ""; 561 | OTHER_LIBTOOLFLAGS = ""; 562 | PODS_ROOT = "$(SRCROOT)"; 563 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 564 | PRODUCT_NAME = Pods_AMProgressBar_Tests; 565 | SDKROOT = iphoneos; 566 | SKIP_INSTALL = YES; 567 | TARGETED_DEVICE_FAMILY = "1,2"; 568 | VERSIONING_SYSTEM = "apple-generic"; 569 | VERSION_INFO_PREFIX = ""; 570 | }; 571 | name = Release; 572 | }; 573 | 6452E4D3BCFA4D0495F3D7D946689513 /* Debug */ = { 574 | isa = XCBuildConfiguration; 575 | baseConfigurationReference = 4D735BA8C74294839A71A586265BA837 /* Pods-AMProgressBar_Tests.debug.xcconfig */; 576 | buildSettings = { 577 | CODE_SIGN_IDENTITY = ""; 578 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 579 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 580 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 581 | CURRENT_PROJECT_VERSION = 1; 582 | DEBUG_INFORMATION_FORMAT = dwarf; 583 | DEFINES_MODULE = YES; 584 | DYLIB_COMPATIBILITY_VERSION = 1; 585 | DYLIB_CURRENT_VERSION = 1; 586 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 587 | ENABLE_STRICT_OBJC_MSGSEND = YES; 588 | GCC_NO_COMMON_BLOCKS = YES; 589 | INFOPLIST_FILE = "Target Support Files/Pods-AMProgressBar_Tests/Info.plist"; 590 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 591 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 592 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 593 | MACH_O_TYPE = staticlib; 594 | MODULEMAP_FILE = "Target Support Files/Pods-AMProgressBar_Tests/Pods-AMProgressBar_Tests.modulemap"; 595 | MTL_ENABLE_DEBUG_INFO = YES; 596 | OTHER_LDFLAGS = ""; 597 | OTHER_LIBTOOLFLAGS = ""; 598 | PODS_ROOT = "$(SRCROOT)"; 599 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 600 | PRODUCT_NAME = Pods_AMProgressBar_Tests; 601 | SDKROOT = iphoneos; 602 | SKIP_INSTALL = YES; 603 | TARGETED_DEVICE_FAMILY = "1,2"; 604 | VERSIONING_SYSTEM = "apple-generic"; 605 | VERSION_INFO_PREFIX = ""; 606 | }; 607 | name = Debug; 608 | }; 609 | 717E77604BFBB04BEAF56608A1CB2EDE /* Release */ = { 610 | isa = XCBuildConfiguration; 611 | buildSettings = { 612 | ALWAYS_SEARCH_USER_PATHS = NO; 613 | CLANG_ANALYZER_NONNULL = YES; 614 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; 615 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 616 | CLANG_CXX_LIBRARY = "libc++"; 617 | CLANG_ENABLE_MODULES = YES; 618 | CLANG_ENABLE_OBJC_ARC = YES; 619 | CLANG_WARN_BOOL_CONVERSION = YES; 620 | CLANG_WARN_CONSTANT_CONVERSION = YES; 621 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 622 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 623 | CLANG_WARN_EMPTY_BODY = YES; 624 | CLANG_WARN_ENUM_CONVERSION = YES; 625 | CLANG_WARN_INFINITE_RECURSION = YES; 626 | CLANG_WARN_INT_CONVERSION = YES; 627 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 628 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 629 | CLANG_WARN_UNREACHABLE_CODE = YES; 630 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 631 | CODE_SIGNING_REQUIRED = NO; 632 | COPY_PHASE_STRIP = YES; 633 | ENABLE_NS_ASSERTIONS = NO; 634 | GCC_C_LANGUAGE_STANDARD = gnu99; 635 | GCC_PREPROCESSOR_DEFINITIONS = ( 636 | "POD_CONFIGURATION_RELEASE=1", 637 | "$(inherited)", 638 | ); 639 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 640 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 641 | GCC_WARN_UNDECLARED_SELECTOR = YES; 642 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 643 | GCC_WARN_UNUSED_FUNCTION = YES; 644 | GCC_WARN_UNUSED_VARIABLE = YES; 645 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 646 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 647 | STRIP_INSTALLED_PRODUCT = NO; 648 | SYMROOT = "${SRCROOT}/../build"; 649 | VALIDATE_PRODUCT = YES; 650 | }; 651 | name = Release; 652 | }; 653 | 77DEB18A2415B7BA18D30AE9DB6291B4 /* Release */ = { 654 | isa = XCBuildConfiguration; 655 | baseConfigurationReference = FE98768367A7CBA2C9F4608D6E812593 /* Pods-AMProgressBar_Example.release.xcconfig */; 656 | buildSettings = { 657 | CODE_SIGN_IDENTITY = ""; 658 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 659 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 660 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 661 | CURRENT_PROJECT_VERSION = 1; 662 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 663 | DEFINES_MODULE = YES; 664 | DYLIB_COMPATIBILITY_VERSION = 1; 665 | DYLIB_CURRENT_VERSION = 1; 666 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 667 | ENABLE_STRICT_OBJC_MSGSEND = YES; 668 | GCC_NO_COMMON_BLOCKS = YES; 669 | INFOPLIST_FILE = "Target Support Files/Pods-AMProgressBar_Example/Info.plist"; 670 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 671 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 672 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 673 | MACH_O_TYPE = staticlib; 674 | MODULEMAP_FILE = "Target Support Files/Pods-AMProgressBar_Example/Pods-AMProgressBar_Example.modulemap"; 675 | MTL_ENABLE_DEBUG_INFO = NO; 676 | OTHER_LDFLAGS = ""; 677 | OTHER_LIBTOOLFLAGS = ""; 678 | PODS_ROOT = "$(SRCROOT)"; 679 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 680 | PRODUCT_NAME = Pods_AMProgressBar_Example; 681 | SDKROOT = iphoneos; 682 | SKIP_INSTALL = YES; 683 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 684 | SWIFT_VERSION = 3.0; 685 | TARGETED_DEVICE_FAMILY = "1,2"; 686 | VERSIONING_SYSTEM = "apple-generic"; 687 | VERSION_INFO_PREFIX = ""; 688 | }; 689 | name = Release; 690 | }; 691 | /* End XCBuildConfiguration section */ 692 | 693 | /* Begin XCConfigurationList section */ 694 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 695 | isa = XCConfigurationList; 696 | buildConfigurations = ( 697 | 345CC476DF4A7516DBD2220CF5035FF3 /* Debug */, 698 | 717E77604BFBB04BEAF56608A1CB2EDE /* Release */, 699 | ); 700 | defaultConfigurationIsVisible = 0; 701 | defaultConfigurationName = Release; 702 | }; 703 | 90486A51A80B9DBCAFA72D70FF30D1A1 /* Build configuration list for PBXNativeTarget "Pods-AMProgressBar_Example" */ = { 704 | isa = XCConfigurationList; 705 | buildConfigurations = ( 706 | 0F3C164D4E835DC2137548B8326C4182 /* Debug */, 707 | 77DEB18A2415B7BA18D30AE9DB6291B4 /* Release */, 708 | ); 709 | defaultConfigurationIsVisible = 0; 710 | defaultConfigurationName = Release; 711 | }; 712 | 94D370FF599140C2C2B85261A675C114 /* Build configuration list for PBXNativeTarget "AMProgressBar" */ = { 713 | isa = XCConfigurationList; 714 | buildConfigurations = ( 715 | 09DFDE837CCE2FD0F4091D6265A6C8C3 /* Debug */, 716 | 26B8EAC2687B410CE16645F12B616ABE /* Release */, 717 | ); 718 | defaultConfigurationIsVisible = 0; 719 | defaultConfigurationName = Release; 720 | }; 721 | B0BBC186F0207E9952B38160A8254866 /* Build configuration list for PBXNativeTarget "Pods-AMProgressBar_Tests" */ = { 722 | isa = XCConfigurationList; 723 | buildConfigurations = ( 724 | 6452E4D3BCFA4D0495F3D7D946689513 /* Debug */, 725 | 4ECBFC83092F074D9CE6848CFD432B5A /* Release */, 726 | ); 727 | defaultConfigurationIsVisible = 0; 728 | defaultConfigurationName = Release; 729 | }; 730 | /* End XCConfigurationList section */ 731 | }; 732 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 733 | } 734 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AMProgressBar/AMProgressBar-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_AMProgressBar : NSObject 3 | @end 4 | @implementation PodsDummy_AMProgressBar 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AMProgressBar/AMProgressBar-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AMProgressBar/AMProgressBar-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double AMProgressBarVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char AMProgressBarVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AMProgressBar/AMProgressBar.modulemap: -------------------------------------------------------------------------------- 1 | framework module AMProgressBar { 2 | umbrella header "AMProgressBar-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AMProgressBar/AMProgressBar.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/AMProgressBar 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AMProgressBar/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Example/Pods-AMProgressBar_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## AMProgressBar 5 | 6 | Copyright (c) 2017 acct= 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Example/Pods-AMProgressBar_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2017 acct<blob>=<NULL> <amoiz@crosscap.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | AMProgressBar 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Example/Pods-AMProgressBar_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_AMProgressBar_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_AMProgressBar_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Example/Pods-AMProgressBar_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | 91 | if [[ "$CONFIGURATION" == "Debug" ]]; then 92 | install_framework "$BUILT_PRODUCTS_DIR/AMProgressBar/AMProgressBar.framework" 93 | fi 94 | if [[ "$CONFIGURATION" == "Release" ]]; then 95 | install_framework "$BUILT_PRODUCTS_DIR/AMProgressBar/AMProgressBar.framework" 96 | fi 97 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 98 | wait 99 | fi 100 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Example/Pods-AMProgressBar_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | 4) 25 | TARGET_DEVICE_ARGS="--target-device watch" 26 | ;; 27 | *) 28 | TARGET_DEVICE_ARGS="--target-device mac" 29 | ;; 30 | esac 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "${PODS_ROOT}*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Example/Pods-AMProgressBar_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_AMProgressBar_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_AMProgressBar_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Example/Pods-AMProgressBar_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/AMProgressBar" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/AMProgressBar/AMProgressBar.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "AMProgressBar" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Example/Pods-AMProgressBar_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_AMProgressBar_Example { 2 | umbrella header "Pods-AMProgressBar_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Example/Pods-AMProgressBar_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/AMProgressBar" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/AMProgressBar/AMProgressBar.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "AMProgressBar" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Tests/Pods-AMProgressBar_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Tests/Pods-AMProgressBar_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Tests/Pods-AMProgressBar_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_AMProgressBar_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_AMProgressBar_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Tests/Pods-AMProgressBar_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 91 | wait 92 | fi 93 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Tests/Pods-AMProgressBar_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | 4) 25 | TARGET_DEVICE_ARGS="--target-device watch" 26 | ;; 27 | *) 28 | TARGET_DEVICE_ARGS="--target-device mac" 29 | ;; 30 | esac 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "${PODS_ROOT}*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Tests/Pods-AMProgressBar_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_AMProgressBar_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_AMProgressBar_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Tests/Pods-AMProgressBar_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/AMProgressBar" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/AMProgressBar/AMProgressBar.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Tests/Pods-AMProgressBar_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_AMProgressBar_Tests { 2 | umbrella header "Pods-AMProgressBar_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMProgressBar_Tests/Pods-AMProgressBar_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/AMProgressBar" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/AMProgressBar/AMProgressBar.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | import AMProgressBar 4 | 5 | class Tests: XCTestCase { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | // Put setup code here. This method is called before the invocation of each test method in the class. 10 | } 11 | 12 | override func tearDown() { 13 | // Put teardown code here. This method is called after the invocation of each test method in the class. 14 | super.tearDown() 15 | } 16 | 17 | func testExample() { 18 | // This is an example of a functional test case. 19 | XCTAssert(true, "Pass") 20 | } 21 | 22 | func testPerformanceExample() { 23 | // This is an example of a performance test case. 24 | self.measure() { 25 | // Put the code you want to measure the time of here. 26 | } 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2017 Abdul Moiz 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AMProgressBar 2 | [![Build Status](http://img.shields.io/travis/Abdul-Moiz/AMProgressBar.svg?style=flat)](https://travis-ci.org/Abdul-Moiz/AMProgressBar) 3 | 4 | Elegant progress bar for your iOS app written in Swift. 5 | 6 | ## Features 7 | 8 | * Up-to-date: Swift 5 9 | * Super easy to use and lightweight 10 | * `IBInspectable` properties can be customized from `Interface Builder` 11 | * Global config file to apply same style across app. 12 | 13 | ![](AMProgressBar.gif) 14 | 15 | ## Usage 16 | 17 | ```swift 18 | import AMProgressBar 19 | 20 | let progressBar = AMProgressBar() 21 | progressBar.progressValue = 1 22 | 23 | self.view.addSubview(progressBar) 24 | ``` 25 | 26 | ### Global configurations 27 | 28 | Set a global style to all progress bar with these simple lines of code. It will override if there is some different value set from interface builder. 29 | ``` 30 | AMProgressBar.config.barColor = .blue 31 | AMProgressBar.config.barCornerRadius = 10 32 | AMProgressBar.config.barMode = .determined // .undetermined 33 | 34 | AMProgressBar.config.borderColor = .white 35 | AMProgressBar.config.borderWidth = 2 36 | 37 | AMProgressBar.config.cornerRadius = 10 38 | 39 | AMProgressBar.config.hideStripes = false 40 | 41 | AMProgressBar.config.stripesColor = .red 42 | AMProgressBar.config.stripesDelta = 80 43 | AMProgressBar.config.stripesMotion = .right // .none or .left 44 | AMProgressBar.config.stripesOrientation = .diagonalRight // .diagonalLeft or .vertical 45 | AMProgressBar.config.stripesWidth = 30 46 | AMProgressBar.config.stripesSpacing = 30 47 | 48 | AMProgressBar.config.textColor = .black 49 | AMProgressBar.config.textFont = UIFont.systemFont(ofSize: 12) 50 | AMProgressBar.config.textPosition = .onBar // AMProgressBarTextPosition 51 | ``` 52 | 53 | ### Batched customization 54 | 55 | When using AMProgressBar, it is recommended to use the `customize(block:)` method to customize it. The reason is that AMProgressBar is reacting to each property that you set. So if you set 3 properties, the progress bar is refreshed 3 times. 56 | 57 | When using `customize(block:)`, you can group all the customizations on the progress bar, that way AMProgressBar is only going to refresh it self once. 58 | 59 | Example: 60 | 61 | ```swift 62 | progressBar.customize { bar in 63 | bar.cornerRadius = 10 64 | bar.borderColor = UIColor.gray 65 | bar.borderWidth = 4 66 | 67 | bar.barCornerRadius = 10 68 | bar.barColor = UIColor.blue 69 | bar.barMode = AMProgressBarMode.determined.rawValue 70 | 71 | bar.hideStripes = false 72 | bar.stripesColor = UIColor.white 73 | bar.stripesWidth = 10 74 | bar.stripesSpacing = 10 75 | bar.stripesDelta = 10 76 | bar.stripesMotion = AMProgressBarStripesMotion.right.rawValue 77 | bar.stripesOrientation = AMProgressBarStripesOrientation.diagonalRight.rawValue 78 | 79 | bar.textColor = UIColor.black 80 | bar.textFont = UIFont.systemFont(ofSize: 12) 81 | bar.textPosition = AMProgressBarTextPosition.middle.rawValue 82 | } 83 | ``` 84 | 85 | ### Example 86 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 87 | 88 | ## Requirements 89 | * Swift 5 90 | * iOS 12.0+ 91 | 92 | ## Installation 93 | 94 | ### CocoaPods 95 | AMProgressBar is available through [CocoaPods](http://cocoapods.org). To install 96 | it, simply add the following line to your Podfile: 97 | 98 | ```ruby 99 | platform :ios, '12.0' 100 | use_frameworks! 101 | 102 | pod "AMProgressBar" 103 | ``` 104 | 105 | ## Inspiration 106 | * [YLProgressBar](https://github.com/yannickl/YLProgressBar) - Design and Animation 107 | * [ActiveLabel.swift](https://github.com/optonaut/ActiveLabel.swift) - Batch customization 108 | 109 | ## License 110 | 111 | AMProgressBar is available under the MIT license. See the LICENSE file for more info. 112 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /swift_versions: -------------------------------------------------------------------------------- 1 | 5 2 | --------------------------------------------------------------------------------