├── .gitignore ├── FMProgressBarView ├── FMProgressBarView.h ├── FMProgressBarView.swift ├── FMProgressBarView.xib └── Info.plist ├── FMProgressBarViewDemo.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcshareddata │ └── xcschemes │ └── FMProgressBarView.xcscheme ├── FMProgressBarViewDemo ├── AppDelegate.swift ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── t1.imageset │ │ ├── Contents.json │ │ └── colours-sample.jpg │ └── t2.imageset │ │ ├── Contents.json │ │ └── water0hk.jpg ├── Info.plist └── ViewController.swift ├── FMProgressBarViewDemoTests ├── FMProgressBarViewDemoTests.swift └── Info.plist ├── FMProgressBarViewTests ├── FMProgressBarViewTests.swift └── Info.plist ├── LICENSE └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | 20 | # CocoaPods 21 | # 22 | # We recommend against adding the Pods directory to your .gitignore. However 23 | # you should judge for yourself, the pros and cons are mentioned at: 24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 25 | # 26 | # Pods/ 27 | 28 | # Carthage 29 | # 30 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 31 | # Carthage/Checkouts 32 | 33 | Carthage/Build 34 | -------------------------------------------------------------------------------- /FMProgressBarView/FMProgressBarView.h: -------------------------------------------------------------------------------- 1 | // 2 | // FMProgressBarView.h 3 | // FMProgressBarView 4 | // 5 | // Created by felipe munoz on 7/8/15. 6 | // Copyright (c) 2015 felipe munoz. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for FMProgressBarView. 12 | FOUNDATION_EXPORT double FMProgressBarViewVersionNumber; 13 | 14 | //! Project version string for FMProgressBarView. 15 | FOUNDATION_EXPORT const unsigned char FMProgressBarViewVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /FMProgressBarView/FMProgressBarView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FMProgressBarView.swift 3 | // FMProgressBarViewDemo 4 | // 5 | // Created by felipe munoz on 7/8/15. 6 | // Copyright (c) 2015 felipe munoz. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @IBDesignable public class FMProgressBarView: UIView { 12 | 13 | // Our custom view from the XIB file 14 | var view: UIView! 15 | 16 | @IBOutlet weak var backgroundImage: UIImageView! 17 | var loadingImage:UIImage! 18 | var completedImage:UIImage! 19 | 20 | override init(frame: CGRect) { 21 | super.init(frame: frame) 22 | xibSetup() 23 | } 24 | 25 | required public init(coder aDecoder: NSCoder) { 26 | super.init(coder: aDecoder) 27 | xibSetup() 28 | } 29 | 30 | @IBInspectable public var borderColor: UIColor = UIColor.clearColor() { 31 | didSet { 32 | layer.borderColor = borderColor.CGColor 33 | } 34 | } 35 | 36 | @IBInspectable public var cornerRadius: CGFloat = 1.0 { 37 | didSet { 38 | layer.cornerRadius = cornerRadius 39 | } 40 | } 41 | 42 | @IBInspectable public var borderWidth: CGFloat = 1.0 { 43 | didSet { 44 | layer.borderWidth = borderWidth 45 | self.updateBar() 46 | } 47 | } 48 | @IBInspectable public var title: String = "" { 49 | didSet { 50 | self.updateImages() 51 | self.updateBar() 52 | 53 | } 54 | } 55 | @IBInspectable public var titleLoadingColor: UIColor = UIColor.blackColor() { 56 | didSet { 57 | self.updateImages() 58 | self.updateBar() 59 | 60 | } 61 | } 62 | @IBInspectable public var titleCompletedColor: UIColor = UIColor.blueColor() { 63 | didSet { 64 | self.updateImages() 65 | self.updateBar() 66 | 67 | } 68 | } 69 | @IBInspectable public var backgroundLoadingColor: UIColor = UIColor.redColor() { 70 | didSet { 71 | self.updateImages() 72 | self.updateBar() 73 | 74 | } 75 | } 76 | @IBInspectable public var backgroundCompletedColor: UIColor = UIColor.yellowColor() { 77 | didSet { 78 | self.updateImages() 79 | self.updateBar() 80 | 81 | } 82 | } 83 | @IBInspectable public var backgroundImageLoading: UIImage? = nil { 84 | didSet { 85 | self.updateImages() 86 | self.updateBar() 87 | 88 | } 89 | } 90 | @IBInspectable public var backgroundImageCompleted: UIImage? = nil { 91 | didSet { 92 | self.updateImages() 93 | self.updateBar() 94 | 95 | } 96 | } 97 | 98 | @IBInspectable public var progressPercent: CGFloat = 0 { 99 | didSet { 100 | if(progressPercent >= 0 && progressPercent <= 1.0){ 101 | self.updateBar() 102 | } 103 | } 104 | } 105 | @IBInspectable public var useImages: Bool = false { 106 | didSet { 107 | self.updateImages() 108 | self.updateBar() 109 | } 110 | } 111 | 112 | public var titleFont: UIFont = UIFont.systemFontOfSize(25.0) { 113 | didSet { 114 | self.updateImages() 115 | self.updateBar() 116 | 117 | } 118 | } 119 | 120 | func xibSetup() { 121 | view = loadViewFromNib() 122 | 123 | // use bounds not frame or it'll be offset 124 | view.frame = bounds 125 | 126 | // Make the view stretch with containing view 127 | view.autoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight 128 | 129 | // Adding custom subview on top of our view (over any custom drawing > see note below) 130 | addSubview(view) 131 | } 132 | 133 | func loadViewFromNib() -> UIView { 134 | let bundle = NSBundle(forClass: self.dynamicType) 135 | let nib = UINib(nibName: "FMProgressBarView", bundle: bundle) 136 | 137 | // Assumes UIView is top level and only object in CustomView.xib file 138 | let view = nib.instantiateWithOwner(self, options: nil)[0] as! UIView 139 | return view 140 | } 141 | 142 | func updateImages(){ 143 | if(!self.useImages || self.backgroundImageLoading == nil || self.backgroundImageCompleted == nil ){ 144 | self.loadingImage = self.getBarImage(self.backgroundLoadingColor,textColor:self.titleLoadingColor) 145 | self.completedImage = self.getBarImage(self.backgroundCompletedColor,textColor:self.titleCompletedColor) 146 | } 147 | else{ 148 | self.loadingImage = self.getBarCustomImage(self.backgroundImageLoading!, textColor: titleLoadingColor) 149 | self.completedImage = self.getBarCustomImage(self.backgroundImageCompleted!, textColor: self.titleCompletedColor) 150 | } 151 | } 152 | 153 | func updateBar(){ 154 | if(self.loadingImage == nil || self.completedImage == nil){ 155 | self.useImages = false 156 | self.updateImages() 157 | } 158 | 159 | self.backgroundImage.image = self.getMixedImages(progressPercent, im1:self.completedImage, im2:self.loadingImage) 160 | self.backgroundImage.clipsToBounds = true 161 | self.layer.masksToBounds = true 162 | } 163 | 164 | func getMixedImages(percent:CGFloat,im1:UIImage,im2:UIImage)->UIImage{ 165 | UIGraphicsBeginImageContext(im1.size) 166 | im1.drawInRect(CGRectMake(0,0,im1.size.width,im1.size.height)) 167 | 168 | if(percent > 0 && percent <= 1.0){ 169 | var newRect = CGRectMake(0,0,ceil(im1.size.width*percent),im1.size.height) 170 | 171 | var croppedImage:CGImageRef = CGImageCreateWithImageInRect (im2.CGImage, newRect) 172 | UIImage(CGImage:croppedImage)!.drawInRect(CGRectMake(0,0,ceil(im1.size.width*percent),im1.size.height)) 173 | } 174 | 175 | var newImage = UIGraphicsGetImageFromCurrentImageContext() 176 | UIGraphicsEndImageContext() 177 | 178 | return newImage 179 | } 180 | /*generating image with color background*/ 181 | func getBarImage(color:UIColor, textColor:UIColor)->UIImage{ 182 | 183 | // Setup text parameters 184 | let aFont = self.titleFont 185 | var loadingText:NSString = self.title as NSString 186 | var style:NSMutableParagraphStyle = NSParagraphStyle.defaultParagraphStyle().mutableCopy() as! NSMutableParagraphStyle 187 | style.alignment = NSTextAlignment.Center 188 | let attr:CFDictionaryRef = [NSFontAttributeName:aFont,NSForegroundColorAttributeName:textColor,NSParagraphStyleAttributeName:style] 189 | var textSize = loadingText.sizeWithAttributes(attr as [NSObject : AnyObject]) 190 | 191 | //draw text in view 192 | let viewSize = self.view.frame.size 193 | 194 | UIGraphicsBeginImageContext(viewSize) 195 | 196 | let context = UIGraphicsGetCurrentContext() 197 | 198 | // set the fill color 199 | color.setFill() 200 | 201 | let rect = CGRectMake(0, 0, viewSize.width, viewSize.height) 202 | 203 | CGContextAddRect(context, rect) 204 | CGContextDrawPath(context,kCGPathFill) 205 | 206 | loadingText.drawInRect(CGRectMake(rect.origin.x, 207 | rect.origin.y + (rect.size.height - textSize.height)/2.0, 208 | rect.size.width, 209 | textSize.height), withAttributes: attr as [NSObject : AnyObject]) 210 | var coloredImg = UIGraphicsGetImageFromCurrentImageContext() 211 | 212 | UIGraphicsEndImageContext() 213 | return coloredImg 214 | } 215 | /*generating image with custom background*/ 216 | func getBarCustomImage(image:UIImage, textColor:UIColor)->UIImage{ 217 | 218 | // Setup text parameters 219 | let aFont = self.titleFont 220 | var loadingText:NSString = self.title as NSString 221 | var style:NSMutableParagraphStyle = NSParagraphStyle.defaultParagraphStyle().mutableCopy() as! NSMutableParagraphStyle 222 | style.alignment = NSTextAlignment.Center 223 | let attr:CFDictionaryRef = [NSFontAttributeName:aFont,NSForegroundColorAttributeName:textColor,NSParagraphStyleAttributeName:style] 224 | var textSize = loadingText.sizeWithAttributes(attr as [NSObject : AnyObject]) 225 | 226 | //draw text in view 227 | let viewSize = self.view.frame.size 228 | 229 | UIGraphicsBeginImageContext(viewSize) 230 | 231 | let context = UIGraphicsGetCurrentContext() 232 | 233 | 234 | 235 | let rect = CGRectMake(0, 0, viewSize.width, viewSize.height) 236 | 237 | CGContextDrawImage(context, rect, image.CGImage); 238 | 239 | loadingText.drawInRect(CGRectMake(rect.origin.x, 240 | rect.origin.y + (rect.size.height - textSize.height)/2.0, 241 | rect.size.width, 242 | textSize.height), withAttributes: attr as [NSObject : AnyObject]) 243 | var coloredImg = UIGraphicsGetImageFromCurrentImageContext() 244 | 245 | UIGraphicsEndImageContext() 246 | return coloredImg 247 | } 248 | } -------------------------------------------------------------------------------- /FMProgressBarView/FMProgressBarView.xib: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /FMProgressBarView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | FelipeMunoz.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /FMProgressBarViewDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 554E72CF1B4CD4FF00BD1F0B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 554E72CE1B4CD4FF00BD1F0B /* AppDelegate.swift */; }; 11 | 554E72D11B4CD4FF00BD1F0B /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 554E72D01B4CD4FF00BD1F0B /* ViewController.swift */; }; 12 | 554E72D41B4CD4FF00BD1F0B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 554E72D21B4CD4FF00BD1F0B /* Main.storyboard */; }; 13 | 554E72D61B4CD4FF00BD1F0B /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 554E72D51B4CD4FF00BD1F0B /* Images.xcassets */; }; 14 | 554E72D91B4CD4FF00BD1F0B /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 554E72D71B4CD4FF00BD1F0B /* LaunchScreen.xib */; }; 15 | 554E72E51B4CD4FF00BD1F0B /* FMProgressBarViewDemoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 554E72E41B4CD4FF00BD1F0B /* FMProgressBarViewDemoTests.swift */; }; 16 | 554E72F81B4CD51300BD1F0B /* FMProgressBarView.h in Headers */ = {isa = PBXBuildFile; fileRef = 554E72F71B4CD51300BD1F0B /* FMProgressBarView.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | 554E72FE1B4CD51300BD1F0B /* FMProgressBarView.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 554E72F31B4CD51300BD1F0B /* FMProgressBarView.framework */; }; 18 | 554E73071B4CD51300BD1F0B /* FMProgressBarViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 554E73061B4CD51300BD1F0B /* FMProgressBarViewTests.swift */; }; 19 | 554E730B1B4CD51300BD1F0B /* FMProgressBarView.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 554E72F31B4CD51300BD1F0B /* FMProgressBarView.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 20 | 554E73141B4CD54600BD1F0B /* FMProgressBarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 554E73131B4CD54600BD1F0B /* FMProgressBarView.swift */; }; 21 | 554E73161B4CD95D00BD1F0B /* FMProgressBarView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 554E73151B4CD95D00BD1F0B /* FMProgressBarView.xib */; }; 22 | 554E73171B4CE6FF00BD1F0B /* FMProgressBarView.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 554E72F31B4CD51300BD1F0B /* FMProgressBarView.framework */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | 554E72DF1B4CD4FF00BD1F0B /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = 554E72C11B4CD4FF00BD1F0B /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = 554E72C81B4CD4FF00BD1F0B; 31 | remoteInfo = FMProgressBarViewDemo; 32 | }; 33 | 554E72FF1B4CD51300BD1F0B /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = 554E72C11B4CD4FF00BD1F0B /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = 554E72F21B4CD51300BD1F0B; 38 | remoteInfo = FMProgressBarView; 39 | }; 40 | 554E73011B4CD51300BD1F0B /* PBXContainerItemProxy */ = { 41 | isa = PBXContainerItemProxy; 42 | containerPortal = 554E72C11B4CD4FF00BD1F0B /* Project object */; 43 | proxyType = 1; 44 | remoteGlobalIDString = 554E72C81B4CD4FF00BD1F0B; 45 | remoteInfo = FMProgressBarViewDemo; 46 | }; 47 | 554E73081B4CD51300BD1F0B /* PBXContainerItemProxy */ = { 48 | isa = PBXContainerItemProxy; 49 | containerPortal = 554E72C11B4CD4FF00BD1F0B /* Project object */; 50 | proxyType = 1; 51 | remoteGlobalIDString = 554E72F21B4CD51300BD1F0B; 52 | remoteInfo = FMProgressBarView; 53 | }; 54 | /* End PBXContainerItemProxy section */ 55 | 56 | /* Begin PBXCopyFilesBuildPhase section */ 57 | 554E730F1B4CD51300BD1F0B /* Embed Frameworks */ = { 58 | isa = PBXCopyFilesBuildPhase; 59 | buildActionMask = 2147483647; 60 | dstPath = ""; 61 | dstSubfolderSpec = 10; 62 | files = ( 63 | 554E730B1B4CD51300BD1F0B /* FMProgressBarView.framework in Embed Frameworks */, 64 | ); 65 | name = "Embed Frameworks"; 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXCopyFilesBuildPhase section */ 69 | 70 | /* Begin PBXFileReference section */ 71 | 554E72C91B4CD4FF00BD1F0B /* FMProgressBarViewDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FMProgressBarViewDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 72 | 554E72CD1B4CD4FF00BD1F0B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 73 | 554E72CE1B4CD4FF00BD1F0B /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 74 | 554E72D01B4CD4FF00BD1F0B /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 75 | 554E72D31B4CD4FF00BD1F0B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 76 | 554E72D51B4CD4FF00BD1F0B /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 77 | 554E72D81B4CD4FF00BD1F0B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 78 | 554E72DE1B4CD4FF00BD1F0B /* FMProgressBarViewDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FMProgressBarViewDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 79 | 554E72E31B4CD4FF00BD1F0B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 80 | 554E72E41B4CD4FF00BD1F0B /* FMProgressBarViewDemoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FMProgressBarViewDemoTests.swift; sourceTree = ""; }; 81 | 554E72F31B4CD51300BD1F0B /* FMProgressBarView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FMProgressBarView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 82 | 554E72F61B4CD51300BD1F0B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 83 | 554E72F71B4CD51300BD1F0B /* FMProgressBarView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FMProgressBarView.h; sourceTree = ""; }; 84 | 554E72FD1B4CD51300BD1F0B /* FMProgressBarViewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FMProgressBarViewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 85 | 554E73051B4CD51300BD1F0B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 86 | 554E73061B4CD51300BD1F0B /* FMProgressBarViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FMProgressBarViewTests.swift; sourceTree = ""; }; 87 | 554E73131B4CD54600BD1F0B /* FMProgressBarView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FMProgressBarView.swift; sourceTree = ""; }; 88 | 554E73151B4CD95D00BD1F0B /* FMProgressBarView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = FMProgressBarView.xib; sourceTree = ""; }; 89 | /* End PBXFileReference section */ 90 | 91 | /* Begin PBXFrameworksBuildPhase section */ 92 | 554E72C61B4CD4FF00BD1F0B /* Frameworks */ = { 93 | isa = PBXFrameworksBuildPhase; 94 | buildActionMask = 2147483647; 95 | files = ( 96 | 554E73171B4CE6FF00BD1F0B /* FMProgressBarView.framework in Frameworks */, 97 | ); 98 | runOnlyForDeploymentPostprocessing = 0; 99 | }; 100 | 554E72DB1B4CD4FF00BD1F0B /* Frameworks */ = { 101 | isa = PBXFrameworksBuildPhase; 102 | buildActionMask = 2147483647; 103 | files = ( 104 | ); 105 | runOnlyForDeploymentPostprocessing = 0; 106 | }; 107 | 554E72EF1B4CD51300BD1F0B /* Frameworks */ = { 108 | isa = PBXFrameworksBuildPhase; 109 | buildActionMask = 2147483647; 110 | files = ( 111 | ); 112 | runOnlyForDeploymentPostprocessing = 0; 113 | }; 114 | 554E72FA1B4CD51300BD1F0B /* Frameworks */ = { 115 | isa = PBXFrameworksBuildPhase; 116 | buildActionMask = 2147483647; 117 | files = ( 118 | 554E72FE1B4CD51300BD1F0B /* FMProgressBarView.framework in Frameworks */, 119 | ); 120 | runOnlyForDeploymentPostprocessing = 0; 121 | }; 122 | /* End PBXFrameworksBuildPhase section */ 123 | 124 | /* Begin PBXGroup section */ 125 | 554E72C01B4CD4FF00BD1F0B = { 126 | isa = PBXGroup; 127 | children = ( 128 | 554E72CB1B4CD4FF00BD1F0B /* FMProgressBarViewDemo */, 129 | 554E72E11B4CD4FF00BD1F0B /* FMProgressBarViewDemoTests */, 130 | 554E72F41B4CD51300BD1F0B /* FMProgressBarView */, 131 | 554E73031B4CD51300BD1F0B /* FMProgressBarViewTests */, 132 | 554E72CA1B4CD4FF00BD1F0B /* Products */, 133 | ); 134 | sourceTree = ""; 135 | }; 136 | 554E72CA1B4CD4FF00BD1F0B /* Products */ = { 137 | isa = PBXGroup; 138 | children = ( 139 | 554E72C91B4CD4FF00BD1F0B /* FMProgressBarViewDemo.app */, 140 | 554E72DE1B4CD4FF00BD1F0B /* FMProgressBarViewDemoTests.xctest */, 141 | 554E72F31B4CD51300BD1F0B /* FMProgressBarView.framework */, 142 | 554E72FD1B4CD51300BD1F0B /* FMProgressBarViewTests.xctest */, 143 | ); 144 | name = Products; 145 | sourceTree = ""; 146 | }; 147 | 554E72CB1B4CD4FF00BD1F0B /* FMProgressBarViewDemo */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | 554E72CE1B4CD4FF00BD1F0B /* AppDelegate.swift */, 151 | 554E72D01B4CD4FF00BD1F0B /* ViewController.swift */, 152 | 554E72D21B4CD4FF00BD1F0B /* Main.storyboard */, 153 | 554E72D51B4CD4FF00BD1F0B /* Images.xcassets */, 154 | 554E72D71B4CD4FF00BD1F0B /* LaunchScreen.xib */, 155 | 554E72CC1B4CD4FF00BD1F0B /* Supporting Files */, 156 | ); 157 | path = FMProgressBarViewDemo; 158 | sourceTree = ""; 159 | }; 160 | 554E72CC1B4CD4FF00BD1F0B /* Supporting Files */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | 554E72CD1B4CD4FF00BD1F0B /* Info.plist */, 164 | ); 165 | name = "Supporting Files"; 166 | sourceTree = ""; 167 | }; 168 | 554E72E11B4CD4FF00BD1F0B /* FMProgressBarViewDemoTests */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | 554E72E41B4CD4FF00BD1F0B /* FMProgressBarViewDemoTests.swift */, 172 | 554E72E21B4CD4FF00BD1F0B /* Supporting Files */, 173 | ); 174 | path = FMProgressBarViewDemoTests; 175 | sourceTree = ""; 176 | }; 177 | 554E72E21B4CD4FF00BD1F0B /* Supporting Files */ = { 178 | isa = PBXGroup; 179 | children = ( 180 | 554E72E31B4CD4FF00BD1F0B /* Info.plist */, 181 | ); 182 | name = "Supporting Files"; 183 | sourceTree = ""; 184 | }; 185 | 554E72F41B4CD51300BD1F0B /* FMProgressBarView */ = { 186 | isa = PBXGroup; 187 | children = ( 188 | 554E72F71B4CD51300BD1F0B /* FMProgressBarView.h */, 189 | 554E72F51B4CD51300BD1F0B /* Supporting Files */, 190 | 554E73131B4CD54600BD1F0B /* FMProgressBarView.swift */, 191 | 554E73151B4CD95D00BD1F0B /* FMProgressBarView.xib */, 192 | ); 193 | path = FMProgressBarView; 194 | sourceTree = ""; 195 | }; 196 | 554E72F51B4CD51300BD1F0B /* Supporting Files */ = { 197 | isa = PBXGroup; 198 | children = ( 199 | 554E72F61B4CD51300BD1F0B /* Info.plist */, 200 | ); 201 | name = "Supporting Files"; 202 | sourceTree = ""; 203 | }; 204 | 554E73031B4CD51300BD1F0B /* FMProgressBarViewTests */ = { 205 | isa = PBXGroup; 206 | children = ( 207 | 554E73061B4CD51300BD1F0B /* FMProgressBarViewTests.swift */, 208 | 554E73041B4CD51300BD1F0B /* Supporting Files */, 209 | ); 210 | path = FMProgressBarViewTests; 211 | sourceTree = ""; 212 | }; 213 | 554E73041B4CD51300BD1F0B /* Supporting Files */ = { 214 | isa = PBXGroup; 215 | children = ( 216 | 554E73051B4CD51300BD1F0B /* Info.plist */, 217 | ); 218 | name = "Supporting Files"; 219 | sourceTree = ""; 220 | }; 221 | /* End PBXGroup section */ 222 | 223 | /* Begin PBXHeadersBuildPhase section */ 224 | 554E72F01B4CD51300BD1F0B /* Headers */ = { 225 | isa = PBXHeadersBuildPhase; 226 | buildActionMask = 2147483647; 227 | files = ( 228 | 554E72F81B4CD51300BD1F0B /* FMProgressBarView.h in Headers */, 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | }; 232 | /* End PBXHeadersBuildPhase section */ 233 | 234 | /* Begin PBXNativeTarget section */ 235 | 554E72C81B4CD4FF00BD1F0B /* FMProgressBarViewDemo */ = { 236 | isa = PBXNativeTarget; 237 | buildConfigurationList = 554E72E81B4CD4FF00BD1F0B /* Build configuration list for PBXNativeTarget "FMProgressBarViewDemo" */; 238 | buildPhases = ( 239 | 554E72C51B4CD4FF00BD1F0B /* Sources */, 240 | 554E72C61B4CD4FF00BD1F0B /* Frameworks */, 241 | 554E72C71B4CD4FF00BD1F0B /* Resources */, 242 | 554E730F1B4CD51300BD1F0B /* Embed Frameworks */, 243 | ); 244 | buildRules = ( 245 | ); 246 | dependencies = ( 247 | 554E73091B4CD51300BD1F0B /* PBXTargetDependency */, 248 | ); 249 | name = FMProgressBarViewDemo; 250 | productName = FMProgressBarViewDemo; 251 | productReference = 554E72C91B4CD4FF00BD1F0B /* FMProgressBarViewDemo.app */; 252 | productType = "com.apple.product-type.application"; 253 | }; 254 | 554E72DD1B4CD4FF00BD1F0B /* FMProgressBarViewDemoTests */ = { 255 | isa = PBXNativeTarget; 256 | buildConfigurationList = 554E72EB1B4CD4FF00BD1F0B /* Build configuration list for PBXNativeTarget "FMProgressBarViewDemoTests" */; 257 | buildPhases = ( 258 | 554E72DA1B4CD4FF00BD1F0B /* Sources */, 259 | 554E72DB1B4CD4FF00BD1F0B /* Frameworks */, 260 | 554E72DC1B4CD4FF00BD1F0B /* Resources */, 261 | ); 262 | buildRules = ( 263 | ); 264 | dependencies = ( 265 | 554E72E01B4CD4FF00BD1F0B /* PBXTargetDependency */, 266 | ); 267 | name = FMProgressBarViewDemoTests; 268 | productName = FMProgressBarViewDemoTests; 269 | productReference = 554E72DE1B4CD4FF00BD1F0B /* FMProgressBarViewDemoTests.xctest */; 270 | productType = "com.apple.product-type.bundle.unit-test"; 271 | }; 272 | 554E72F21B4CD51300BD1F0B /* FMProgressBarView */ = { 273 | isa = PBXNativeTarget; 274 | buildConfigurationList = 554E730C1B4CD51300BD1F0B /* Build configuration list for PBXNativeTarget "FMProgressBarView" */; 275 | buildPhases = ( 276 | 554E72EE1B4CD51300BD1F0B /* Sources */, 277 | 554E72EF1B4CD51300BD1F0B /* Frameworks */, 278 | 554E72F01B4CD51300BD1F0B /* Headers */, 279 | 554E72F11B4CD51300BD1F0B /* Resources */, 280 | ); 281 | buildRules = ( 282 | ); 283 | dependencies = ( 284 | ); 285 | name = FMProgressBarView; 286 | productName = FMProgressBarView; 287 | productReference = 554E72F31B4CD51300BD1F0B /* FMProgressBarView.framework */; 288 | productType = "com.apple.product-type.framework"; 289 | }; 290 | 554E72FC1B4CD51300BD1F0B /* FMProgressBarViewTests */ = { 291 | isa = PBXNativeTarget; 292 | buildConfigurationList = 554E73101B4CD51300BD1F0B /* Build configuration list for PBXNativeTarget "FMProgressBarViewTests" */; 293 | buildPhases = ( 294 | 554E72F91B4CD51300BD1F0B /* Sources */, 295 | 554E72FA1B4CD51300BD1F0B /* Frameworks */, 296 | 554E72FB1B4CD51300BD1F0B /* Resources */, 297 | ); 298 | buildRules = ( 299 | ); 300 | dependencies = ( 301 | 554E73001B4CD51300BD1F0B /* PBXTargetDependency */, 302 | 554E73021B4CD51300BD1F0B /* PBXTargetDependency */, 303 | ); 304 | name = FMProgressBarViewTests; 305 | productName = FMProgressBarViewTests; 306 | productReference = 554E72FD1B4CD51300BD1F0B /* FMProgressBarViewTests.xctest */; 307 | productType = "com.apple.product-type.bundle.unit-test"; 308 | }; 309 | /* End PBXNativeTarget section */ 310 | 311 | /* Begin PBXProject section */ 312 | 554E72C11B4CD4FF00BD1F0B /* Project object */ = { 313 | isa = PBXProject; 314 | attributes = { 315 | LastUpgradeCheck = 0630; 316 | ORGANIZATIONNAME = "felipe munoz"; 317 | TargetAttributes = { 318 | 554E72C81B4CD4FF00BD1F0B = { 319 | CreatedOnToolsVersion = 6.3.2; 320 | }; 321 | 554E72DD1B4CD4FF00BD1F0B = { 322 | CreatedOnToolsVersion = 6.3.2; 323 | TestTargetID = 554E72C81B4CD4FF00BD1F0B; 324 | }; 325 | 554E72F21B4CD51300BD1F0B = { 326 | CreatedOnToolsVersion = 6.3.2; 327 | }; 328 | 554E72FC1B4CD51300BD1F0B = { 329 | CreatedOnToolsVersion = 6.3.2; 330 | TestTargetID = 554E72C81B4CD4FF00BD1F0B; 331 | }; 332 | }; 333 | }; 334 | buildConfigurationList = 554E72C41B4CD4FF00BD1F0B /* Build configuration list for PBXProject "FMProgressBarViewDemo" */; 335 | compatibilityVersion = "Xcode 3.2"; 336 | developmentRegion = English; 337 | hasScannedForEncodings = 0; 338 | knownRegions = ( 339 | en, 340 | Base, 341 | ); 342 | mainGroup = 554E72C01B4CD4FF00BD1F0B; 343 | productRefGroup = 554E72CA1B4CD4FF00BD1F0B /* Products */; 344 | projectDirPath = ""; 345 | projectRoot = ""; 346 | targets = ( 347 | 554E72C81B4CD4FF00BD1F0B /* FMProgressBarViewDemo */, 348 | 554E72DD1B4CD4FF00BD1F0B /* FMProgressBarViewDemoTests */, 349 | 554E72F21B4CD51300BD1F0B /* FMProgressBarView */, 350 | 554E72FC1B4CD51300BD1F0B /* FMProgressBarViewTests */, 351 | ); 352 | }; 353 | /* End PBXProject section */ 354 | 355 | /* Begin PBXResourcesBuildPhase section */ 356 | 554E72C71B4CD4FF00BD1F0B /* Resources */ = { 357 | isa = PBXResourcesBuildPhase; 358 | buildActionMask = 2147483647; 359 | files = ( 360 | 554E72D41B4CD4FF00BD1F0B /* Main.storyboard in Resources */, 361 | 554E72D91B4CD4FF00BD1F0B /* LaunchScreen.xib in Resources */, 362 | 554E72D61B4CD4FF00BD1F0B /* Images.xcassets in Resources */, 363 | ); 364 | runOnlyForDeploymentPostprocessing = 0; 365 | }; 366 | 554E72DC1B4CD4FF00BD1F0B /* Resources */ = { 367 | isa = PBXResourcesBuildPhase; 368 | buildActionMask = 2147483647; 369 | files = ( 370 | ); 371 | runOnlyForDeploymentPostprocessing = 0; 372 | }; 373 | 554E72F11B4CD51300BD1F0B /* Resources */ = { 374 | isa = PBXResourcesBuildPhase; 375 | buildActionMask = 2147483647; 376 | files = ( 377 | 554E73161B4CD95D00BD1F0B /* FMProgressBarView.xib in Resources */, 378 | ); 379 | runOnlyForDeploymentPostprocessing = 0; 380 | }; 381 | 554E72FB1B4CD51300BD1F0B /* Resources */ = { 382 | isa = PBXResourcesBuildPhase; 383 | buildActionMask = 2147483647; 384 | files = ( 385 | ); 386 | runOnlyForDeploymentPostprocessing = 0; 387 | }; 388 | /* End PBXResourcesBuildPhase section */ 389 | 390 | /* Begin PBXSourcesBuildPhase section */ 391 | 554E72C51B4CD4FF00BD1F0B /* Sources */ = { 392 | isa = PBXSourcesBuildPhase; 393 | buildActionMask = 2147483647; 394 | files = ( 395 | 554E72D11B4CD4FF00BD1F0B /* ViewController.swift in Sources */, 396 | 554E72CF1B4CD4FF00BD1F0B /* AppDelegate.swift in Sources */, 397 | ); 398 | runOnlyForDeploymentPostprocessing = 0; 399 | }; 400 | 554E72DA1B4CD4FF00BD1F0B /* Sources */ = { 401 | isa = PBXSourcesBuildPhase; 402 | buildActionMask = 2147483647; 403 | files = ( 404 | 554E72E51B4CD4FF00BD1F0B /* FMProgressBarViewDemoTests.swift in Sources */, 405 | ); 406 | runOnlyForDeploymentPostprocessing = 0; 407 | }; 408 | 554E72EE1B4CD51300BD1F0B /* Sources */ = { 409 | isa = PBXSourcesBuildPhase; 410 | buildActionMask = 2147483647; 411 | files = ( 412 | 554E73141B4CD54600BD1F0B /* FMProgressBarView.swift in Sources */, 413 | ); 414 | runOnlyForDeploymentPostprocessing = 0; 415 | }; 416 | 554E72F91B4CD51300BD1F0B /* Sources */ = { 417 | isa = PBXSourcesBuildPhase; 418 | buildActionMask = 2147483647; 419 | files = ( 420 | 554E73071B4CD51300BD1F0B /* FMProgressBarViewTests.swift in Sources */, 421 | ); 422 | runOnlyForDeploymentPostprocessing = 0; 423 | }; 424 | /* End PBXSourcesBuildPhase section */ 425 | 426 | /* Begin PBXTargetDependency section */ 427 | 554E72E01B4CD4FF00BD1F0B /* PBXTargetDependency */ = { 428 | isa = PBXTargetDependency; 429 | target = 554E72C81B4CD4FF00BD1F0B /* FMProgressBarViewDemo */; 430 | targetProxy = 554E72DF1B4CD4FF00BD1F0B /* PBXContainerItemProxy */; 431 | }; 432 | 554E73001B4CD51300BD1F0B /* PBXTargetDependency */ = { 433 | isa = PBXTargetDependency; 434 | target = 554E72F21B4CD51300BD1F0B /* FMProgressBarView */; 435 | targetProxy = 554E72FF1B4CD51300BD1F0B /* PBXContainerItemProxy */; 436 | }; 437 | 554E73021B4CD51300BD1F0B /* PBXTargetDependency */ = { 438 | isa = PBXTargetDependency; 439 | target = 554E72C81B4CD4FF00BD1F0B /* FMProgressBarViewDemo */; 440 | targetProxy = 554E73011B4CD51300BD1F0B /* PBXContainerItemProxy */; 441 | }; 442 | 554E73091B4CD51300BD1F0B /* PBXTargetDependency */ = { 443 | isa = PBXTargetDependency; 444 | target = 554E72F21B4CD51300BD1F0B /* FMProgressBarView */; 445 | targetProxy = 554E73081B4CD51300BD1F0B /* PBXContainerItemProxy */; 446 | }; 447 | /* End PBXTargetDependency section */ 448 | 449 | /* Begin PBXVariantGroup section */ 450 | 554E72D21B4CD4FF00BD1F0B /* Main.storyboard */ = { 451 | isa = PBXVariantGroup; 452 | children = ( 453 | 554E72D31B4CD4FF00BD1F0B /* Base */, 454 | ); 455 | name = Main.storyboard; 456 | sourceTree = ""; 457 | }; 458 | 554E72D71B4CD4FF00BD1F0B /* LaunchScreen.xib */ = { 459 | isa = PBXVariantGroup; 460 | children = ( 461 | 554E72D81B4CD4FF00BD1F0B /* Base */, 462 | ); 463 | name = LaunchScreen.xib; 464 | sourceTree = ""; 465 | }; 466 | /* End PBXVariantGroup section */ 467 | 468 | /* Begin XCBuildConfiguration section */ 469 | 554E72E61B4CD4FF00BD1F0B /* Debug */ = { 470 | isa = XCBuildConfiguration; 471 | buildSettings = { 472 | ALWAYS_SEARCH_USER_PATHS = NO; 473 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 474 | CLANG_CXX_LIBRARY = "libc++"; 475 | CLANG_ENABLE_MODULES = YES; 476 | CLANG_ENABLE_OBJC_ARC = YES; 477 | CLANG_WARN_BOOL_CONVERSION = YES; 478 | CLANG_WARN_CONSTANT_CONVERSION = YES; 479 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 480 | CLANG_WARN_EMPTY_BODY = YES; 481 | CLANG_WARN_ENUM_CONVERSION = YES; 482 | CLANG_WARN_INT_CONVERSION = YES; 483 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 484 | CLANG_WARN_UNREACHABLE_CODE = YES; 485 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 486 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 487 | COPY_PHASE_STRIP = NO; 488 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 489 | ENABLE_STRICT_OBJC_MSGSEND = YES; 490 | GCC_C_LANGUAGE_STANDARD = gnu99; 491 | GCC_DYNAMIC_NO_PIC = NO; 492 | GCC_NO_COMMON_BLOCKS = YES; 493 | GCC_OPTIMIZATION_LEVEL = 0; 494 | GCC_PREPROCESSOR_DEFINITIONS = ( 495 | "DEBUG=1", 496 | "$(inherited)", 497 | ); 498 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 499 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 500 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 501 | GCC_WARN_UNDECLARED_SELECTOR = YES; 502 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 503 | GCC_WARN_UNUSED_FUNCTION = YES; 504 | GCC_WARN_UNUSED_VARIABLE = YES; 505 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 506 | MTL_ENABLE_DEBUG_INFO = YES; 507 | ONLY_ACTIVE_ARCH = YES; 508 | SDKROOT = iphoneos; 509 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 510 | TARGETED_DEVICE_FAMILY = "1,2"; 511 | }; 512 | name = Debug; 513 | }; 514 | 554E72E71B4CD4FF00BD1F0B /* Release */ = { 515 | isa = XCBuildConfiguration; 516 | buildSettings = { 517 | ALWAYS_SEARCH_USER_PATHS = NO; 518 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 519 | CLANG_CXX_LIBRARY = "libc++"; 520 | CLANG_ENABLE_MODULES = YES; 521 | CLANG_ENABLE_OBJC_ARC = YES; 522 | CLANG_WARN_BOOL_CONVERSION = YES; 523 | CLANG_WARN_CONSTANT_CONVERSION = YES; 524 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 525 | CLANG_WARN_EMPTY_BODY = YES; 526 | CLANG_WARN_ENUM_CONVERSION = YES; 527 | CLANG_WARN_INT_CONVERSION = YES; 528 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 529 | CLANG_WARN_UNREACHABLE_CODE = YES; 530 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 531 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 532 | COPY_PHASE_STRIP = NO; 533 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 534 | ENABLE_NS_ASSERTIONS = NO; 535 | ENABLE_STRICT_OBJC_MSGSEND = YES; 536 | GCC_C_LANGUAGE_STANDARD = gnu99; 537 | GCC_NO_COMMON_BLOCKS = YES; 538 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 539 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 540 | GCC_WARN_UNDECLARED_SELECTOR = YES; 541 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 542 | GCC_WARN_UNUSED_FUNCTION = YES; 543 | GCC_WARN_UNUSED_VARIABLE = YES; 544 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 545 | MTL_ENABLE_DEBUG_INFO = NO; 546 | SDKROOT = iphoneos; 547 | TARGETED_DEVICE_FAMILY = "1,2"; 548 | VALIDATE_PRODUCT = YES; 549 | }; 550 | name = Release; 551 | }; 552 | 554E72E91B4CD4FF00BD1F0B /* Debug */ = { 553 | isa = XCBuildConfiguration; 554 | buildSettings = { 555 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 556 | FRAMEWORK_SEARCH_PATHS = "@/**"; 557 | INFOPLIST_FILE = FMProgressBarViewDemo/Info.plist; 558 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 559 | PRODUCT_NAME = "$(TARGET_NAME)"; 560 | }; 561 | name = Debug; 562 | }; 563 | 554E72EA1B4CD4FF00BD1F0B /* Release */ = { 564 | isa = XCBuildConfiguration; 565 | buildSettings = { 566 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 567 | FRAMEWORK_SEARCH_PATHS = "@/**"; 568 | INFOPLIST_FILE = FMProgressBarViewDemo/Info.plist; 569 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 570 | PRODUCT_NAME = "$(TARGET_NAME)"; 571 | }; 572 | name = Release; 573 | }; 574 | 554E72EC1B4CD4FF00BD1F0B /* Debug */ = { 575 | isa = XCBuildConfiguration; 576 | buildSettings = { 577 | BUNDLE_LOADER = "$(TEST_HOST)"; 578 | FRAMEWORK_SEARCH_PATHS = ( 579 | "$(SDKROOT)/Developer/Library/Frameworks", 580 | "$(inherited)", 581 | ); 582 | GCC_PREPROCESSOR_DEFINITIONS = ( 583 | "DEBUG=1", 584 | "$(inherited)", 585 | ); 586 | INFOPLIST_FILE = FMProgressBarViewDemoTests/Info.plist; 587 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 588 | PRODUCT_NAME = "$(TARGET_NAME)"; 589 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FMProgressBarViewDemo.app/FMProgressBarViewDemo"; 590 | }; 591 | name = Debug; 592 | }; 593 | 554E72ED1B4CD4FF00BD1F0B /* Release */ = { 594 | isa = XCBuildConfiguration; 595 | buildSettings = { 596 | BUNDLE_LOADER = "$(TEST_HOST)"; 597 | FRAMEWORK_SEARCH_PATHS = ( 598 | "$(SDKROOT)/Developer/Library/Frameworks", 599 | "$(inherited)", 600 | ); 601 | INFOPLIST_FILE = FMProgressBarViewDemoTests/Info.plist; 602 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 603 | PRODUCT_NAME = "$(TARGET_NAME)"; 604 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FMProgressBarViewDemo.app/FMProgressBarViewDemo"; 605 | }; 606 | name = Release; 607 | }; 608 | 554E730D1B4CD51300BD1F0B /* Debug */ = { 609 | isa = XCBuildConfiguration; 610 | buildSettings = { 611 | CLANG_ENABLE_MODULES = YES; 612 | CURRENT_PROJECT_VERSION = 1; 613 | DEFINES_MODULE = YES; 614 | DYLIB_COMPATIBILITY_VERSION = 1; 615 | DYLIB_CURRENT_VERSION = 1; 616 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 617 | GCC_PREPROCESSOR_DEFINITIONS = ( 618 | "DEBUG=1", 619 | "$(inherited)", 620 | ); 621 | INFOPLIST_FILE = FMProgressBarView/Info.plist; 622 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 623 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 624 | PRODUCT_NAME = "$(TARGET_NAME)"; 625 | SKIP_INSTALL = YES; 626 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 627 | VERSIONING_SYSTEM = "apple-generic"; 628 | VERSION_INFO_PREFIX = ""; 629 | }; 630 | name = Debug; 631 | }; 632 | 554E730E1B4CD51300BD1F0B /* Release */ = { 633 | isa = XCBuildConfiguration; 634 | buildSettings = { 635 | CLANG_ENABLE_MODULES = YES; 636 | CURRENT_PROJECT_VERSION = 1; 637 | DEFINES_MODULE = YES; 638 | DYLIB_COMPATIBILITY_VERSION = 1; 639 | DYLIB_CURRENT_VERSION = 1; 640 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 641 | INFOPLIST_FILE = FMProgressBarView/Info.plist; 642 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 643 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 644 | PRODUCT_NAME = "$(TARGET_NAME)"; 645 | SKIP_INSTALL = YES; 646 | VERSIONING_SYSTEM = "apple-generic"; 647 | VERSION_INFO_PREFIX = ""; 648 | }; 649 | name = Release; 650 | }; 651 | 554E73111B4CD51300BD1F0B /* Debug */ = { 652 | isa = XCBuildConfiguration; 653 | buildSettings = { 654 | FRAMEWORK_SEARCH_PATHS = ( 655 | "$(SDKROOT)/Developer/Library/Frameworks", 656 | "$(inherited)", 657 | ); 658 | GCC_PREPROCESSOR_DEFINITIONS = ( 659 | "DEBUG=1", 660 | "$(inherited)", 661 | ); 662 | INFOPLIST_FILE = FMProgressBarViewTests/Info.plist; 663 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 664 | PRODUCT_NAME = "$(TARGET_NAME)"; 665 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FMProgressBarViewDemo.app/FMProgressBarViewDemo"; 666 | }; 667 | name = Debug; 668 | }; 669 | 554E73121B4CD51300BD1F0B /* Release */ = { 670 | isa = XCBuildConfiguration; 671 | buildSettings = { 672 | FRAMEWORK_SEARCH_PATHS = ( 673 | "$(SDKROOT)/Developer/Library/Frameworks", 674 | "$(inherited)", 675 | ); 676 | INFOPLIST_FILE = FMProgressBarViewTests/Info.plist; 677 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 678 | PRODUCT_NAME = "$(TARGET_NAME)"; 679 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FMProgressBarViewDemo.app/FMProgressBarViewDemo"; 680 | }; 681 | name = Release; 682 | }; 683 | /* End XCBuildConfiguration section */ 684 | 685 | /* Begin XCConfigurationList section */ 686 | 554E72C41B4CD4FF00BD1F0B /* Build configuration list for PBXProject "FMProgressBarViewDemo" */ = { 687 | isa = XCConfigurationList; 688 | buildConfigurations = ( 689 | 554E72E61B4CD4FF00BD1F0B /* Debug */, 690 | 554E72E71B4CD4FF00BD1F0B /* Release */, 691 | ); 692 | defaultConfigurationIsVisible = 0; 693 | defaultConfigurationName = Release; 694 | }; 695 | 554E72E81B4CD4FF00BD1F0B /* Build configuration list for PBXNativeTarget "FMProgressBarViewDemo" */ = { 696 | isa = XCConfigurationList; 697 | buildConfigurations = ( 698 | 554E72E91B4CD4FF00BD1F0B /* Debug */, 699 | 554E72EA1B4CD4FF00BD1F0B /* Release */, 700 | ); 701 | defaultConfigurationIsVisible = 0; 702 | }; 703 | 554E72EB1B4CD4FF00BD1F0B /* Build configuration list for PBXNativeTarget "FMProgressBarViewDemoTests" */ = { 704 | isa = XCConfigurationList; 705 | buildConfigurations = ( 706 | 554E72EC1B4CD4FF00BD1F0B /* Debug */, 707 | 554E72ED1B4CD4FF00BD1F0B /* Release */, 708 | ); 709 | defaultConfigurationIsVisible = 0; 710 | }; 711 | 554E730C1B4CD51300BD1F0B /* Build configuration list for PBXNativeTarget "FMProgressBarView" */ = { 712 | isa = XCConfigurationList; 713 | buildConfigurations = ( 714 | 554E730D1B4CD51300BD1F0B /* Debug */, 715 | 554E730E1B4CD51300BD1F0B /* Release */, 716 | ); 717 | defaultConfigurationIsVisible = 0; 718 | }; 719 | 554E73101B4CD51300BD1F0B /* Build configuration list for PBXNativeTarget "FMProgressBarViewTests" */ = { 720 | isa = XCConfigurationList; 721 | buildConfigurations = ( 722 | 554E73111B4CD51300BD1F0B /* Debug */, 723 | 554E73121B4CD51300BD1F0B /* Release */, 724 | ); 725 | defaultConfigurationIsVisible = 0; 726 | }; 727 | /* End XCConfigurationList section */ 728 | }; 729 | rootObject = 554E72C11B4CD4FF00BD1F0B /* Project object */; 730 | } 731 | -------------------------------------------------------------------------------- /FMProgressBarViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /FMProgressBarViewDemo.xcodeproj/xcshareddata/xcschemes/FMProgressBarView.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 60 | 61 | 67 | 68 | 69 | 70 | 72 | 73 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /FMProgressBarViewDemo/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // FMProgressBarViewDemo 4 | // 5 | // Created by felipe munoz on 7/8/15. 6 | // Copyright (c) 2015 felipe munoz. 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: [NSObject: AnyObject]?) -> 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 | -------------------------------------------------------------------------------- /FMProgressBarViewDemo/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 | -------------------------------------------------------------------------------- /FMProgressBarViewDemo/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 | -------------------------------------------------------------------------------- /FMProgressBarViewDemo/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /FMProgressBarViewDemo/Images.xcassets/t1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "colours-sample.jpg" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /FMProgressBarViewDemo/Images.xcassets/t1.imageset/colours-sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felimuno/FMProgressBarView/b0f0a4b9a58d30b8b67bd683180ed8747dfa7d6d/FMProgressBarViewDemo/Images.xcassets/t1.imageset/colours-sample.jpg -------------------------------------------------------------------------------- /FMProgressBarViewDemo/Images.xcassets/t2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "water0hk.jpg" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /FMProgressBarViewDemo/Images.xcassets/t2.imageset/water0hk.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felimuno/FMProgressBarView/b0f0a4b9a58d30b8b67bd683180ed8747dfa7d6d/FMProgressBarViewDemo/Images.xcassets/t2.imageset/water0hk.jpg -------------------------------------------------------------------------------- /FMProgressBarViewDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | FelipeMunoz.$(PRODUCT_NAME:rfc1034identifier) 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 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /FMProgressBarViewDemo/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // FMProgressBarViewDemo 4 | // 5 | // Created by felipe munoz on 7/8/15. 6 | // Copyright (c) 2015 felipe munoz. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import FMProgressBarView 11 | class ViewController: UIViewController { 12 | 13 | @IBOutlet weak var mySlider: UISlider! 14 | @IBOutlet weak var pbar: FMProgressBarView! 15 | @IBOutlet weak var pbar2: FMProgressBarView! 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | //you can set the parameters on Interface Builder or programmatically 20 | /* 21 | self.pbar.title = "Custom Text.." 22 | self.pbar.titleFont = UIFont(name:"Helvetica", size: 27.0)! 23 | self.pbar.titleCompletedColor = UIColor.blackColor() 24 | self.pbar.titleLoadingColor = UIColor.whiteColor() 25 | 26 | self.pbar.backgroundCompletedColor = UIColor.greenColor() 27 | self.pbar.backgroundLoadingColor = UIColor.redColor() 28 | 29 | self.pbar.borderWidth = 1.0 30 | self.pbar.borderColor = UIColor.blueColor() 31 | 32 | self.pbar2.useImages = true 33 | */ 34 | 35 | self.pbar.titleFont = UIFont(name:"Helvetica", size: 27.0)! 36 | self.pbar2.titleFont = UIFont(name:"Helvetica", size: 27.0)! 37 | } 38 | 39 | override func didReceiveMemoryWarning() { 40 | super.didReceiveMemoryWarning() 41 | // Dispose of any resources that can be recreated. 42 | } 43 | 44 | @IBAction func valueChanged(sender: UISlider) { 45 | var currentValue = sender.value/sender.maximumValue 46 | 47 | pbar.progressPercent = CGFloat(currentValue) 48 | pbar2.progressPercent = CGFloat(currentValue) 49 | } 50 | 51 | } 52 | 53 | -------------------------------------------------------------------------------- /FMProgressBarViewDemoTests/FMProgressBarViewDemoTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FMProgressBarViewDemoTests.swift 3 | // FMProgressBarViewDemoTests 4 | // 5 | // Created by felipe munoz on 7/8/15. 6 | // Copyright (c) 2015 felipe munoz. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import XCTest 11 | 12 | class FMProgressBarViewDemoTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | XCTAssert(true, "Pass") 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measureBlock() { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /FMProgressBarViewDemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | FelipeMunoz.$(PRODUCT_NAME:rfc1034identifier) 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 | -------------------------------------------------------------------------------- /FMProgressBarViewTests/FMProgressBarViewTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FMProgressBarViewTests.swift 3 | // FMProgressBarViewTests 4 | // 5 | // Created by felipe munoz on 7/8/15. 6 | // Copyright (c) 2015 felipe munoz. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import XCTest 11 | 12 | class FMProgressBarViewTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | XCTAssert(true, "Pass") 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measureBlock() { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /FMProgressBarViewTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | FelipeMunoz.$(PRODUCT_NAME:rfc1034identifier) 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 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 felimuno 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 all 13 | 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 THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FMProgressBarView 2 | [![Platform](https://img.shields.io/cocoapods/p/KPProgressImageView.svg?style=flat)](http://cocoapods.org/pods/KPProgressImageView) 3 | 4 | ## Usage 5 | 6 | 7 | Usage is very simple. 8 | 9 | * Create a UIView with `FMProgressBarView` class in your Storyboard 10 | * Set the parameters directly on interface builder or programaticcaly on your view controller code 11 | * Change progress variable `progressPercent` 12 | 13 | ## Demo 14 | 15 | ![alt tag](https://cloud.githubusercontent.com/assets/2746408/9211115/60143704-4056-11e5-83d6-da07b4aff3b5.gif) 16 | 17 | ## Author 18 | 19 | Felipe Muñoz 20 | 21 | ## License 22 | 23 | FMProgressBarView is available under the MIT license. --------------------------------------------------------------------------------