├── .swift-version
├── preview.gif
├── output_F2Ryon.gif
├── SimulatorScreenShot.png
├── Package.swift
├── Example
├── ButtonProgressBar-iOS
│ ├── Images.xcassets
│ │ ├── Contents.json
│ │ ├── checkmark.imageset
│ │ │ ├── Checkmark_000000_25.png
│ │ │ ├── Checkmark_000000_50.png
│ │ │ ├── Checkmark_000000_75.png
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── Info.plist
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.xib
│ ├── AppDelegate.swift
│ └── ViewController.swift
├── Podfile
├── ButtonProgressBar-iOS.xcodeproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ └── ButtonProgressBar-iOS-Example.xcscheme
│ └── project.pbxproj
└── Tests
│ ├── Info.plist
│ └── Tests.swift
├── .travis.yml
├── .gitignore
├── LICENSE
├── ButtonProgressBar-iOS.podspec
├── README.md
└── Source
└── ButtonProgressBar.swift
/.swift-version:
--------------------------------------------------------------------------------
1 | 4.0
2 |
--------------------------------------------------------------------------------
/preview.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thePsguy/ButtonProgressBar-iOS/HEAD/preview.gif
--------------------------------------------------------------------------------
/output_F2Ryon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thePsguy/ButtonProgressBar-iOS/HEAD/output_F2Ryon.gif
--------------------------------------------------------------------------------
/SimulatorScreenShot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thePsguy/ButtonProgressBar-iOS/HEAD/SimulatorScreenShot.png
--------------------------------------------------------------------------------
/Package.swift:
--------------------------------------------------------------------------------
1 | import PackageDescription
2 |
3 | let package = Package(
4 | name: "ButtonProgressBar_iOS"
5 | )
6 |
--------------------------------------------------------------------------------
/Example/ButtonProgressBar-iOS/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/Example/ButtonProgressBar-iOS/Images.xcassets/checkmark.imageset/Checkmark_000000_25.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thePsguy/ButtonProgressBar-iOS/HEAD/Example/ButtonProgressBar-iOS/Images.xcassets/checkmark.imageset/Checkmark_000000_25.png
--------------------------------------------------------------------------------
/Example/ButtonProgressBar-iOS/Images.xcassets/checkmark.imageset/Checkmark_000000_50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thePsguy/ButtonProgressBar-iOS/HEAD/Example/ButtonProgressBar-iOS/Images.xcassets/checkmark.imageset/Checkmark_000000_50.png
--------------------------------------------------------------------------------
/Example/ButtonProgressBar-iOS/Images.xcassets/checkmark.imageset/Checkmark_000000_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thePsguy/ButtonProgressBar-iOS/HEAD/Example/ButtonProgressBar-iOS/Images.xcassets/checkmark.imageset/Checkmark_000000_75.png
--------------------------------------------------------------------------------
/Example/Podfile:
--------------------------------------------------------------------------------
1 | use_frameworks!
2 |
3 | target 'ButtonProgressBar-iOS_Example' do
4 | pod 'ButtonProgressBar-iOS', :path => '../'
5 |
6 | target 'ButtonProgressBar-iOS_Tests' do
7 | inherit! :search_paths
8 |
9 |
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/Example/ButtonProgressBar-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Example/ButtonProgressBar-iOS/Images.xcassets/checkmark.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "Checkmark_000000_25.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "Checkmark_000000_50.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "Checkmark_000000_75.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/.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: xcode7.3
6 | language: objective-c
7 | # cache: cocoapods
8 | # podfile: Example/Podfile
9 | # before_install:
10 | # - gem install cocoapods # Since Travis is not always on latest version
11 | # - pod install --project-directory=Example
12 | script:
13 | - set -o pipefail && xcodebuild test -workspace Example/ButtonProgressBar-iOS.xcworkspace -scheme ButtonProgressBar-iOS-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
14 | - pod lib lint
15 |
--------------------------------------------------------------------------------
/.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 |
--------------------------------------------------------------------------------
/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 ButtonProgressBar_iOS
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 |
--------------------------------------------------------------------------------
/Example/ButtonProgressBar-iOS/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 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2017 Pushkar Sharma
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/Example/ButtonProgressBar-iOS/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 |
--------------------------------------------------------------------------------
/ButtonProgressBar-iOS.podspec:
--------------------------------------------------------------------------------
1 | #
2 | # Be sure to run `pod lib lint ButtonProgressBar-iOS.podspec' to ensure this is a
3 | # valid spec before submitting.
4 | #
5 | # Any lines starting with a # are optional, but their use is encouraged
6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
7 | #
8 |
9 | Pod::Spec.new do |s|
10 | s.name = 'ButtonProgressBar-iOS'
11 | s.version = '1.0.1'
12 | s.summary = 'A simple progress bar UIButton subclass.'
13 |
14 | # This description is used to generate tags and improve search results.
15 | # * Think: What does it do? Why did you write it? What is the focus?
16 | # * Try to keep it short, snappy and to the point.
17 | # * Write the description between the DESC delimiters below.
18 | # * Finally, don't worry about the indent, CocoaPods strips it!
19 |
20 | s.description = <<-DESC
21 | Custom UIButton class with loading animation for determinate and indeterminate processes like network download / upload.
22 | Set progress animated, or unanimated. Uses CABasicAnimation and layer stroke to display progress.
23 | Text enlarge on tap. Animated completion image.
24 | DESC
25 |
26 | s.homepage = 'https://github.com/thePsguy/ButtonProgressBar-iOS'
27 | s.screenshots = 'https://raw.githubusercontent.com/thePsguy/ButtonProgressBar-iOS/master/output_F2Ryon.gif', 'https://raw.githubusercontent.com/thePsguy/ButtonProgressBar-iOS/master/preview.gif'
28 | s.license = { :type => 'MIT', :file => 'LICENSE' }
29 | s.author = { 'Pushkar Sharma' => 'thePsguy@icloud.com' }
30 | s.source = { :git => 'https://github.com/thePsguy/ButtonProgressBar-iOS.git', :tag => s.version.to_s }
31 | s.social_media_url = 'https://twitter.com/thePsguy'
32 |
33 | s.ios.deployment_target = '8.0'
34 |
35 | s.source_files = 'Source/*.swift'
36 | end
37 |
--------------------------------------------------------------------------------
/Example/ButtonProgressBar-iOS/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 |
--------------------------------------------------------------------------------
/Example/ButtonProgressBar-iOS/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // ButtonProgressBar-iOS
4 | //
5 | // Created by Pushkar Sharma on 04/13/2017.
6 | // Copyright (c) 2017 Pushkar Sharma. 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: [UIApplicationLaunchOptionsKey: 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/ButtonProgressBar-iOS/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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ButtonProgressBar-iOS
2 |
3 | [](http://cocoapods.org/pods/ButtonProgressBar-iOS)
4 | [](http://cocoapods.org/pods/ButtonProgressBar-iOS)
5 | [](http://cocoapods.org/pods/ButtonProgressBar-iOS)
6 | [](https://twitter.com/thePsguy)
7 |
8 |
9 |
10 | ## Example
11 |
12 | * For LIVE PREVIEW on Appetize in your browser itself, [click here](https://appetize.io/app/rcb15cyg78agt90pqa3xujx3cc).
13 |
14 | * To run the example project, clone the repo, and run `pod install` from the Example directory first.
15 |
16 |
17 |
18 | ## Requirements
19 | iOS > 7.0
20 |
21 | ## Installation
22 |
23 | ButtonProgressBar-iOS is available through [CocoaPods](http://cocoapods.org). To install
24 | it, simply add the following line to your Podfile:
25 |
26 | ```ruby
27 | pod 'ButtonProgressBar-iOS'
28 | ```
29 |
30 | ## Usage
31 | ```Swift
32 | import ButtonProgressBar_iOS
33 | ```
34 |
35 |
36 | #### Initialize just like you would any other UIButton:
37 | ```swift
38 | var progressButton = ButtonProgressBar(frame: CGRect)
39 | view.addSubview(progressButton)
40 | ```
41 |
42 |
43 | #### Since this is a UIButton subclass, targets and labels can be set in the same way:
44 | ```swift
45 | progressButton.addTarget(nil, action: #selector(self.tapped), for: .touchUpInside)
46 | progressButton.setTitle("Download", for: .normal)
47 | ```
48 |
49 |
50 | #### The completion image can be set with;
51 | _This image must be set since no default exists._
52 | ```swift
53 | setCompletionImage(image: UIImage)
54 | ```
55 |
56 |
57 | #### Indeterminate loading can be handled with the following functions:
58 | ```swift
59 | startIndeterminate(withTimePeriod time: TimeInterval)
60 | startIndeterminate(withTimePeriod time: TimeInterval, andTimePadding padding: TimeInterval)
61 |
62 | /*
63 | Time Padding is the duration (default 0.5), in seconds, before starting the next cycle.
64 | Time Period is the total time (animation + padding) that 1 cycle of the loading takes.
65 | */
66 |
67 | stopIndeterminate() //Stops the indeterminate loading.
68 | ```
69 |
70 |
71 | #### For determinate usage or otherwise, progress can be set with:
72 | ```swift
73 | setProgress(progress: CGFloat, _ animated: Bool)
74 | /*
75 | Progress ranges from 0.0 to 1.0
76 |
77 | If animated is true, linearly animates to progress.
78 | */
79 |
80 | resetProgress() //Set progress to 0.0 unanimated.
81 | ```
82 |
83 |
84 | #### Set the progress and background colors:
85 | ```swift
86 | setBackgroundColor(color: UIColor)
87 | setProgressColor(color: UIColor)
88 | ```
89 |
90 |
91 | #### To explicitly show/hide the title / image:
92 | ```swift
93 | hideTitle(_ hidden: Bool)
94 | hideImage(_ hidden: Bool)
95 | ```
96 |
97 |
98 | #### Stop indeterminate loading if active, set progress to 1.0 animated, and display completion image if set.
99 | Needs to be called explicitly when loading determinate as well.
100 | ```swift
101 | triggerCompletion()
102 | ```
103 |
104 |
105 | ## Author
106 |
107 | Pushkar Sharma, thePsguy@icloud.com
108 |
109 |
110 | Inspiration from [Dribbble](https://dribbble.com/shots/2551579-Download-Button)
111 |
112 | [Android version](https://github.com/ishaan1995/ButtonProgressBar) available!
113 |
114 |
115 | ## License
116 |
117 | ButtonProgressBar-iOS is available under the MIT license. See the LICENSE file for more info.
118 |
--------------------------------------------------------------------------------
/Example/ButtonProgressBar-iOS.xcodeproj/xcshareddata/xcschemes/ButtonProgressBar-iOS-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/ButtonProgressBar-iOS/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // ButtonProgressBar-iOS
4 | //
5 | // Created by Pushkar Sharma on 08/04/2017.
6 | // Copyright © 2017 thePsguy. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import ButtonProgressBar_iOS
11 |
12 | class ViewController: UIViewController {
13 |
14 | var progressButton: ButtonProgressBar!
15 | var completionButton: UIButton!
16 | var typeSelector: UITextField!
17 |
18 | var picker: UIPickerView!
19 |
20 | var timePeriod: UITextField!
21 | var timePadding: UITextField!
22 |
23 | override func viewDidLoad() {
24 | super.viewDidLoad()
25 | // Do any additional setup after loading the view, typically from a nib.
26 | progressButton = ButtonProgressBar(frame: CGRect(x: 0, y: 0, width: self.view.frame.width*0.45, height: 44))
27 | progressButton.center = self.view.center
28 |
29 | progressButton.addTarget(nil, action: #selector(self.tapped), for: .touchUpInside)
30 | progressButton.setTitle("Download", for: .normal)
31 | progressButton.setCompletionImage(image: UIImage(named: "checkmark")!)
32 |
33 | completionButton = UIButton(frame: CGRect(x: 0, y: 180, width: self.view.frame.width, height: 44))
34 |
35 | completionButton.addTarget(nil, action: #selector(self.progressComplete), for: .touchUpInside)
36 | completionButton.setTitle("Trigger Completion", for: .normal)
37 | completionButton.setTitleColor(.blue, for: .normal)
38 |
39 | picker = UIPickerView()
40 | picker.delegate = self
41 | picker.dataSource = self
42 | picker.selectRow(0, inComponent: 0, animated: true)
43 |
44 | typeSelector = UITextField(frame: CGRect(x: 24, y: 54, width: self.view.frame.width - 48, height: 27))
45 | typeSelector.textAlignment = .center
46 | typeSelector.inputView = picker
47 | typeSelector.text = "Indeterminate"
48 | typeSelector.borderStyle = .roundedRect
49 |
50 | timePeriod = UITextField(frame: CGRect(x: self.view.frame.width / 2 - 36, y: 120, width: 72, height: 18))
51 | timePeriod.textAlignment = .center
52 | timePeriod.keyboardType = .numberPad
53 | timePeriod.borderStyle = .roundedRect
54 | timePeriod.attributedPlaceholder = NSAttributedString(string: "Time Period", attributes: [NSAttributedStringKey.font: UIFont.systemFont(ofSize: 9)])
55 |
56 | timePadding = UITextField(frame: CGRect(x: self.view.frame.width / 2 - 36, y: 145, width: 72, height: 18))
57 | timePadding.textAlignment = .center
58 | timePadding.keyboardType = .numberPad
59 | timePadding.borderStyle = .roundedRect
60 | timePadding.attributedPlaceholder = NSAttributedString(string: "Padding Time", attributes: [NSAttributedStringKey.font: UIFont.systemFont(ofSize: 8)])
61 |
62 | self.view.addSubview(completionButton)
63 | self.view.addSubview(timePadding)
64 | self.view.addSubview(timePeriod)
65 | self.view.addSubview(typeSelector)
66 | self.view.addSubview(progressButton)
67 | }
68 |
69 | @objc func progressComplete(sender: AnyObject?) {
70 | progressButton.triggerCompletion()
71 | }
72 |
73 | @objc func tapped(){
74 | let time = Double(timePeriod.text != "" ? timePeriod.text! : "1")!
75 | let padding = Double(timePadding.text != "" ? timePadding.text! : "0.5")!
76 | picker.selectedRow(inComponent: 0) == 0 ? self.progressButton.startIndeterminate(withTimePeriod: time, andTimePadding: padding) : self.loadDeterminate()
77 | }
78 |
79 | func loadDeterminate() {
80 | self.progressButton.stopIndeterminate()
81 | self.progressButton.resetProgress()
82 | let timer = Timer.scheduledTimer(timeInterval: 0.03,
83 | target: self,
84 | selector: #selector(self.animateDeterminate),
85 | userInfo: time,
86 | repeats: true)
87 | RunLoop.current.add(timer, forMode: .defaultRunLoopMode)
88 | }
89 |
90 | @objc func animateDeterminate(sender: Timer) {
91 | if self.progressButton.progress >= 1.0 {
92 | sender.invalidate()
93 | }
94 | else {
95 | self.progressButton.setProgress(progress: self.progressButton.progress + CGFloat(0.02), true)
96 | }
97 | }
98 |
99 | override func didReceiveMemoryWarning() {
100 | super.didReceiveMemoryWarning()
101 | // Dispose of any resources that can be recreated.
102 | }
103 |
104 |
105 | }
106 |
107 | extension ViewController: UIPickerViewDelegate, UIPickerViewDataSource {
108 |
109 | func numberOfComponents(in pickerView: UIPickerView) -> Int {
110 | return 1
111 | }
112 |
113 | func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
114 | return 2
115 | }
116 |
117 | func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? {
118 | return row == 0 ? "Indeterminate" : "Determinate"
119 | }
120 |
121 | func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
122 | typeSelector.text = row == 0 ? "Indeterminate" : "Determinate"
123 | self.progressButton.stopIndeterminate()
124 | timePeriod.isHidden = row != 0
125 | timePadding.isHidden = row != 0
126 | typeSelector.resignFirstResponder()
127 | }
128 |
129 | }
130 |
--------------------------------------------------------------------------------
/Source/ButtonProgressBar.swift:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2017 Pushkar Sharma
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy
5 | of this software and associated documentation files (the "Software"), to deal
6 | in the Software without restriction, including without limitation the rights
7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | copies of the Software, and to permit persons to whom the Software is
9 | furnished to do so, subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in
12 | all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 | THE SOFTWARE.
21 | */
22 |
23 | import UIKit
24 |
25 | public class ButtonProgressBar: UIButton {
26 |
27 | private var cornerRadius: CGFloat = 5
28 | public private(set) var progress: CGFloat = 0.0
29 |
30 | var indeterminate: Bool = false
31 |
32 | private let progressLayer = CAShapeLayer()
33 |
34 | private var progressColor = UIColor(red: 0/255, green: 140/255, blue: 245/255, alpha: 1.0)
35 |
36 | private var timer: Timer?
37 |
38 | /**
39 | Initialize programmaticaly just like you would any other UIButton.
40 | */
41 | override public init(frame: CGRect) {
42 | super.init(frame: frame)
43 |
44 | layer.cornerRadius = cornerRadius
45 | layer.masksToBounds = true
46 | backgroundColor = UIColor(red: 50/255, green: 100/255, blue: 200/255, alpha: 1.0)
47 |
48 | titleLabel!.textAlignment = .center
49 | titleLabel!.textColor = .white
50 | titleLabel!.font = UIFont.boldSystemFont(ofSize: 0)
51 |
52 | imageView?.contentMode = .center
53 | imageView?.tintColor = .white
54 | self.hideImage(true)
55 |
56 | let rectanglePath = UIBezierPath(rect: CGRect(x: 0, y: 0, width: frame.width, height: frame.height))
57 |
58 | progressLayer.path = rectanglePath.cgPath
59 | progressLayer.fillColor = UIColor.clear.cgColor
60 | progressLayer.strokeColor = progressColor.cgColor
61 |
62 | progressLayer.strokeEnd = 0.0
63 | progressLayer.lineWidth = frame.height*2
64 |
65 | layer.addSublayer(progressLayer)
66 | self.bringSubview(toFront: titleLabel!)
67 | self.bringSubview(toFront: imageView!)
68 | }
69 |
70 | required public init?(coder aDecoder: NSCoder) {
71 | super.init(coder: aDecoder)
72 |
73 | layer.cornerRadius = cornerRadius
74 | layer.masksToBounds = true
75 | backgroundColor = UIColor(red: 50/255, green: 100/255, blue: 200/255, alpha: 1.0)
76 |
77 | titleLabel!.textAlignment = .center
78 | titleLabel!.textColor = .white
79 | titleLabel!.font = UIFont.boldSystemFont(ofSize: 0)
80 |
81 | imageView?.contentMode = .center
82 | imageView?.tintColor = .white
83 | self.hideImage(true)
84 |
85 | let rectanglePath = UIBezierPath(rect: CGRect(x: 0, y: 0, width: frame.width, height: frame.height))
86 |
87 | progressLayer.path = rectanglePath.cgPath
88 | progressLayer.fillColor = UIColor.clear.cgColor
89 | progressLayer.strokeColor = progressColor.cgColor
90 |
91 | progressLayer.strokeEnd = 0.0
92 | progressLayer.lineWidth = frame.height*2
93 |
94 | layer.addSublayer(progressLayer)
95 | self.bringSubview(toFront: titleLabel!)
96 | self.bringSubview(toFront: imageView!)
97 | }
98 |
99 | /**
100 | Used to handle indeterminate loading.
101 | - Parameter timePeriod (optional): The total time (animation + padding, default 2.0) that 1 cycle of the loading takes.
102 | - Parameter timePadding (optional): The duration (default 0.5), in seconds, before starting the next cycle.
103 | */
104 | public func startIndeterminate(withTimePeriod time: TimeInterval = 2.0, andTimePadding padding: TimeInterval = 0.5) {
105 | timer?.invalidate()
106 | self.resetProgress()
107 | timer = Timer.scheduledTimer(timeInterval: time,
108 | target: self,
109 | selector: #selector(self.animateIndeterminate),
110 | userInfo: padding,
111 | repeats: true)
112 | timer?.fire()
113 | RunLoop.current.add(timer!, forMode: .defaultRunLoopMode)
114 | }
115 |
116 | @objc func animateIndeterminate(sender: Timer) {
117 | let time = sender.timeInterval - (sender.userInfo as! Double)
118 | let stroke = CABasicAnimation(keyPath: "strokeEnd")
119 | stroke.fromValue = 0.0
120 | stroke.toValue = 0.5
121 | stroke.duration = time
122 | stroke.fillMode = kCAFillModeForwards
123 | stroke.isRemovedOnCompletion = false
124 | stroke.timingFunction = CAMediaTimingFunction(controlPoints: 1, 0, 1, 1)
125 | self.progressLayer.add(stroke, forKey: nil)
126 | }
127 |
128 | /**
129 | Stop indeterminate loading.
130 | */
131 | public func stopIndeterminate() {
132 | timer?.invalidate()
133 | }
134 |
135 | /**
136 | Reset progress to 0.0 unanimated.
137 | See `setProgress(progress:,animated:)` to set progress animated.
138 | */
139 | public func resetProgress() {
140 | self.hideImage(true)
141 | self.hideTitle(false)
142 | self.setProgress(progress: 0.0, false)
143 | }
144 |
145 | override public func layoutSubviews() {
146 | super.layoutSubviews()
147 | titleLabel!.frame = self.bounds
148 | titleLabel!.font = titleLabel!.font.withSize(titleLabel!.frame.height * 0.45)
149 | imageView?.frame = self.bounds
150 | }
151 |
152 | /**
153 | Set the absolute progress value.
154 | - Parameter progreaa: Ranges from 0.0 to 1.0
155 | - Parameter animated: If true, linearly animates to target progress value.
156 | */
157 | public func setProgress(progress: CGFloat, _ animated: Bool) {
158 | if !animated {
159 | progressLayer.strokeEnd = progress / 2
160 | }
161 | else {
162 | let stroke = CABasicAnimation(keyPath: "strokeEnd")
163 | stroke.fromValue = self.progress
164 | stroke.toValue = progress
165 | stroke.fillMode = kCAFillModeForwards
166 | stroke.isRemovedOnCompletion = false
167 | stroke.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionLinear)
168 | self.progressLayer.add(stroke, forKey: nil)
169 | }
170 | self.progress = progress
171 | }
172 |
173 | /**
174 | Set title label text.
175 | */
176 | public override func setTitle(_ title: String?, for state: UIControlState) {
177 | super.setTitle(title, for: state)
178 | }
179 |
180 | /**
181 | Show / Hide title text.
182 | - Parameter _ hidden: Title hiddden if true, shown if false.
183 | */
184 | public func hideTitle(_ hidden: Bool) {
185 | titleLabel!.layer.opacity = hidden ? 0.0 : 1.0
186 | }
187 |
188 | /**
189 | Show / Hide image.
190 | - Parameter hidden: Title hiddden if true, shown if false.
191 | */
192 | public func hideImage(_ hidden: Bool) {
193 | if hidden {
194 | self.imageView?.layer.removeAllAnimations()
195 | imageView?.layer.transform = CATransform3DMakeScale(0.0, 0.0, 0.0)
196 | } else {
197 | let completionAnim = CABasicAnimation()
198 | completionAnim.keyPath = "transform"
199 | completionAnim.fromValue = CATransform3DMakeScale(0.0, 0.0, 0.0)
200 | completionAnim.toValue = CATransform3DIdentity
201 | completionAnim.fillMode = kCAFillModeForwards
202 | completionAnim.isRemovedOnCompletion = false
203 | completionAnim.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionLinear)
204 | self.imageView?.layer.add(completionAnim, forKey: nil)
205 | }
206 | }
207 |
208 | /**
209 | Stop indeterminate loading if active, set progress to 1.0 animated, and display completion checkmark.
210 | Needs to be called explicitly when loading determinate as well.
211 | */
212 | public func triggerCompletion() {
213 | self.stopIndeterminate()
214 | self.setProgress(progress: 1.0, true)
215 | self.hideTitle(true)
216 | self.hideImage(false)
217 | }
218 |
219 |
220 | /**
221 | Sets the image shown on loading completion.
222 | - Parameter image: UIImage to be shown on completion.
223 |
224 | NOTE: This image must be set. No default exists.
225 | */
226 |
227 | public func setCompletionImage(image: UIImage) {
228 | self.setImage(image.withRenderingMode(.alwaysTemplate), for: .normal)
229 | }
230 |
231 | /**
232 | Set progress layer color.
233 | */
234 | public func setProgressColor(color: UIColor) {
235 | self.progressColor = color
236 | self.progressLayer.strokeColor = color.cgColor
237 | }
238 |
239 | /**
240 | Set button background color.
241 | */
242 | public func setBackgroundColor(color: UIColor) {
243 | self.backgroundColor = color
244 | }
245 |
246 | override public func touchesBegan(_ touches: Set, with event: UIEvent?) {
247 | super.touchesBegan(touches, with: event)
248 | UIView.animate(withDuration: 0.05) {
249 | self.titleLabel!.transform = CGAffineTransform(scaleX: 1.05, y: 1.05)
250 | self.alpha = 0.85
251 | }
252 | }
253 |
254 | override public func touchesEnded(_ touches: Set, with event: UIEvent?) {
255 | super.touchesEnded(touches, with: event)
256 | UIView.animate(withDuration: 0.1) {
257 | self.titleLabel!.transform = CGAffineTransform(scaleX: 1.0, y: 1.0)
258 | self.alpha = 1.0
259 | }
260 | }
261 |
262 | }
263 |
--------------------------------------------------------------------------------
/Example/ButtonProgressBar-iOS.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 4D7D54FD1E9EB1F500FA7BA3 /* ButtonProgressBar_iOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D7D54FC1E9EB1F500FA7BA3 /* ButtonProgressBar_iOS.framework */; };
11 | 4D7D55001E9FBE5100FA7BA3 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4D7D54FE1E9FBE5100FA7BA3 /* Main.storyboard */; };
12 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; };
13 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; };
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 | DD6EABDC5BD83ECE916983F6 /* Pods_ButtonProgressBar_iOS_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 89FCD7F88F888CDC1653FECD /* Pods_ButtonProgressBar_iOS_Tests.framework */; };
18 | F7032A3BA75C19B93C804BE6 /* Pods_ButtonProgressBar_iOS_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 117EDF792490C75FC8A1202D /* Pods_ButtonProgressBar_iOS_Example.framework */; };
19 | /* End PBXBuildFile section */
20 |
21 | /* Begin PBXContainerItemProxy section */
22 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = {
23 | isa = PBXContainerItemProxy;
24 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */;
25 | proxyType = 1;
26 | remoteGlobalIDString = 607FACCF1AFB9204008FA782;
27 | remoteInfo = "ButtonProgressBar-iOS";
28 | };
29 | /* End PBXContainerItemProxy section */
30 |
31 | /* Begin PBXFileReference section */
32 | 037631BC6A9226892B5CFE90 /* Pods-ButtonProgressBar-iOS_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ButtonProgressBar-iOS_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-ButtonProgressBar-iOS_Example/Pods-ButtonProgressBar-iOS_Example.release.xcconfig"; sourceTree = ""; };
33 | 117EDF792490C75FC8A1202D /* Pods_ButtonProgressBar_iOS_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ButtonProgressBar_iOS_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
34 | 279D5C009B4C7F452E6FF6C6 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; };
35 | 28A95FA32BA98748D4E90875 /* ButtonProgressBar-iOS.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = "ButtonProgressBar-iOS.podspec"; path = "../ButtonProgressBar-iOS.podspec"; sourceTree = ""; };
36 | 4D7D54FC1E9EB1F500FA7BA3 /* ButtonProgressBar_iOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ButtonProgressBar_iOS.framework; path = "../../../../Library/Developer/Xcode/DerivedData/ButtonProgressBar-iOS-grnvrmpqkdqbkwhajfvaezqbhteu/Build/Products/Debug-iphonesimulator/ButtonProgressBar-iOS/ButtonProgressBar_iOS.framework"; sourceTree = ""; };
37 | 4D7D54FF1E9FBE5100FA7BA3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
38 | 607FACD01AFB9204008FA782 /* ButtonProgressBar-iOS_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ButtonProgressBar-iOS_Example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
39 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
40 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
41 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
42 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
43 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
44 | 607FACE51AFB9204008FA782 /* ButtonProgressBar-iOS_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ButtonProgressBar-iOS_Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
45 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
46 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; };
47 | 89CA383809FFA3A8C232F51C /* Pods-ButtonProgressBar-iOS_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ButtonProgressBar-iOS_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ButtonProgressBar-iOS_Example/Pods-ButtonProgressBar-iOS_Example.debug.xcconfig"; sourceTree = ""; };
48 | 89FCD7F88F888CDC1653FECD /* Pods_ButtonProgressBar_iOS_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ButtonProgressBar_iOS_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
49 | B1CAFE402C8B22A5A9234201 /* Pods-ButtonProgressBar-iOS_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ButtonProgressBar-iOS_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-ButtonProgressBar-iOS_Tests/Pods-ButtonProgressBar-iOS_Tests.release.xcconfig"; sourceTree = ""; };
50 | BE5984450B18F616883124C8 /* Pods-ButtonProgressBar-iOS_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ButtonProgressBar-iOS_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ButtonProgressBar-iOS_Tests/Pods-ButtonProgressBar-iOS_Tests.debug.xcconfig"; sourceTree = ""; };
51 | F004CC6D569C0F06BC3971E8 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; };
52 | /* End PBXFileReference section */
53 |
54 | /* Begin PBXFrameworksBuildPhase section */
55 | 607FACCD1AFB9204008FA782 /* Frameworks */ = {
56 | isa = PBXFrameworksBuildPhase;
57 | buildActionMask = 2147483647;
58 | files = (
59 | 4D7D54FD1E9EB1F500FA7BA3 /* ButtonProgressBar_iOS.framework in Frameworks */,
60 | F7032A3BA75C19B93C804BE6 /* Pods_ButtonProgressBar_iOS_Example.framework in Frameworks */,
61 | );
62 | runOnlyForDeploymentPostprocessing = 0;
63 | };
64 | 607FACE21AFB9204008FA782 /* Frameworks */ = {
65 | isa = PBXFrameworksBuildPhase;
66 | buildActionMask = 2147483647;
67 | files = (
68 | DD6EABDC5BD83ECE916983F6 /* Pods_ButtonProgressBar_iOS_Tests.framework in Frameworks */,
69 | );
70 | runOnlyForDeploymentPostprocessing = 0;
71 | };
72 | /* End PBXFrameworksBuildPhase section */
73 |
74 | /* Begin PBXGroup section */
75 | 607FACC71AFB9204008FA782 = {
76 | isa = PBXGroup;
77 | children = (
78 | 607FACF51AFB993E008FA782 /* Podspec Metadata */,
79 | 607FACD21AFB9204008FA782 /* Example for ButtonProgressBar-iOS */,
80 | 607FACE81AFB9204008FA782 /* Tests */,
81 | 607FACD11AFB9204008FA782 /* Products */,
82 | 7111BF3EC61749EDAF139C2C /* Pods */,
83 | FD8C8CC3012C71B993F9743D /* Frameworks */,
84 | );
85 | sourceTree = "";
86 | };
87 | 607FACD11AFB9204008FA782 /* Products */ = {
88 | isa = PBXGroup;
89 | children = (
90 | 607FACD01AFB9204008FA782 /* ButtonProgressBar-iOS_Example.app */,
91 | 607FACE51AFB9204008FA782 /* ButtonProgressBar-iOS_Tests.xctest */,
92 | );
93 | name = Products;
94 | sourceTree = "";
95 | };
96 | 607FACD21AFB9204008FA782 /* Example for ButtonProgressBar-iOS */ = {
97 | isa = PBXGroup;
98 | children = (
99 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */,
100 | 607FACD71AFB9204008FA782 /* ViewController.swift */,
101 | 607FACDC1AFB9204008FA782 /* Images.xcassets */,
102 | 4D7D54FE1E9FBE5100FA7BA3 /* Main.storyboard */,
103 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */,
104 | 607FACD31AFB9204008FA782 /* Supporting Files */,
105 | );
106 | name = "Example for ButtonProgressBar-iOS";
107 | path = "ButtonProgressBar-iOS";
108 | sourceTree = "";
109 | };
110 | 607FACD31AFB9204008FA782 /* Supporting Files */ = {
111 | isa = PBXGroup;
112 | children = (
113 | 607FACD41AFB9204008FA782 /* Info.plist */,
114 | );
115 | name = "Supporting Files";
116 | sourceTree = "";
117 | };
118 | 607FACE81AFB9204008FA782 /* Tests */ = {
119 | isa = PBXGroup;
120 | children = (
121 | 607FACEB1AFB9204008FA782 /* Tests.swift */,
122 | 607FACE91AFB9204008FA782 /* Supporting Files */,
123 | );
124 | path = Tests;
125 | sourceTree = "";
126 | };
127 | 607FACE91AFB9204008FA782 /* Supporting Files */ = {
128 | isa = PBXGroup;
129 | children = (
130 | 607FACEA1AFB9204008FA782 /* Info.plist */,
131 | );
132 | name = "Supporting Files";
133 | sourceTree = "";
134 | };
135 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = {
136 | isa = PBXGroup;
137 | children = (
138 | 28A95FA32BA98748D4E90875 /* ButtonProgressBar-iOS.podspec */,
139 | F004CC6D569C0F06BC3971E8 /* README.md */,
140 | 279D5C009B4C7F452E6FF6C6 /* LICENSE */,
141 | );
142 | name = "Podspec Metadata";
143 | sourceTree = "";
144 | };
145 | 7111BF3EC61749EDAF139C2C /* Pods */ = {
146 | isa = PBXGroup;
147 | children = (
148 | 89CA383809FFA3A8C232F51C /* Pods-ButtonProgressBar-iOS_Example.debug.xcconfig */,
149 | 037631BC6A9226892B5CFE90 /* Pods-ButtonProgressBar-iOS_Example.release.xcconfig */,
150 | BE5984450B18F616883124C8 /* Pods-ButtonProgressBar-iOS_Tests.debug.xcconfig */,
151 | B1CAFE402C8B22A5A9234201 /* Pods-ButtonProgressBar-iOS_Tests.release.xcconfig */,
152 | );
153 | name = Pods;
154 | sourceTree = "";
155 | };
156 | FD8C8CC3012C71B993F9743D /* Frameworks */ = {
157 | isa = PBXGroup;
158 | children = (
159 | 4D7D54FC1E9EB1F500FA7BA3 /* ButtonProgressBar_iOS.framework */,
160 | 117EDF792490C75FC8A1202D /* Pods_ButtonProgressBar_iOS_Example.framework */,
161 | 89FCD7F88F888CDC1653FECD /* Pods_ButtonProgressBar_iOS_Tests.framework */,
162 | );
163 | name = Frameworks;
164 | sourceTree = "";
165 | };
166 | /* End PBXGroup section */
167 |
168 | /* Begin PBXNativeTarget section */
169 | 607FACCF1AFB9204008FA782 /* ButtonProgressBar-iOS_Example */ = {
170 | isa = PBXNativeTarget;
171 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ButtonProgressBar-iOS_Example" */;
172 | buildPhases = (
173 | 34959A249C4E1F54D9FB512D /* [CP] Check Pods Manifest.lock */,
174 | 607FACCC1AFB9204008FA782 /* Sources */,
175 | 607FACCD1AFB9204008FA782 /* Frameworks */,
176 | 607FACCE1AFB9204008FA782 /* Resources */,
177 | 4F452ECD7570C7BCBDC81498 /* [CP] Embed Pods Frameworks */,
178 | EB4A715E786F7E826511F6F6 /* [CP] Copy Pods Resources */,
179 | );
180 | buildRules = (
181 | );
182 | dependencies = (
183 | );
184 | name = "ButtonProgressBar-iOS_Example";
185 | productName = "ButtonProgressBar-iOS";
186 | productReference = 607FACD01AFB9204008FA782 /* ButtonProgressBar-iOS_Example.app */;
187 | productType = "com.apple.product-type.application";
188 | };
189 | 607FACE41AFB9204008FA782 /* ButtonProgressBar-iOS_Tests */ = {
190 | isa = PBXNativeTarget;
191 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ButtonProgressBar-iOS_Tests" */;
192 | buildPhases = (
193 | DE8BEAE3E2BDEA6C37527FEF /* [CP] Check Pods Manifest.lock */,
194 | 607FACE11AFB9204008FA782 /* Sources */,
195 | 607FACE21AFB9204008FA782 /* Frameworks */,
196 | 607FACE31AFB9204008FA782 /* Resources */,
197 | 6A266AF13A7DDCC33D33F3BB /* [CP] Embed Pods Frameworks */,
198 | 0ABDBC230D0A0378FF27A6EE /* [CP] Copy Pods Resources */,
199 | );
200 | buildRules = (
201 | );
202 | dependencies = (
203 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */,
204 | );
205 | name = "ButtonProgressBar-iOS_Tests";
206 | productName = Tests;
207 | productReference = 607FACE51AFB9204008FA782 /* ButtonProgressBar-iOS_Tests.xctest */;
208 | productType = "com.apple.product-type.bundle.unit-test";
209 | };
210 | /* End PBXNativeTarget section */
211 |
212 | /* Begin PBXProject section */
213 | 607FACC81AFB9204008FA782 /* Project object */ = {
214 | isa = PBXProject;
215 | attributes = {
216 | LastSwiftUpdateCheck = 0720;
217 | LastUpgradeCheck = 0820;
218 | ORGANIZATIONNAME = CocoaPods;
219 | TargetAttributes = {
220 | 607FACCF1AFB9204008FA782 = {
221 | CreatedOnToolsVersion = 6.3.1;
222 | DevelopmentTeam = V6JUB3D3PN;
223 | LastSwiftMigration = 0900;
224 | ProvisioningStyle = Automatic;
225 | };
226 | 607FACE41AFB9204008FA782 = {
227 | CreatedOnToolsVersion = 6.3.1;
228 | DevelopmentTeam = V6JUB3D3PN;
229 | LastSwiftMigration = 0900;
230 | TestTargetID = 607FACCF1AFB9204008FA782;
231 | };
232 | };
233 | };
234 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "ButtonProgressBar-iOS" */;
235 | compatibilityVersion = "Xcode 3.2";
236 | developmentRegion = English;
237 | hasScannedForEncodings = 0;
238 | knownRegions = (
239 | en,
240 | Base,
241 | );
242 | mainGroup = 607FACC71AFB9204008FA782;
243 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */;
244 | projectDirPath = "";
245 | projectRoot = "";
246 | targets = (
247 | 607FACCF1AFB9204008FA782 /* ButtonProgressBar-iOS_Example */,
248 | 607FACE41AFB9204008FA782 /* ButtonProgressBar-iOS_Tests */,
249 | );
250 | };
251 | /* End PBXProject section */
252 |
253 | /* Begin PBXResourcesBuildPhase section */
254 | 607FACCE1AFB9204008FA782 /* Resources */ = {
255 | isa = PBXResourcesBuildPhase;
256 | buildActionMask = 2147483647;
257 | files = (
258 | 4D7D55001E9FBE5100FA7BA3 /* Main.storyboard in Resources */,
259 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */,
260 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */,
261 | );
262 | runOnlyForDeploymentPostprocessing = 0;
263 | };
264 | 607FACE31AFB9204008FA782 /* Resources */ = {
265 | isa = PBXResourcesBuildPhase;
266 | buildActionMask = 2147483647;
267 | files = (
268 | );
269 | runOnlyForDeploymentPostprocessing = 0;
270 | };
271 | /* End PBXResourcesBuildPhase section */
272 |
273 | /* Begin PBXShellScriptBuildPhase section */
274 | 0ABDBC230D0A0378FF27A6EE /* [CP] Copy Pods Resources */ = {
275 | isa = PBXShellScriptBuildPhase;
276 | buildActionMask = 2147483647;
277 | files = (
278 | );
279 | inputPaths = (
280 | );
281 | name = "[CP] Copy Pods Resources";
282 | outputPaths = (
283 | );
284 | runOnlyForDeploymentPostprocessing = 0;
285 | shellPath = /bin/sh;
286 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ButtonProgressBar-iOS_Tests/Pods-ButtonProgressBar-iOS_Tests-resources.sh\"\n";
287 | showEnvVarsInLog = 0;
288 | };
289 | 34959A249C4E1F54D9FB512D /* [CP] Check Pods Manifest.lock */ = {
290 | isa = PBXShellScriptBuildPhase;
291 | buildActionMask = 2147483647;
292 | files = (
293 | );
294 | inputPaths = (
295 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
296 | "${PODS_ROOT}/Manifest.lock",
297 | );
298 | name = "[CP] Check Pods Manifest.lock";
299 | outputPaths = (
300 | "$(DERIVED_FILE_DIR)/Pods-ButtonProgressBar-iOS_Example-checkManifestLockResult.txt",
301 | );
302 | runOnlyForDeploymentPostprocessing = 0;
303 | shellPath = /bin/sh;
304 | 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# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
305 | showEnvVarsInLog = 0;
306 | };
307 | 4F452ECD7570C7BCBDC81498 /* [CP] Embed Pods Frameworks */ = {
308 | isa = PBXShellScriptBuildPhase;
309 | buildActionMask = 2147483647;
310 | files = (
311 | );
312 | inputPaths = (
313 | "${SRCROOT}/Pods/Target Support Files/Pods-ButtonProgressBar-iOS_Example/Pods-ButtonProgressBar-iOS_Example-frameworks.sh",
314 | "${BUILT_PRODUCTS_DIR}/ButtonProgressBar-iOS/ButtonProgressBar_iOS.framework",
315 | );
316 | name = "[CP] Embed Pods Frameworks";
317 | outputPaths = (
318 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ButtonProgressBar_iOS.framework",
319 | );
320 | runOnlyForDeploymentPostprocessing = 0;
321 | shellPath = /bin/sh;
322 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ButtonProgressBar-iOS_Example/Pods-ButtonProgressBar-iOS_Example-frameworks.sh\"\n";
323 | showEnvVarsInLog = 0;
324 | };
325 | 6A266AF13A7DDCC33D33F3BB /* [CP] Embed Pods Frameworks */ = {
326 | isa = PBXShellScriptBuildPhase;
327 | buildActionMask = 2147483647;
328 | files = (
329 | );
330 | inputPaths = (
331 | );
332 | name = "[CP] Embed Pods Frameworks";
333 | outputPaths = (
334 | );
335 | runOnlyForDeploymentPostprocessing = 0;
336 | shellPath = /bin/sh;
337 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ButtonProgressBar-iOS_Tests/Pods-ButtonProgressBar-iOS_Tests-frameworks.sh\"\n";
338 | showEnvVarsInLog = 0;
339 | };
340 | DE8BEAE3E2BDEA6C37527FEF /* [CP] Check Pods Manifest.lock */ = {
341 | isa = PBXShellScriptBuildPhase;
342 | buildActionMask = 2147483647;
343 | files = (
344 | );
345 | inputPaths = (
346 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
347 | "${PODS_ROOT}/Manifest.lock",
348 | );
349 | name = "[CP] Check Pods Manifest.lock";
350 | outputPaths = (
351 | "$(DERIVED_FILE_DIR)/Pods-ButtonProgressBar-iOS_Tests-checkManifestLockResult.txt",
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# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
356 | showEnvVarsInLog = 0;
357 | };
358 | EB4A715E786F7E826511F6F6 /* [CP] Copy Pods Resources */ = {
359 | isa = PBXShellScriptBuildPhase;
360 | buildActionMask = 2147483647;
361 | files = (
362 | );
363 | inputPaths = (
364 | );
365 | name = "[CP] Copy Pods Resources";
366 | outputPaths = (
367 | );
368 | runOnlyForDeploymentPostprocessing = 0;
369 | shellPath = /bin/sh;
370 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ButtonProgressBar-iOS_Example/Pods-ButtonProgressBar-iOS_Example-resources.sh\"\n";
371 | showEnvVarsInLog = 0;
372 | };
373 | /* End PBXShellScriptBuildPhase section */
374 |
375 | /* Begin PBXSourcesBuildPhase section */
376 | 607FACCC1AFB9204008FA782 /* Sources */ = {
377 | isa = PBXSourcesBuildPhase;
378 | buildActionMask = 2147483647;
379 | files = (
380 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */,
381 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */,
382 | );
383 | runOnlyForDeploymentPostprocessing = 0;
384 | };
385 | 607FACE11AFB9204008FA782 /* Sources */ = {
386 | isa = PBXSourcesBuildPhase;
387 | buildActionMask = 2147483647;
388 | files = (
389 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */,
390 | );
391 | runOnlyForDeploymentPostprocessing = 0;
392 | };
393 | /* End PBXSourcesBuildPhase section */
394 |
395 | /* Begin PBXTargetDependency section */
396 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = {
397 | isa = PBXTargetDependency;
398 | target = 607FACCF1AFB9204008FA782 /* ButtonProgressBar-iOS_Example */;
399 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */;
400 | };
401 | /* End PBXTargetDependency section */
402 |
403 | /* Begin PBXVariantGroup section */
404 | 4D7D54FE1E9FBE5100FA7BA3 /* Main.storyboard */ = {
405 | isa = PBXVariantGroup;
406 | children = (
407 | 4D7D54FF1E9FBE5100FA7BA3 /* Base */,
408 | );
409 | name = Main.storyboard;
410 | sourceTree = "";
411 | };
412 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = {
413 | isa = PBXVariantGroup;
414 | children = (
415 | 607FACDF1AFB9204008FA782 /* Base */,
416 | );
417 | name = LaunchScreen.xib;
418 | sourceTree = "";
419 | };
420 | /* End PBXVariantGroup section */
421 |
422 | /* Begin XCBuildConfiguration section */
423 | 607FACED1AFB9204008FA782 /* Debug */ = {
424 | isa = XCBuildConfiguration;
425 | buildSettings = {
426 | ALWAYS_SEARCH_USER_PATHS = NO;
427 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
428 | CLANG_CXX_LIBRARY = "libc++";
429 | CLANG_ENABLE_MODULES = YES;
430 | CLANG_ENABLE_OBJC_ARC = YES;
431 | CLANG_WARN_BOOL_CONVERSION = YES;
432 | CLANG_WARN_CONSTANT_CONVERSION = YES;
433 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
434 | CLANG_WARN_EMPTY_BODY = YES;
435 | CLANG_WARN_ENUM_CONVERSION = YES;
436 | CLANG_WARN_INFINITE_RECURSION = YES;
437 | CLANG_WARN_INT_CONVERSION = YES;
438 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
439 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
440 | CLANG_WARN_UNREACHABLE_CODE = YES;
441 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
442 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
443 | COPY_PHASE_STRIP = NO;
444 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
445 | ENABLE_STRICT_OBJC_MSGSEND = YES;
446 | ENABLE_TESTABILITY = YES;
447 | GCC_C_LANGUAGE_STANDARD = gnu99;
448 | GCC_DYNAMIC_NO_PIC = NO;
449 | GCC_NO_COMMON_BLOCKS = YES;
450 | GCC_OPTIMIZATION_LEVEL = 0;
451 | GCC_PREPROCESSOR_DEFINITIONS = (
452 | "DEBUG=1",
453 | "$(inherited)",
454 | );
455 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
456 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
457 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
458 | GCC_WARN_UNDECLARED_SELECTOR = YES;
459 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
460 | GCC_WARN_UNUSED_FUNCTION = YES;
461 | GCC_WARN_UNUSED_VARIABLE = YES;
462 | IPHONEOS_DEPLOYMENT_TARGET = 8.3;
463 | MTL_ENABLE_DEBUG_INFO = YES;
464 | ONLY_ACTIVE_ARCH = YES;
465 | SDKROOT = iphoneos;
466 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
467 | };
468 | name = Debug;
469 | };
470 | 607FACEE1AFB9204008FA782 /* Release */ = {
471 | isa = XCBuildConfiguration;
472 | buildSettings = {
473 | ALWAYS_SEARCH_USER_PATHS = NO;
474 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
475 | CLANG_CXX_LIBRARY = "libc++";
476 | CLANG_ENABLE_MODULES = YES;
477 | CLANG_ENABLE_OBJC_ARC = YES;
478 | CLANG_WARN_BOOL_CONVERSION = YES;
479 | CLANG_WARN_CONSTANT_CONVERSION = YES;
480 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
481 | CLANG_WARN_EMPTY_BODY = YES;
482 | CLANG_WARN_ENUM_CONVERSION = YES;
483 | CLANG_WARN_INFINITE_RECURSION = YES;
484 | CLANG_WARN_INT_CONVERSION = YES;
485 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
486 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
487 | CLANG_WARN_UNREACHABLE_CODE = YES;
488 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
489 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
490 | COPY_PHASE_STRIP = NO;
491 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
492 | ENABLE_NS_ASSERTIONS = NO;
493 | ENABLE_STRICT_OBJC_MSGSEND = YES;
494 | GCC_C_LANGUAGE_STANDARD = gnu99;
495 | GCC_NO_COMMON_BLOCKS = YES;
496 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
497 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
498 | GCC_WARN_UNDECLARED_SELECTOR = YES;
499 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
500 | GCC_WARN_UNUSED_FUNCTION = YES;
501 | GCC_WARN_UNUSED_VARIABLE = YES;
502 | IPHONEOS_DEPLOYMENT_TARGET = 8.3;
503 | MTL_ENABLE_DEBUG_INFO = NO;
504 | SDKROOT = iphoneos;
505 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
506 | VALIDATE_PRODUCT = YES;
507 | };
508 | name = Release;
509 | };
510 | 607FACF01AFB9204008FA782 /* Debug */ = {
511 | isa = XCBuildConfiguration;
512 | baseConfigurationReference = 89CA383809FFA3A8C232F51C /* Pods-ButtonProgressBar-iOS_Example.debug.xcconfig */;
513 | buildSettings = {
514 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
515 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
516 | DEVELOPMENT_TEAM = V6JUB3D3PN;
517 | INFOPLIST_FILE = "ButtonProgressBar-iOS/Info.plist";
518 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
519 | MODULE_NAME = ExampleApp;
520 | PRODUCT_BUNDLE_IDENTIFIER = "net.thepsguy.demo.ButtonProgressBar-iOS-Example";
521 | PRODUCT_NAME = "$(TARGET_NAME)";
522 | SWIFT_SWIFT3_OBJC_INFERENCE = On;
523 | SWIFT_VERSION = 4.0;
524 | };
525 | name = Debug;
526 | };
527 | 607FACF11AFB9204008FA782 /* Release */ = {
528 | isa = XCBuildConfiguration;
529 | baseConfigurationReference = 037631BC6A9226892B5CFE90 /* Pods-ButtonProgressBar-iOS_Example.release.xcconfig */;
530 | buildSettings = {
531 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
532 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
533 | DEVELOPMENT_TEAM = V6JUB3D3PN;
534 | INFOPLIST_FILE = "ButtonProgressBar-iOS/Info.plist";
535 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
536 | MODULE_NAME = ExampleApp;
537 | PRODUCT_BUNDLE_IDENTIFIER = "net.thepsguy.demo.ButtonProgressBar-iOS-Example";
538 | PRODUCT_NAME = "$(TARGET_NAME)";
539 | SWIFT_SWIFT3_OBJC_INFERENCE = On;
540 | SWIFT_VERSION = 4.0;
541 | };
542 | name = Release;
543 | };
544 | 607FACF31AFB9204008FA782 /* Debug */ = {
545 | isa = XCBuildConfiguration;
546 | baseConfigurationReference = BE5984450B18F616883124C8 /* Pods-ButtonProgressBar-iOS_Tests.debug.xcconfig */;
547 | buildSettings = {
548 | DEVELOPMENT_TEAM = V6JUB3D3PN;
549 | FRAMEWORK_SEARCH_PATHS = (
550 | "$(SDKROOT)/Developer/Library/Frameworks",
551 | "$(inherited)",
552 | );
553 | GCC_PREPROCESSOR_DEFINITIONS = (
554 | "DEBUG=1",
555 | "$(inherited)",
556 | );
557 | INFOPLIST_FILE = Tests/Info.plist;
558 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
559 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
560 | PRODUCT_NAME = "$(TARGET_NAME)";
561 | SWIFT_SWIFT3_OBJC_INFERENCE = On;
562 | SWIFT_VERSION = 4.0;
563 | };
564 | name = Debug;
565 | };
566 | 607FACF41AFB9204008FA782 /* Release */ = {
567 | isa = XCBuildConfiguration;
568 | baseConfigurationReference = B1CAFE402C8B22A5A9234201 /* Pods-ButtonProgressBar-iOS_Tests.release.xcconfig */;
569 | buildSettings = {
570 | DEVELOPMENT_TEAM = V6JUB3D3PN;
571 | FRAMEWORK_SEARCH_PATHS = (
572 | "$(SDKROOT)/Developer/Library/Frameworks",
573 | "$(inherited)",
574 | );
575 | INFOPLIST_FILE = Tests/Info.plist;
576 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
577 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
578 | PRODUCT_NAME = "$(TARGET_NAME)";
579 | SWIFT_SWIFT3_OBJC_INFERENCE = On;
580 | SWIFT_VERSION = 4.0;
581 | };
582 | name = Release;
583 | };
584 | /* End XCBuildConfiguration section */
585 |
586 | /* Begin XCConfigurationList section */
587 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "ButtonProgressBar-iOS" */ = {
588 | isa = XCConfigurationList;
589 | buildConfigurations = (
590 | 607FACED1AFB9204008FA782 /* Debug */,
591 | 607FACEE1AFB9204008FA782 /* Release */,
592 | );
593 | defaultConfigurationIsVisible = 0;
594 | defaultConfigurationName = Release;
595 | };
596 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ButtonProgressBar-iOS_Example" */ = {
597 | isa = XCConfigurationList;
598 | buildConfigurations = (
599 | 607FACF01AFB9204008FA782 /* Debug */,
600 | 607FACF11AFB9204008FA782 /* Release */,
601 | );
602 | defaultConfigurationIsVisible = 0;
603 | defaultConfigurationName = Release;
604 | };
605 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ButtonProgressBar-iOS_Tests" */ = {
606 | isa = XCConfigurationList;
607 | buildConfigurations = (
608 | 607FACF31AFB9204008FA782 /* Debug */,
609 | 607FACF41AFB9204008FA782 /* Release */,
610 | );
611 | defaultConfigurationIsVisible = 0;
612 | defaultConfigurationName = Release;
613 | };
614 | /* End XCConfigurationList section */
615 | };
616 | rootObject = 607FACC81AFB9204008FA782 /* Project object */;
617 | }
618 |
--------------------------------------------------------------------------------