├── ChartProgressBar-ios
├── Assets
│ ├── .gitkeep
│ └── pin.svg
├── Classes
│ ├── .gitkeep
│ ├── ChartProgressBarDelegate.swift
│ ├── BarData.swift
│ ├── Bar.swift
│ └── ChartProgressBar.swift
├── .DS_Store
├── Assets.xcassets
│ ├── .DS_Store
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Info.plist
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
├── AppDelegate.swift
└── MainViewController.swift
├── .DS_Store
├── ChartProgressBar-ios.xcodeproj
├── xcuserdata
│ ├── hdbouk.xcuserdatad
│ │ ├── xcdebugger
│ │ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ │ ├── xcschememanagement.plist
│ │ │ └── ChartProgressBar-ios.xcscheme
│ └── hadiidbouk.xcuserdatad
│ │ ├── xcschemes
│ │ └── xcschememanagement.plist
│ │ └── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcuserdata
│ │ ├── hdbouk.xcuserdatad
│ │ ├── UserInterfaceState.xcuserstate
│ │ └── WorkspaceSettings.xcsettings
│ │ └── hadiidbouk.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
└── project.pbxproj
├── Pods
├── Target Support Files
│ ├── ChartProgressBar
│ │ ├── ChartProgressBar.modulemap
│ │ ├── ChartProgressBar-dummy.m
│ │ ├── ChartProgressBar-prefix.pch
│ │ ├── ChartProgressBar-umbrella.h
│ │ ├── ChartProgressBar.xcconfig
│ │ └── Info.plist
│ ├── Pods-ChartProgressBar-ios
│ │ ├── Pods-ChartProgressBar-ios.modulemap
│ │ ├── Pods-ChartProgressBar-ios-dummy.m
│ │ ├── Pods-ChartProgressBar-ios-umbrella.h
│ │ ├── Pods-ChartProgressBar-ios.debug.xcconfig
│ │ ├── Pods-ChartProgressBar-ios.release.xcconfig
│ │ ├── Info.plist
│ │ ├── Pods-ChartProgressBar-ios-acknowledgements.markdown
│ │ ├── Pods-ChartProgressBar-ios-acknowledgements.plist
│ │ ├── Pods-ChartProgressBar-ios-resources.sh
│ │ └── Pods-ChartProgressBar-ios-frameworks.sh
│ ├── Pods-ChartProgressBar-iosTests
│ │ ├── Pods-ChartProgressBar-iosTests-acknowledgements.markdown
│ │ ├── Pods-ChartProgressBar-iosTests.modulemap
│ │ ├── Pods-ChartProgressBar-iosTests-dummy.m
│ │ ├── Pods-ChartProgressBar-iosTests-umbrella.h
│ │ ├── Pods-ChartProgressBar-iosTests.debug.xcconfig
│ │ ├── Pods-ChartProgressBar-iosTests.release.xcconfig
│ │ ├── Info.plist
│ │ ├── Pods-ChartProgressBar-iosTests-acknowledgements.plist
│ │ ├── Pods-ChartProgressBar-iosTests-resources.sh
│ │ └── Pods-ChartProgressBar-iosTests-frameworks.sh
│ └── Pods-ChartProgressBar-iosUITests
│ │ ├── Pods-ChartProgressBar-iosUITests-acknowledgements.markdown
│ │ ├── Pods-ChartProgressBar-iosUITests.modulemap
│ │ ├── Pods-ChartProgressBar-iosUITests-dummy.m
│ │ ├── Pods-ChartProgressBar-iosUITests-umbrella.h
│ │ ├── Pods-ChartProgressBar-iosUITests.debug.xcconfig
│ │ ├── Pods-ChartProgressBar-iosUITests.release.xcconfig
│ │ ├── Info.plist
│ │ ├── Pods-ChartProgressBar-iosUITests-acknowledgements.plist
│ │ ├── Pods-ChartProgressBar-iosUITests-resources.sh
│ │ └── Pods-ChartProgressBar-iosUITests-frameworks.sh
├── Manifest.lock
├── ChartProgressBar
│ ├── ChartProgressBar-ios
│ │ └── Classes
│ │ │ ├── ChartProgressBarDelegate.swift
│ │ │ ├── BarData.swift
│ │ │ ├── Bar.swift
│ │ │ └── ChartProgressBar.swift
│ ├── LICENSE
│ └── README.md
└── Pods.xcodeproj
│ └── xcuserdata
│ ├── .xcuserdatad
│ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ ├── ChartProgressBar.xcscheme
│ │ ├── Pods-ChartProgressBar-ios.xcscheme
│ │ ├── Pods-ChartProgressBar-iosTests.xcscheme
│ │ └── Pods-ChartProgressBar-iosUITests.xcscheme
│ └── hadiidbouk.xcuserdatad
│ └── xcschemes
│ └── xcschememanagement.plist
├── ChartProgressBar-ios.xcworkspace
├── xcuserdata
│ └── hadiidbouk.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
└── contents.xcworkspacedata
├── Podfile.lock
├── Podfile
├── LICENSE
├── CODE_OF_CONDUCT.md
└── README.md
/ChartProgressBar-ios/Assets/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios/Classes/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hadiidbouk/ChartProgressBar-iOS/HEAD/.DS_Store
--------------------------------------------------------------------------------
/ChartProgressBar-ios/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hadiidbouk/ChartProgressBar-iOS/HEAD/ChartProgressBar-ios/.DS_Store
--------------------------------------------------------------------------------
/ChartProgressBar-ios/Assets.xcassets/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hadiidbouk/ChartProgressBar-iOS/HEAD/ChartProgressBar-ios/Assets.xcassets/.DS_Store
--------------------------------------------------------------------------------
/ChartProgressBar-ios.xcodeproj/xcuserdata/hdbouk.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/ChartProgressBar/ChartProgressBar.modulemap:
--------------------------------------------------------------------------------
1 | framework module ChartProgressBar {
2 | umbrella header "ChartProgressBar-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/ChartProgressBar/ChartProgressBar-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_ChartProgressBar : NSObject
3 | @end
4 | @implementation PodsDummy_ChartProgressBar
5 | @end
6 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-ios/Pods-ChartProgressBar-ios.modulemap:
--------------------------------------------------------------------------------
1 | framework module Pods_ChartProgressBar_ios {
2 | umbrella header "Pods-ChartProgressBar-ios-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosTests/Pods-ChartProgressBar-iosTests-acknowledgements.markdown:
--------------------------------------------------------------------------------
1 | # Acknowledgements
2 | This application makes use of the following third party libraries:
3 | Generated by CocoaPods - https://cocoapods.org
4 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios.xcworkspace/xcuserdata/hadiidbouk.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hadiidbouk/ChartProgressBar-iOS/HEAD/ChartProgressBar-ios.xcworkspace/xcuserdata/hadiidbouk.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-ios/Pods-ChartProgressBar-ios-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_Pods_ChartProgressBar_ios : NSObject
3 | @end
4 | @implementation PodsDummy_Pods_ChartProgressBar_ios
5 | @end
6 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosUITests/Pods-ChartProgressBar-iosUITests-acknowledgements.markdown:
--------------------------------------------------------------------------------
1 | # Acknowledgements
2 | This application makes use of the following third party libraries:
3 | Generated by CocoaPods - https://cocoapods.org
4 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosTests/Pods-ChartProgressBar-iosTests.modulemap:
--------------------------------------------------------------------------------
1 | framework module Pods_ChartProgressBar_iosTests {
2 | umbrella header "Pods-ChartProgressBar-iosTests-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosTests/Pods-ChartProgressBar-iosTests-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_Pods_ChartProgressBar_iosTests : NSObject
3 | @end
4 | @implementation PodsDummy_Pods_ChartProgressBar_iosTests
5 | @end
6 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosUITests/Pods-ChartProgressBar-iosUITests.modulemap:
--------------------------------------------------------------------------------
1 | framework module Pods_ChartProgressBar_iosUITests {
2 | umbrella header "Pods-ChartProgressBar-iosUITests-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosUITests/Pods-ChartProgressBar-iosUITests-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_Pods_ChartProgressBar_iosUITests : NSObject
3 | @end
4 | @implementation PodsDummy_Pods_ChartProgressBar_iosUITests
5 | @end
6 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios.xcodeproj/project.xcworkspace/xcuserdata/hdbouk.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hadiidbouk/ChartProgressBar-iOS/HEAD/ChartProgressBar-ios.xcodeproj/project.xcworkspace/xcuserdata/hdbouk.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/ChartProgressBar-ios.xcodeproj/project.xcworkspace/xcuserdata/hadiidbouk.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hadiidbouk/ChartProgressBar-iOS/HEAD/ChartProgressBar-ios.xcodeproj/project.xcworkspace/xcuserdata/hadiidbouk.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - ChartProgressBar (1.0.4)
3 |
4 | DEPENDENCIES:
5 | - ChartProgressBar
6 |
7 | SPEC CHECKSUMS:
8 | ChartProgressBar: 1fe24fc286de1a3a8d02dcbdf6bc779c8e85865b
9 |
10 | PODFILE CHECKSUM: 11a74ace8c84f44a573e5ea9bcf5124c03e31747
11 |
12 | COCOAPODS: 1.4.0
13 |
--------------------------------------------------------------------------------
/Pods/Manifest.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - ChartProgressBar (1.0.4)
3 |
4 | DEPENDENCIES:
5 | - ChartProgressBar
6 |
7 | SPEC CHECKSUMS:
8 | ChartProgressBar: 1fe24fc286de1a3a8d02dcbdf6bc779c8e85865b
9 |
10 | PODFILE CHECKSUM: 11a74ace8c84f44a573e5ea9bcf5124c03e31747
11 |
12 | COCOAPODS: 1.4.0
13 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/ChartProgressBar/ChartProgressBar-prefix.pch:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios/Classes/ChartProgressBarDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ChartProgressBarDelegate.swift
3 | // ChartProgressBar-ios
4 | //
5 | // Created by Hadi Dbouk on 1/15/18.
6 | // Copyright © 2018 Hadi Dbouk. All rights reserved.
7 | //
8 |
9 | import Foundation
10 |
11 | public protocol ChartProgressBarDelegate {
12 | func ChartProgressBar(_ chartProgressBar: ChartProgressBar, didSelectRowAt rowIndex: Int)
13 | }
14 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios/Classes/BarData.swift:
--------------------------------------------------------------------------------
1 |
2 | import Foundation
3 |
4 | public struct BarData {
5 |
6 | public let barTitle: String
7 | public let barValue: Float
8 | public let pinText: String
9 |
10 | public init(barTitle title: String,
11 | barValue value: Float,
12 | pinText textPin: String) {
13 |
14 | barTitle = title
15 | barValue = value
16 | pinText = textPin
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Pods/ChartProgressBar/ChartProgressBar-ios/Classes/ChartProgressBarDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ChartProgressBarDelegate.swift
3 | // ChartProgressBar-ios
4 | //
5 | // Created by Hadi Dbouk on 1/15/18.
6 | // Copyright © 2018 Hadi Dbouk. All rights reserved.
7 | //
8 |
9 | import Foundation
10 |
11 | public protocol ChartProgressBarDelegate {
12 | func ChartProgressBar(_ chartProgressBar: ChartProgressBar, didSelectRowAt rowIndex: Int)
13 | }
14 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/ChartProgressBar/ChartProgressBar-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double ChartProgressBarVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char ChartProgressBarVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/Pods/ChartProgressBar/ChartProgressBar-ios/Classes/BarData.swift:
--------------------------------------------------------------------------------
1 |
2 | import Foundation
3 |
4 | public struct BarData {
5 |
6 | public let barTitle: String
7 | public let barValue: Float
8 | public let pinText: String
9 |
10 | public init(barTitle title: String,
11 | barValue value: Float,
12 | pinText textPin: String) {
13 |
14 | barTitle = title
15 | barValue = value
16 | pinText = textPin
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios.xcodeproj/xcuserdata/hadiidbouk.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | ChartProgressBar-ios.xcscheme
8 |
9 | orderHint
10 | 4
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-ios/Pods-ChartProgressBar-ios-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double Pods_ChartProgressBar_iosVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char Pods_ChartProgressBar_iosVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosTests/Pods-ChartProgressBar-iosTests-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double Pods_ChartProgressBar_iosTestsVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char Pods_ChartProgressBar_iosTestsVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosUITests/Pods-ChartProgressBar-iosUITests-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double Pods_ChartProgressBar_iosUITestsVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char Pods_ChartProgressBar_iosUITestsVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/Podfile:
--------------------------------------------------------------------------------
1 | project 'ChartProgressBar-ios.xcodeproj'
2 |
3 | # Uncomment the next line to define a global platform for your project
4 | # platform :ios, '9.0'
5 |
6 | target 'ChartProgressBar-ios' do
7 | # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
8 | use_frameworks!
9 |
10 | # Pods for ChartProgressBar-ios
11 | pod 'ChartProgressBar'
12 |
13 | target 'ChartProgressBar-iosTests' do
14 | inherit! :search_paths
15 | # Pods for testing
16 | end
17 |
18 | target 'ChartProgressBar-iosUITests' do
19 | inherit! :search_paths
20 | # Pods for testing
21 | end
22 |
23 | end
24 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/ChartProgressBar/ChartProgressBar.xcconfig:
--------------------------------------------------------------------------------
1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/ChartProgressBar
2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public"
4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS"
5 | PODS_BUILD_DIR = ${BUILD_DIR}
6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_ROOT = ${SRCROOT}
8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/ChartProgressBar
9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
10 | SKIP_INSTALL = YES
11 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosTests/Pods-ChartProgressBar-iosTests.debug.xcconfig:
--------------------------------------------------------------------------------
1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ChartProgressBar"
2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/ChartProgressBar/ChartProgressBar.framework/Headers"
5 | PODS_BUILD_DIR = ${BUILD_DIR}
6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
8 | PODS_ROOT = ${SRCROOT}/Pods
9 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosTests/Pods-ChartProgressBar-iosTests.release.xcconfig:
--------------------------------------------------------------------------------
1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ChartProgressBar"
2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/ChartProgressBar/ChartProgressBar.framework/Headers"
5 | PODS_BUILD_DIR = ${BUILD_DIR}
6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
8 | PODS_ROOT = ${SRCROOT}/Pods
9 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosUITests/Pods-ChartProgressBar-iosUITests.debug.xcconfig:
--------------------------------------------------------------------------------
1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ChartProgressBar"
2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/ChartProgressBar/ChartProgressBar.framework/Headers"
5 | PODS_BUILD_DIR = ${BUILD_DIR}
6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
8 | PODS_ROOT = ${SRCROOT}/Pods
9 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosUITests/Pods-ChartProgressBar-iosUITests.release.xcconfig:
--------------------------------------------------------------------------------
1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ChartProgressBar"
2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/ChartProgressBar/ChartProgressBar.framework/Headers"
5 | PODS_BUILD_DIR = ${BUILD_DIR}
6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
8 | PODS_ROOT = ${SRCROOT}/Pods
9 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios.xcodeproj/project.xcworkspace/xcuserdata/hdbouk.xcuserdatad/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | BuildLocationStyle
6 | UseAppPreferences
7 | CustomBuildLocationType
8 | RelativeToDerivedData
9 | DerivedDataLocationStyle
10 | Default
11 | IssueFilterStyle
12 | ShowActiveSchemeOnly
13 | LiveSourceIssuesEnabled
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-ios/Pods-ChartProgressBar-ios.debug.xcconfig:
--------------------------------------------------------------------------------
1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ChartProgressBar"
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/ChartProgressBar/ChartProgressBar.framework/Headers"
6 | OTHER_LDFLAGS = $(inherited) -framework "ChartProgressBar"
7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS"
8 | PODS_BUILD_DIR = ${BUILD_DIR}
9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
11 | PODS_ROOT = ${SRCROOT}/Pods
12 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-ios/Pods-ChartProgressBar-ios.release.xcconfig:
--------------------------------------------------------------------------------
1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ChartProgressBar"
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/ChartProgressBar/ChartProgressBar.framework/Headers"
6 | OTHER_LDFLAGS = $(inherited) -framework "ChartProgressBar"
7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS"
8 | PODS_BUILD_DIR = ${BUILD_DIR}
9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
11 | PODS_ROOT = ${SRCROOT}/Pods
12 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios.xcodeproj/xcuserdata/hdbouk.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | ChartProgressBar-ios.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 314B173E1F8E2F3200D98FA3
16 |
17 | primary
18 |
19 |
20 | 314B17521F8E2F3200D98FA3
21 |
22 | primary
23 |
24 |
25 | 314B175D1F8E2F3200D98FA3
26 |
27 | primary
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/Pods/Pods.xcodeproj/xcuserdata/.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | ChartProgressBar.xcscheme
8 |
9 | isShown
10 |
11 |
12 | Pods-ChartProgressBar-ios.xcscheme
13 |
14 | isShown
15 |
16 |
17 | Pods-ChartProgressBar-iosTests.xcscheme
18 |
19 | isShown
20 |
21 |
22 | Pods-ChartProgressBar-iosUITests.xcscheme
23 |
24 | isShown
25 |
26 |
27 |
28 | SuppressBuildableAutocreation
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/Pods/Pods.xcodeproj/xcuserdata/hadiidbouk.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | ChartProgressBar.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 | Pods-ChartProgressBar-ios.xcscheme
13 |
14 | orderHint
15 | 1
16 |
17 | Pods-ChartProgressBar-iosTests.xcscheme
18 |
19 | orderHint
20 | 2
21 |
22 | Pods-ChartProgressBar-iosUITests.xcscheme
23 |
24 | orderHint
25 | 3
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/ChartProgressBar/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | ${PRODUCT_BUNDLE_IDENTIFIER}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0.4
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-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 | FMWK
17 | CFBundleShortVersionString
18 | 1.0.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | ${PRODUCT_BUNDLE_IDENTIFIER}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosUITests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | ${PRODUCT_BUNDLE_IDENTIFIER}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios.xcodeproj/xcuserdata/hadiidbouk.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios/Assets/pin.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
37 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosTests/Pods-ChartProgressBar-iosTests-acknowledgements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreferenceSpecifiers
6 |
7 |
8 | FooterText
9 | This application makes use of the following third party libraries:
10 | Title
11 | Acknowledgements
12 | Type
13 | PSGroupSpecifier
14 |
15 |
16 | FooterText
17 | Generated by CocoaPods - https://cocoapods.org
18 | Title
19 |
20 | Type
21 | PSGroupSpecifier
22 |
23 |
24 | StringsTable
25 | Acknowledgements
26 | Title
27 | Acknowledgements
28 |
29 |
30 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosUITests/Pods-ChartProgressBar-iosUITests-acknowledgements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreferenceSpecifiers
6 |
7 |
8 | FooterText
9 | This application makes use of the following third party libraries:
10 | Title
11 | Acknowledgements
12 | Type
13 | PSGroupSpecifier
14 |
15 |
16 | FooterText
17 | Generated by CocoaPods - https://cocoapods.org
18 | Title
19 |
20 | Type
21 | PSGroupSpecifier
22 |
23 |
24 | StringsTable
25 | Acknowledgements
26 | Title
27 | Acknowledgements
28 |
29 |
30 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Hadi Dbouk
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 |
--------------------------------------------------------------------------------
/Pods/ChartProgressBar/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Hadi Dbouk
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 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-ios/Pods-ChartProgressBar-ios-acknowledgements.markdown:
--------------------------------------------------------------------------------
1 | # Acknowledgements
2 | This application makes use of the following third party libraries:
3 |
4 | ## ChartProgressBar
5 |
6 | MIT License
7 |
8 | Copyright (c) 2018 Hadi Dbouk
9 |
10 | Permission is hereby granted, free of charge, to any person obtaining a copy
11 | of this software and associated documentation files (the "Software"), to deal
12 | in the Software without restriction, including without limitation the rights
13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the Software is
15 | furnished to do so, subject to the following conditions:
16 |
17 | The above copyright notice and this permission notice shall be included in all
18 | copies or substantial portions of the Software.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 | SOFTWARE.
27 |
28 | Generated by CocoaPods - https://cocoapods.org
29 |
--------------------------------------------------------------------------------
/ChartProgressBar-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 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios/Base.lproj/LaunchScreen.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 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios/Assets.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 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/ChartProgressBar-ios/AppDelegate.swift:
--------------------------------------------------------------------------------
1 |
2 | import UIKit
3 |
4 | @UIApplicationMain
5 | class AppDelegate: UIResponder, UIApplicationDelegate {
6 |
7 | var window: UIWindow?
8 |
9 |
10 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
11 | // Override point for customization after application launch.
12 | return true
13 | }
14 |
15 | func applicationWillResignActive(_ application: UIApplication) {
16 | // 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.
17 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
18 | }
19 |
20 | func applicationDidEnterBackground(_ application: UIApplication) {
21 | // 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.
22 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
23 | }
24 |
25 | func applicationWillEnterForeground(_ application: UIApplication) {
26 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
27 | }
28 |
29 | func applicationDidBecomeActive(_ application: UIApplication) {
30 | // 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.
31 | }
32 |
33 | func applicationWillTerminate(_ application: UIApplication) {
34 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
35 | }
36 |
37 |
38 | }
39 |
40 |
--------------------------------------------------------------------------------
/Pods/Pods.xcodeproj/xcuserdata/.xcuserdatad/xcschemes/ChartProgressBar.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
43 |
44 |
45 |
46 |
52 |
53 |
55 |
56 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-ios/Pods-ChartProgressBar-ios-acknowledgements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreferenceSpecifiers
6 |
7 |
8 | FooterText
9 | This application makes use of the following third party libraries:
10 | Title
11 | Acknowledgements
12 | Type
13 | PSGroupSpecifier
14 |
15 |
16 | FooterText
17 | MIT License
18 |
19 | Copyright (c) 2018 Hadi Dbouk
20 |
21 | Permission is hereby granted, free of charge, to any person obtaining a copy
22 | of this software and associated documentation files (the "Software"), to deal
23 | in the Software without restriction, including without limitation the rights
24 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25 | copies of the Software, and to permit persons to whom the Software is
26 | furnished to do so, subject to the following conditions:
27 |
28 | The above copyright notice and this permission notice shall be included in all
29 | copies or substantial portions of the Software.
30 |
31 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37 | SOFTWARE.
38 |
39 | License
40 | MIT
41 | Title
42 | ChartProgressBar
43 | Type
44 | PSGroupSpecifier
45 |
46 |
47 | FooterText
48 | Generated by CocoaPods - https://cocoapods.org
49 | Title
50 |
51 | Type
52 | PSGroupSpecifier
53 |
54 |
55 | StringsTable
56 | Acknowledgements
57 | Title
58 | Acknowledgements
59 |
60 |
61 |
--------------------------------------------------------------------------------
/Pods/Pods.xcodeproj/xcuserdata/.xcuserdatad/xcschemes/Pods-ChartProgressBar-ios.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
43 |
44 |
45 |
46 |
52 |
53 |
55 |
56 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/Pods/Pods.xcodeproj/xcuserdata/.xcuserdatad/xcschemes/Pods-ChartProgressBar-iosTests.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
43 |
44 |
45 |
46 |
52 |
53 |
55 |
56 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/Pods/Pods.xcodeproj/xcuserdata/.xcuserdatad/xcschemes/Pods-ChartProgressBar-iosUITests.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
43 |
44 |
45 |
46 |
52 |
53 |
55 |
56 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6 |
7 | ## Our Standards
8 |
9 | Examples of behavior that contributes to creating a positive environment include:
10 |
11 | * Using welcoming and inclusive language
12 | * Being respectful of differing viewpoints and experiences
13 | * Gracefully accepting constructive criticism
14 | * Focusing on what is best for the community
15 | * Showing empathy towards other community members
16 |
17 | Examples of unacceptable behavior by participants include:
18 |
19 | * The use of sexualized language or imagery and unwelcome sexual attention or advances
20 | * Trolling, insulting/derogatory comments, and personal or political attacks
21 | * Public or private harassment
22 | * Publishing others' private information, such as a physical or electronic address, without explicit permission
23 | * Other conduct which could reasonably be considered inappropriate in a professional setting
24 |
25 | ## Our Responsibilities
26 |
27 | Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28 |
29 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30 |
31 | ## Scope
32 |
33 | This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34 |
35 | ## Enforcement
36 |
37 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at hadiidbouk@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38 |
39 | Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40 |
41 | ## Attribution
42 |
43 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44 |
45 | [homepage]: http://contributor-covenant.org
46 | [version]: http://contributor-covenant.org/version/1/4/
47 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios/Classes/Bar.swift:
--------------------------------------------------------------------------------
1 |
2 | import UIKit
3 |
4 | class Bar: UIView {
5 | // MARK: - Private Variables
6 | fileprivate var backgroundImage: UIView!
7 | fileprivate var progressView: UIImageView!
8 | fileprivate let animationDuration: Double = 0.6
9 | fileprivate var barRadius: Float? = nil
10 | public var isDisabled: Bool = false
11 |
12 | // MARK: - Overriden Methods
13 | override func awakeFromNib() {
14 | super.awakeFromNib()
15 | }
16 |
17 | required init?(coder aDecoder: NSCoder) {
18 | super.init(coder: aDecoder)
19 | self.initBar()
20 | }
21 |
22 | override init(frame: CGRect) {
23 | super.init(frame: frame)
24 | self.initBar()
25 | }
26 |
27 | override var intrinsicContentSize: CGSize {
28 | return CGSize(width: frame.size.width, height: frame.size.height)
29 | }
30 | // MARK: - Public Methods
31 | /**
32 | Initializes the progress bar background and also the progress level view.
33 | The background is equal to the parent view frame.
34 | */
35 | func initBar() {
36 | // make the container with rounded corners and clear background.
37 | let radius = barRadius == nil ? self.frame.size.width / 2 : CGFloat(barRadius!)
38 | self.layer.cornerRadius = radius
39 | self.layer.masksToBounds = true
40 | self.backgroundColor = UIColor.clear
41 |
42 | // background image / this view being the same width and height as the parent doesn't need to round the corners. It will take the parent frame.
43 | let backgroundRect = CGRect(x: 0.0, y: 0.0, width: Double(frame.size.width), height: Double(frame.size.height))
44 | backgroundImage = UIView(frame: backgroundRect)
45 | backgroundImage.clipsToBounds = true
46 | backgroundImage.backgroundColor = UIColor.yellow
47 | addSubview(backgroundImage)
48 |
49 | //level of progress
50 | let progressRect = CGRect(x: 0.0, y: Double(frame.size.height), width: Double(frame.size.width), height: 0.0)
51 | progressView = UIImageView(frame: progressRect)
52 | progressView.layer.cornerRadius = radius
53 | progressView.layer.masksToBounds = true
54 | progressView.backgroundColor = UIColor.blue
55 | addSubview(progressView)
56 | }
57 | /**
58 | Sets the progress level from a value, animated.
59 | - Parameter currentValue : The value that needs to be displayed as a progress bar.
60 | - Parameter threshold : Optional. The max percentage that the progress bar will display.
61 | */
62 | func setProgressValue(_ currentValue: CGFloat, threshold: CGFloat = 100.0) {
63 | let yOffset = ((threshold - currentValue) / threshold) * frame.size.height / 1
64 |
65 | UIView.animate(withDuration: self.animationDuration, delay: 0, options: UIViewAnimationOptions(), animations: {
66 | self.progressView.frame.size.height = self.frame.size.height - yOffset
67 | self.progressView.frame.origin.y = yOffset
68 | }, completion: nil)
69 | }
70 | /**
71 | Sets the background color of the progress view.
72 | This color will be displayed underneath the progress view.
73 | */
74 | func setBackColor(_ color: UIColor) {
75 | backgroundImage.backgroundColor = color
76 | }
77 | /**
78 | Sets the background color of the progress view.
79 | This is the color that will display the value you have inserted.
80 | */
81 | func setProgressColor(_ color: UIColor) {
82 | progressView.backgroundColor = color
83 | }
84 |
85 | /*
86 | Set the radius of the bar
87 | */
88 |
89 | func setBarRadius(radius barRadius: Float?) {
90 | self.barRadius = barRadius
91 | }
92 | }
93 |
94 |
--------------------------------------------------------------------------------
/Pods/ChartProgressBar/ChartProgressBar-ios/Classes/Bar.swift:
--------------------------------------------------------------------------------
1 |
2 | import UIKit
3 |
4 | class Bar: UIView {
5 | // MARK: - Private Variables
6 | fileprivate var backgroundImage: UIView!
7 | fileprivate var progressView: UIImageView!
8 | fileprivate let animationDuration: Double = 0.6
9 | fileprivate var barRadius: Float? = nil
10 | public var isDisabled: Bool = false
11 |
12 | // MARK: - Overriden Methods
13 | override func awakeFromNib() {
14 | super.awakeFromNib()
15 | }
16 |
17 | required init?(coder aDecoder: NSCoder) {
18 | super.init(coder: aDecoder)
19 | self.initBar()
20 | }
21 |
22 | override init(frame: CGRect) {
23 | super.init(frame: frame)
24 | self.initBar()
25 | }
26 |
27 | override var intrinsicContentSize: CGSize {
28 | return CGSize(width: frame.size.width, height: frame.size.height)
29 | }
30 | // MARK: - Public Methods
31 | /**
32 | Initializes the progress bar background and also the progress level view.
33 | The background is equal to the parent view frame.
34 | */
35 | func initBar() {
36 | // make the container with rounded corners and clear background.
37 | let radius = barRadius == nil ? self.frame.size.width / 2 : CGFloat(barRadius!)
38 | self.layer.cornerRadius = radius
39 | self.layer.masksToBounds = true
40 | self.backgroundColor = UIColor.clear
41 |
42 | // background image / this view being the same width and height as the parent doesn't need to round the corners. It will take the parent frame.
43 | let backgroundRect = CGRect(x: 0.0, y: 0.0, width: Double(frame.size.width), height: Double(frame.size.height))
44 | backgroundImage = UIView(frame: backgroundRect)
45 | backgroundImage.clipsToBounds = true
46 | backgroundImage.backgroundColor = UIColor.yellow
47 | addSubview(backgroundImage)
48 |
49 | //level of progress
50 | let progressRect = CGRect(x: 0.0, y: Double(frame.size.height), width: Double(frame.size.width), height: 0.0)
51 | progressView = UIImageView(frame: progressRect)
52 | progressView.layer.cornerRadius = radius
53 | progressView.layer.masksToBounds = true
54 | progressView.backgroundColor = UIColor.blue
55 | addSubview(progressView)
56 | }
57 | /**
58 | Sets the progress level from a value, animated.
59 | - Parameter currentValue : The value that needs to be displayed as a progress bar.
60 | - Parameter threshold : Optional. The max percentage that the progress bar will display.
61 | */
62 | func setProgressValue(_ currentValue: CGFloat, threshold: CGFloat = 100.0) {
63 | let yOffset = ((threshold - currentValue) / threshold) * frame.size.height / 1
64 |
65 | UIView.animate(withDuration: self.animationDuration, delay: 0, options: UIViewAnimationOptions(), animations: {
66 | self.progressView.frame.size.height = self.frame.size.height - yOffset
67 | self.progressView.frame.origin.y = yOffset
68 | }, completion: nil)
69 | }
70 | /**
71 | Sets the background color of the progress view.
72 | This color will be displayed underneath the progress view.
73 | */
74 | func setBackColor(_ color: UIColor) {
75 | backgroundImage.backgroundColor = color
76 | }
77 | /**
78 | Sets the background color of the progress view.
79 | This is the color that will display the value you have inserted.
80 | */
81 | func setProgressColor(_ color: UIColor) {
82 | progressView.backgroundColor = color
83 | }
84 |
85 | /*
86 | Set the radius of the bar
87 | */
88 |
89 | func setBarRadius(radius barRadius: Float?) {
90 | self.barRadius = barRadius
91 | }
92 | }
93 |
94 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios/MainViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // MainViewController.swift
3 | // ChartProgressBar-ios
4 | //
5 | // Created by Hadi Dbouk on 1/24/18.
6 | // Copyright © 2018 Hadi Dbouk. All rights reserved.
7 | //
8 |
9 | import ChartProgressBar
10 |
11 | class MainViewController: UIViewController {
12 |
13 | @IBOutlet var chart: ChartProgressBar!
14 |
15 | override func viewDidLoad() {
16 | super.viewDidLoad()
17 |
18 | var data: [BarData] = []
19 |
20 | data.append(BarData.init(barTitle: "Jan", barValue: 1.4, pinText: "1.4 €"))
21 | data.append(BarData.init(barTitle: "Feb", barValue: 10, pinText: "10 €"))
22 | data.append(BarData.init(barTitle: "Mar", barValue: 3.1, pinText: "3.1 €"))
23 | data.append(BarData.init(barTitle: "Apr", barValue: 4.8, pinText: "4.8 €"))
24 | data.append(BarData.init(barTitle: "May", barValue: 6.6, pinText: "6.6 €"))
25 | data.append(BarData.init(barTitle: "Jun", barValue: 7.4, pinText: "7.4 €"))
26 | data.append(BarData.init(barTitle: "Jul", barValue: 5.5, pinText: "5.5 €"))
27 |
28 | chart.data = data
29 | chart.barsCanBeClick = true
30 | chart.maxValue = 10.0
31 | chart.emptyColor = UIColor.clear
32 | chart.barWidth = 7
33 | chart.progressColor = UIColor.init(hexString: "99ffffff")
34 | chart.progressClickColor = UIColor.init(hexString: "F2912C")
35 | chart.pinBackgroundColor = UIColor.init(hexString: "E2335E")
36 | chart.pinTxtColor = UIColor.init(hexString: "ffffff")
37 | chart.barTitleColor = UIColor.init(hexString: "B6BDD5")
38 | chart.barTitleSelectedColor = UIColor.init(hexString: "FFFFFF")
39 | chart.pinMarginBottom = 15
40 | chart.pinWidth = 70
41 | chart.pinHeight = 29
42 | chart.pinTxtSize = 17
43 | chart.delegate = self
44 | chart.build()
45 | chart.disableBar(at: 3)
46 | let when = DispatchTime.now() + 6 // change 2 to desired number of seconds
47 | DispatchQueue.main.asyncAfter(deadline: when) {
48 | self.chart.enableBar(at: 3)
49 | }
50 | }
51 |
52 | @IBAction func removeValues(_ sender: Any) {
53 | chart.removeValues()
54 | }
55 |
56 | @IBAction func isBarsEmpty(_ sender: Any) {
57 | let alert = UIAlertController(title: "Is bars Empty ?", message: "\(chart.isBarsEmpty())", preferredStyle: UIAlertControllerStyle.alert)
58 |
59 | alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.default, handler: nil))
60 |
61 | self.present(alert, animated: true, completion: nil)
62 | }
63 |
64 | @IBAction func resetValues(_ sender: Any) {
65 | chart.resetValues()
66 | }
67 |
68 | @IBAction func removeClickedBar(_ sender: Any) {
69 | chart.removeClickedBar()
70 | }
71 | }
72 |
73 | extension MainViewController: ChartProgressBarDelegate {
74 | func ChartProgressBar(_ chartProgressBar: ChartProgressBar, didSelectRowAt rowIndex: Int) {
75 | print(rowIndex)
76 | }
77 | }
78 |
79 | extension UIColor {
80 | convenience init(hexString: String) {
81 | let hex = hexString.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
82 | var int = UInt32()
83 | Scanner(string: hex).scanHexInt32(&int)
84 | let a, r, g, b: UInt32
85 | switch hex.characters.count {
86 | case 3: // RGB (12-bit)
87 | (a, r, g, b) = (255, (int >> 8) * 17, (int >> 4 & 0xF) * 17, (int & 0xF) * 17)
88 | case 6: // RGB (24-bit)
89 | (a, r, g, b) = (255, int >> 16, int >> 8 & 0xFF, int & 0xFF)
90 | case 8: // ARGB (32-bit)
91 | (a, r, g, b) = (int >> 24, int >> 16 & 0xFF, int >> 8 & 0xFF, int & 0xFF)
92 | default:
93 | (a, r, g, b) = (255, 0, 0, 0)
94 | }
95 | self.init(red: CGFloat(r) / 255, green: CGFloat(g) / 255, blue: CGFloat(b) / 255, alpha: CGFloat(a) / 255)
96 | }
97 | }
98 |
--------------------------------------------------------------------------------
/Pods/ChartProgressBar/README.md:
--------------------------------------------------------------------------------
1 | # ChartProgressBar-iOS
2 |
3 | [](https://github.com/hadiidbouk/ChartProgressBar-iOS/blob/master/LICENSE)
4 |
5 | Draw a chart with progress bar style - the android version [here](https://github.com/hadiidbouk/ChartProgressBar-Android)
6 |
7 | 
8 |
9 | ## Installation
10 |
11 | iOS version (9.0,*)
12 |
13 | Swift 3.2
14 |
15 | Using cocoapods : ```pod 'ChartProgressBar' ```
16 |
17 | 
18 |
19 | Or
20 |
21 | Clone this repo and copy all the files
22 |
23 | ## Usage
24 |
25 | Add a UIView and set class name 'ChartProgressBar' ,
26 | set the width and the height of this UIView
27 |
28 | 
29 |
30 | 2. Add your Data to the chart :
31 |
32 | ```swift
33 |
34 | import UIKit
35 | import ChartProgressBar
36 |
37 | class ViewController: UIViewController, ChartProgressBarDelegate {
38 |
39 | @IBOutlet weak var chart: ChartProgressBar!
40 |
41 | override func viewDidLoad() {
42 | super.viewDidLoad()
43 | // Do any additional setup after loading the view, typically from a nib.
44 |
45 | var data: [BarData] = []
46 |
47 | data.append(BarData.init(barTitle: "Jan", barValue: 1.4, pinText: "1.4 €"))
48 | data.append(BarData.init(barTitle: "Feb", barValue: 10, pinText: "10 €"))
49 | data.append(BarData.init(barTitle: "Mar", barValue: 3.1, pinText: "3.1 €"))
50 | data.append(BarData.init(barTitle: "Apr", barValue: 4.8, pinText: "4.8 €"))
51 | data.append(BarData.init(barTitle: "May", barValue: 6.6, pinText: "6.6 €"))
52 | data.append(BarData.init(barTitle: "Jun", barValue: 7.4, pinText: "7.4 €"))
53 | data.append(BarData.init(barTitle: "Jul", barValue: 5.5, pinText: "5.5 €"))
54 |
55 | chart.data = data
56 | chart.barsCanBeClick = true
57 | chart.maxValue = 10.0
58 | chart.emptyColor = UIColor.clear
59 | chart.barWidth = 7
60 | chart.progressColor = UIColor.init(hexString: "99ffffff")
61 | chart.progressClickColor = UIColor.init(hexString: "F2912C")
62 | chart.pinBackgroundColor = UIColor.init(hexString: "E2335E")
63 | chart.pinTxtColor = UIColor.init(hexString: "ffffff")
64 | chart.barTitleColor = UIColor.init(hexString: "B6BDD5")
65 | chart.barTitleSelectedColor = UIColor.init(hexString: "FFFFFF")
66 | chart.pinMarginBottom = 15
67 | chart.pinWidth = 70
68 | chart.pinHeight = 29
69 | chart.pinTxtSize = 17
70 | chart.delegate = self
71 | chart.build()
72 |
73 | chart.disableBar(at: 3)
74 |
75 | let when = DispatchTime.now() + 6 // change 2 to desired number of seconds
76 | DispatchQueue.main.asyncAfter(deadline: when) {
77 | self.chart.enableBar(at: 3)
78 | }
79 | }
80 |
81 | //Delegate method to get the selected bar index
82 | func ChartProgressBar(_ chartProgressBar: ChartProgressBar, didSelectRowAt rowIndex: Int) {
83 | print(rowIndex)
84 | }
85 | }
86 | ```
87 |
88 | ## Useful methods
89 |
90 | 1. `chart.removeValues()` : Remove values of all progress bars in the chart.
91 |
92 | 2. `chart.resetValues()` : Set values to the chart ( it may used after `removeBarValues()`) .
93 |
94 | 3. `chart.removeClickedBar()` : Unselect the clicked bar.
95 |
96 | 4. `isBarsEmpty()` : Check if bars values are empty.
97 |
98 | 5. `chart.disableBar(at: Int)` : Disable a bar progmatically.
99 |
100 | 6. `chart.enableBar(at: Int)` : Enable a bar progmatically.
101 |
102 | 7. `clickBar(index: Int)` : Click a bar progmatically.
103 |
104 | ## Credits
105 |
106 | this library use [AlNistor](https://github.com/AlNistor/vertical-progress-bar-swift) sample to draw a single bar.
107 |
108 | Thanks for [Simplexity](http://simplexity.io) that gave me time for doing this library.
109 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ChartProgressBar-iOS
2 |
3 | [](https://github.com/hadiidbouk/ChartProgressBar-iOS/blob/master/LICENSE)
4 |
5 | Draw a chart with progress bar style - the android version [here](https://github.com/hadiidbouk/ChartProgressBar-Android)
6 |
7 | 
8 |
9 | ## Installation
10 |
11 | iOS version (9.0,*)
12 |
13 | Swift 3.2
14 |
15 | Using cocoapods : ```pod 'ChartProgressBar' ```
16 |
17 | 
18 |
19 | Or
20 |
21 | Clone this repo and copy all the files
22 |
23 | ## Usage
24 |
25 | Add a UIView and set class name 'ChartProgressBar' ,
26 | set the width and the height of this UIView
27 |
28 | 
29 |
30 | 2. Add your Data to the chart :
31 |
32 | ```swift
33 |
34 | import UIKit
35 | import ChartProgressBar
36 |
37 | class ViewController: UIViewController, ChartProgressBarDelegate {
38 |
39 | @IBOutlet weak var chart: ChartProgressBar!
40 |
41 | override func viewDidLoad() {
42 | super.viewDidLoad()
43 | // Do any additional setup after loading the view, typically from a nib.
44 |
45 | var data: [BarData] = []
46 |
47 | data.append(BarData.init(barTitle: "Jan", barValue: 1.4, pinText: "1.4 €"))
48 | data.append(BarData.init(barTitle: "Feb", barValue: 10, pinText: "10 €"))
49 | data.append(BarData.init(barTitle: "Mar", barValue: 3.1, pinText: "3.1 €"))
50 | data.append(BarData.init(barTitle: "Apr", barValue: 4.8, pinText: "4.8 €"))
51 | data.append(BarData.init(barTitle: "May", barValue: 6.6, pinText: "6.6 €"))
52 | data.append(BarData.init(barTitle: "Jun", barValue: 7.4, pinText: "7.4 €"))
53 | data.append(BarData.init(barTitle: "Jul", barValue: 5.5, pinText: "5.5 €"))
54 |
55 | chart.data = data
56 | chart.barsCanBeClick = true
57 | chart.maxValue = 10.0
58 | chart.emptyColor = UIColor.clear
59 | chart.barWidth = 7
60 | chart.progressColor = UIColor.init(hexString: "99ffffff")
61 | chart.progressClickColor = UIColor.init(hexString: "F2912C")
62 | chart.pinBackgroundColor = UIColor.init(hexString: "E2335E")
63 | chart.pinTxtColor = UIColor.init(hexString: "ffffff")
64 | chart.barTitleColor = UIColor.init(hexString: "B6BDD5")
65 | chart.barTitleSelectedColor = UIColor.init(hexString: "FFFFFF")
66 | chart.pinMarginBottom = 15
67 | chart.pinWidth = 70
68 | chart.pinHeight = 29
69 | chart.pinTxtSize = 17
70 | chart.delegate = self
71 | chart.build()
72 |
73 | chart.disableBar(at: 3)
74 |
75 | let when = DispatchTime.now() + 6 // change 2 to desired number of seconds
76 | DispatchQueue.main.asyncAfter(deadline: when) {
77 | self.chart.enableBar(at: 3)
78 | }
79 | }
80 | }
81 | ```
82 |
83 | To Handle ChartProgressBarDelegate
84 |
85 | ```
86 | extension MainViewController: ChartProgressBarDelegate {
87 | func ChartProgressBar(_ chartProgressBar: ChartProgressBar, didSelectRowAt rowIndex: Int) {
88 | print(rowIndex)
89 | }
90 | }
91 | ```
92 |
93 | ## Useful methods
94 |
95 | 1. `chart.removeValues()` : Remove values of all progress bars in the chart.
96 |
97 | 2. `chart.resetValues()` : Set values to the chart ( it may used after `removeBarValues()`) .
98 |
99 | 3. `chart.removeClickedBar()` : Unselect the clicked bar.
100 |
101 | 4. `isBarsEmpty()` : Check if bars values are empty.
102 |
103 | 5. `chart.disableBar(at: Int)` : Disable a bar progmatically.
104 |
105 | 6. `chart.enableBar(at: Int)` : Enable a bar progmatically.
106 |
107 | 7. `clickBar(index: Int)` : Click a bar progmatically.
108 |
109 | ## Credits
110 |
111 | this library use [AlNistor](https://github.com/AlNistor/vertical-progress-bar-swift) sample to draw a single bar.
112 |
113 | Thanks for [Simplexity](http://simplexity.io) that gave me time for doing this library.
114 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios.xcodeproj/xcuserdata/hdbouk.xcuserdatad/xcschemes/ChartProgressBar-ios.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
43 |
49 |
50 |
51 |
52 |
53 |
59 |
60 |
61 |
62 |
63 |
64 |
74 |
76 |
82 |
83 |
84 |
85 |
86 |
87 |
93 |
95 |
101 |
102 |
103 |
104 |
106 |
107 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-ios/Pods-ChartProgressBar-ios-resources.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -e
3 |
4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
5 |
6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
7 | > "$RESOURCES_TO_COPY"
8 |
9 | XCASSET_FILES=()
10 |
11 | # This protects against multiple targets copying the same framework dependency at the same time. The solution
12 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html
13 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????")
14 |
15 | case "${TARGETED_DEVICE_FAMILY}" in
16 | 1,2)
17 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
18 | ;;
19 | 1)
20 | TARGET_DEVICE_ARGS="--target-device iphone"
21 | ;;
22 | 2)
23 | TARGET_DEVICE_ARGS="--target-device ipad"
24 | ;;
25 | 3)
26 | TARGET_DEVICE_ARGS="--target-device tv"
27 | ;;
28 | 4)
29 | TARGET_DEVICE_ARGS="--target-device watch"
30 | ;;
31 | *)
32 | TARGET_DEVICE_ARGS="--target-device mac"
33 | ;;
34 | esac
35 |
36 | install_resource()
37 | {
38 | if [[ "$1" = /* ]] ; then
39 | RESOURCE_PATH="$1"
40 | else
41 | RESOURCE_PATH="${PODS_ROOT}/$1"
42 | fi
43 | if [[ ! -e "$RESOURCE_PATH" ]] ; then
44 | cat << EOM
45 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script.
46 | EOM
47 | exit 1
48 | fi
49 | case $RESOURCE_PATH in
50 | *.storyboard)
51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true
52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
53 | ;;
54 | *.xib)
55 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true
56 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
57 | ;;
58 | *.framework)
59 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true
60 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
61 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true
62 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
63 | ;;
64 | *.xcdatamodel)
65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true
66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom"
67 | ;;
68 | *.xcdatamodeld)
69 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true
70 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd"
71 | ;;
72 | *.xcmappingmodel)
73 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true
74 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm"
75 | ;;
76 | *.xcassets)
77 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH"
78 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE")
79 | ;;
80 | *)
81 | echo "$RESOURCE_PATH" || true
82 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY"
83 | ;;
84 | esac
85 | }
86 |
87 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
88 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
89 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then
90 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
91 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
92 | fi
93 | rm -f "$RESOURCES_TO_COPY"
94 |
95 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ]
96 | then
97 | # Find all other xcassets (this unfortunately includes those of path pods and other targets).
98 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
99 | while read line; do
100 | if [[ $line != "${PODS_ROOT}*" ]]; then
101 | XCASSET_FILES+=("$line")
102 | fi
103 | done <<<"$OTHER_XCASSETS"
104 |
105 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
106 | fi
107 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosTests/Pods-ChartProgressBar-iosTests-resources.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -e
3 |
4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
5 |
6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
7 | > "$RESOURCES_TO_COPY"
8 |
9 | XCASSET_FILES=()
10 |
11 | # This protects against multiple targets copying the same framework dependency at the same time. The solution
12 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html
13 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????")
14 |
15 | case "${TARGETED_DEVICE_FAMILY}" in
16 | 1,2)
17 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
18 | ;;
19 | 1)
20 | TARGET_DEVICE_ARGS="--target-device iphone"
21 | ;;
22 | 2)
23 | TARGET_DEVICE_ARGS="--target-device ipad"
24 | ;;
25 | 3)
26 | TARGET_DEVICE_ARGS="--target-device tv"
27 | ;;
28 | 4)
29 | TARGET_DEVICE_ARGS="--target-device watch"
30 | ;;
31 | *)
32 | TARGET_DEVICE_ARGS="--target-device mac"
33 | ;;
34 | esac
35 |
36 | install_resource()
37 | {
38 | if [[ "$1" = /* ]] ; then
39 | RESOURCE_PATH="$1"
40 | else
41 | RESOURCE_PATH="${PODS_ROOT}/$1"
42 | fi
43 | if [[ ! -e "$RESOURCE_PATH" ]] ; then
44 | cat << EOM
45 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script.
46 | EOM
47 | exit 1
48 | fi
49 | case $RESOURCE_PATH in
50 | *.storyboard)
51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true
52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
53 | ;;
54 | *.xib)
55 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true
56 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
57 | ;;
58 | *.framework)
59 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true
60 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
61 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true
62 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
63 | ;;
64 | *.xcdatamodel)
65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true
66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom"
67 | ;;
68 | *.xcdatamodeld)
69 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true
70 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd"
71 | ;;
72 | *.xcmappingmodel)
73 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true
74 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm"
75 | ;;
76 | *.xcassets)
77 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH"
78 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE")
79 | ;;
80 | *)
81 | echo "$RESOURCE_PATH" || true
82 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY"
83 | ;;
84 | esac
85 | }
86 |
87 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
88 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
89 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then
90 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
91 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
92 | fi
93 | rm -f "$RESOURCES_TO_COPY"
94 |
95 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ]
96 | then
97 | # Find all other xcassets (this unfortunately includes those of path pods and other targets).
98 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
99 | while read line; do
100 | if [[ $line != "${PODS_ROOT}*" ]]; then
101 | XCASSET_FILES+=("$line")
102 | fi
103 | done <<<"$OTHER_XCASSETS"
104 |
105 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
106 | fi
107 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosUITests/Pods-ChartProgressBar-iosUITests-resources.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -e
3 |
4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
5 |
6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
7 | > "$RESOURCES_TO_COPY"
8 |
9 | XCASSET_FILES=()
10 |
11 | # This protects against multiple targets copying the same framework dependency at the same time. The solution
12 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html
13 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????")
14 |
15 | case "${TARGETED_DEVICE_FAMILY}" in
16 | 1,2)
17 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
18 | ;;
19 | 1)
20 | TARGET_DEVICE_ARGS="--target-device iphone"
21 | ;;
22 | 2)
23 | TARGET_DEVICE_ARGS="--target-device ipad"
24 | ;;
25 | 3)
26 | TARGET_DEVICE_ARGS="--target-device tv"
27 | ;;
28 | 4)
29 | TARGET_DEVICE_ARGS="--target-device watch"
30 | ;;
31 | *)
32 | TARGET_DEVICE_ARGS="--target-device mac"
33 | ;;
34 | esac
35 |
36 | install_resource()
37 | {
38 | if [[ "$1" = /* ]] ; then
39 | RESOURCE_PATH="$1"
40 | else
41 | RESOURCE_PATH="${PODS_ROOT}/$1"
42 | fi
43 | if [[ ! -e "$RESOURCE_PATH" ]] ; then
44 | cat << EOM
45 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script.
46 | EOM
47 | exit 1
48 | fi
49 | case $RESOURCE_PATH in
50 | *.storyboard)
51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true
52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
53 | ;;
54 | *.xib)
55 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true
56 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
57 | ;;
58 | *.framework)
59 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true
60 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
61 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true
62 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
63 | ;;
64 | *.xcdatamodel)
65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true
66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom"
67 | ;;
68 | *.xcdatamodeld)
69 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true
70 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd"
71 | ;;
72 | *.xcmappingmodel)
73 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true
74 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm"
75 | ;;
76 | *.xcassets)
77 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH"
78 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE")
79 | ;;
80 | *)
81 | echo "$RESOURCE_PATH" || true
82 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY"
83 | ;;
84 | esac
85 | }
86 |
87 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
88 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
89 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then
90 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
91 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
92 | fi
93 | rm -f "$RESOURCES_TO_COPY"
94 |
95 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ]
96 | then
97 | # Find all other xcassets (this unfortunately includes those of path pods and other targets).
98 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
99 | while read line; do
100 | if [[ $line != "${PODS_ROOT}*" ]]; then
101 | XCASSET_FILES+=("$line")
102 | fi
103 | done <<<"$OTHER_XCASSETS"
104 |
105 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
106 | fi
107 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosTests/Pods-ChartProgressBar-iosTests-frameworks.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -e
3 |
4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
6 |
7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
8 |
9 | # Used as a return value for each invocation of `strip_invalid_archs` function.
10 | STRIP_BINARY_RETVAL=0
11 |
12 | # This protects against multiple targets copying the same framework dependency at the same time. The solution
13 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html
14 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????")
15 |
16 | # Copies and strips a vendored framework
17 | install_framework()
18 | {
19 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
20 | local source="${BUILT_PRODUCTS_DIR}/$1"
21 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then
22 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")"
23 | elif [ -r "$1" ]; then
24 | local source="$1"
25 | fi
26 |
27 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
28 |
29 | if [ -L "${source}" ]; then
30 | echo "Symlinked..."
31 | source="$(readlink "${source}")"
32 | fi
33 |
34 | # Use filter instead of exclude so missing patterns don't throw errors.
35 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\""
36 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}"
37 |
38 | local basename
39 | basename="$(basename -s .framework "$1")"
40 | binary="${destination}/${basename}.framework/${basename}"
41 | if ! [ -r "$binary" ]; then
42 | binary="${destination}/${basename}"
43 | fi
44 |
45 | # Strip invalid architectures so "fat" simulator / device frameworks work on device
46 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then
47 | strip_invalid_archs "$binary"
48 | fi
49 |
50 | # Resign the code if required by the build settings to avoid unstable apps
51 | code_sign_if_enabled "${destination}/$(basename "$1")"
52 |
53 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7.
54 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then
55 | local swift_runtime_libs
56 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]})
57 | for lib in $swift_runtime_libs; do
58 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\""
59 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}"
60 | code_sign_if_enabled "${destination}/${lib}"
61 | done
62 | fi
63 | }
64 |
65 | # Copies and strips a vendored dSYM
66 | install_dsym() {
67 | local source="$1"
68 | if [ -r "$source" ]; then
69 | # Copy the dSYM into a the targets temp dir.
70 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\""
71 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}"
72 |
73 | local basename
74 | basename="$(basename -s .framework.dSYM "$source")"
75 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}"
76 |
77 | # Strip invalid architectures so "fat" simulator / device frameworks work on device
78 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then
79 | strip_invalid_archs "$binary"
80 | fi
81 |
82 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then
83 | # Move the stripped file into its final destination.
84 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\""
85 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}"
86 | else
87 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing.
88 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM"
89 | fi
90 | fi
91 | }
92 |
93 | # Signs a framework with the provided identity
94 | code_sign_if_enabled() {
95 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
96 | # Use the current code_sign_identitiy
97 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
98 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'"
99 |
100 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
101 | code_sign_cmd="$code_sign_cmd &"
102 | fi
103 | echo "$code_sign_cmd"
104 | eval "$code_sign_cmd"
105 | fi
106 | }
107 |
108 | # Strip invalid architectures
109 | strip_invalid_archs() {
110 | binary="$1"
111 | # Get architectures for current target binary
112 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)"
113 | # Intersect them with the architectures we are building for
114 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)"
115 | # If there are no archs supported by this binary then warn the user
116 | if [[ -z "$intersected_archs" ]]; then
117 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)."
118 | STRIP_BINARY_RETVAL=0
119 | return
120 | fi
121 | stripped=""
122 | for arch in $binary_archs; do
123 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then
124 | # Strip non-valid architectures in-place
125 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1
126 | stripped="$stripped $arch"
127 | fi
128 | done
129 | if [[ "$stripped" ]]; then
130 | echo "Stripped $binary of architectures:$stripped"
131 | fi
132 | STRIP_BINARY_RETVAL=1
133 | }
134 |
135 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
136 | wait
137 | fi
138 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-iosUITests/Pods-ChartProgressBar-iosUITests-frameworks.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -e
3 |
4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
6 |
7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
8 |
9 | # Used as a return value for each invocation of `strip_invalid_archs` function.
10 | STRIP_BINARY_RETVAL=0
11 |
12 | # This protects against multiple targets copying the same framework dependency at the same time. The solution
13 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html
14 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????")
15 |
16 | # Copies and strips a vendored framework
17 | install_framework()
18 | {
19 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
20 | local source="${BUILT_PRODUCTS_DIR}/$1"
21 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then
22 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")"
23 | elif [ -r "$1" ]; then
24 | local source="$1"
25 | fi
26 |
27 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
28 |
29 | if [ -L "${source}" ]; then
30 | echo "Symlinked..."
31 | source="$(readlink "${source}")"
32 | fi
33 |
34 | # Use filter instead of exclude so missing patterns don't throw errors.
35 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\""
36 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}"
37 |
38 | local basename
39 | basename="$(basename -s .framework "$1")"
40 | binary="${destination}/${basename}.framework/${basename}"
41 | if ! [ -r "$binary" ]; then
42 | binary="${destination}/${basename}"
43 | fi
44 |
45 | # Strip invalid architectures so "fat" simulator / device frameworks work on device
46 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then
47 | strip_invalid_archs "$binary"
48 | fi
49 |
50 | # Resign the code if required by the build settings to avoid unstable apps
51 | code_sign_if_enabled "${destination}/$(basename "$1")"
52 |
53 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7.
54 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then
55 | local swift_runtime_libs
56 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]})
57 | for lib in $swift_runtime_libs; do
58 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\""
59 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}"
60 | code_sign_if_enabled "${destination}/${lib}"
61 | done
62 | fi
63 | }
64 |
65 | # Copies and strips a vendored dSYM
66 | install_dsym() {
67 | local source="$1"
68 | if [ -r "$source" ]; then
69 | # Copy the dSYM into a the targets temp dir.
70 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\""
71 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}"
72 |
73 | local basename
74 | basename="$(basename -s .framework.dSYM "$source")"
75 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}"
76 |
77 | # Strip invalid architectures so "fat" simulator / device frameworks work on device
78 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then
79 | strip_invalid_archs "$binary"
80 | fi
81 |
82 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then
83 | # Move the stripped file into its final destination.
84 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\""
85 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}"
86 | else
87 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing.
88 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM"
89 | fi
90 | fi
91 | }
92 |
93 | # Signs a framework with the provided identity
94 | code_sign_if_enabled() {
95 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
96 | # Use the current code_sign_identitiy
97 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
98 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'"
99 |
100 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
101 | code_sign_cmd="$code_sign_cmd &"
102 | fi
103 | echo "$code_sign_cmd"
104 | eval "$code_sign_cmd"
105 | fi
106 | }
107 |
108 | # Strip invalid architectures
109 | strip_invalid_archs() {
110 | binary="$1"
111 | # Get architectures for current target binary
112 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)"
113 | # Intersect them with the architectures we are building for
114 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)"
115 | # If there are no archs supported by this binary then warn the user
116 | if [[ -z "$intersected_archs" ]]; then
117 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)."
118 | STRIP_BINARY_RETVAL=0
119 | return
120 | fi
121 | stripped=""
122 | for arch in $binary_archs; do
123 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then
124 | # Strip non-valid architectures in-place
125 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1
126 | stripped="$stripped $arch"
127 | fi
128 | done
129 | if [[ "$stripped" ]]; then
130 | echo "Stripped $binary of architectures:$stripped"
131 | fi
132 | STRIP_BINARY_RETVAL=1
133 | }
134 |
135 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
136 | wait
137 | fi
138 |
--------------------------------------------------------------------------------
/Pods/Target Support Files/Pods-ChartProgressBar-ios/Pods-ChartProgressBar-ios-frameworks.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -e
3 |
4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
6 |
7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
8 |
9 | # Used as a return value for each invocation of `strip_invalid_archs` function.
10 | STRIP_BINARY_RETVAL=0
11 |
12 | # This protects against multiple targets copying the same framework dependency at the same time. The solution
13 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html
14 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????")
15 |
16 | # Copies and strips a vendored framework
17 | install_framework()
18 | {
19 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
20 | local source="${BUILT_PRODUCTS_DIR}/$1"
21 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then
22 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")"
23 | elif [ -r "$1" ]; then
24 | local source="$1"
25 | fi
26 |
27 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
28 |
29 | if [ -L "${source}" ]; then
30 | echo "Symlinked..."
31 | source="$(readlink "${source}")"
32 | fi
33 |
34 | # Use filter instead of exclude so missing patterns don't throw errors.
35 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\""
36 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}"
37 |
38 | local basename
39 | basename="$(basename -s .framework "$1")"
40 | binary="${destination}/${basename}.framework/${basename}"
41 | if ! [ -r "$binary" ]; then
42 | binary="${destination}/${basename}"
43 | fi
44 |
45 | # Strip invalid architectures so "fat" simulator / device frameworks work on device
46 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then
47 | strip_invalid_archs "$binary"
48 | fi
49 |
50 | # Resign the code if required by the build settings to avoid unstable apps
51 | code_sign_if_enabled "${destination}/$(basename "$1")"
52 |
53 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7.
54 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then
55 | local swift_runtime_libs
56 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]})
57 | for lib in $swift_runtime_libs; do
58 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\""
59 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}"
60 | code_sign_if_enabled "${destination}/${lib}"
61 | done
62 | fi
63 | }
64 |
65 | # Copies and strips a vendored dSYM
66 | install_dsym() {
67 | local source="$1"
68 | if [ -r "$source" ]; then
69 | # Copy the dSYM into a the targets temp dir.
70 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\""
71 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}"
72 |
73 | local basename
74 | basename="$(basename -s .framework.dSYM "$source")"
75 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}"
76 |
77 | # Strip invalid architectures so "fat" simulator / device frameworks work on device
78 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then
79 | strip_invalid_archs "$binary"
80 | fi
81 |
82 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then
83 | # Move the stripped file into its final destination.
84 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\""
85 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}"
86 | else
87 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing.
88 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM"
89 | fi
90 | fi
91 | }
92 |
93 | # Signs a framework with the provided identity
94 | code_sign_if_enabled() {
95 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
96 | # Use the current code_sign_identitiy
97 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
98 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'"
99 |
100 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
101 | code_sign_cmd="$code_sign_cmd &"
102 | fi
103 | echo "$code_sign_cmd"
104 | eval "$code_sign_cmd"
105 | fi
106 | }
107 |
108 | # Strip invalid architectures
109 | strip_invalid_archs() {
110 | binary="$1"
111 | # Get architectures for current target binary
112 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)"
113 | # Intersect them with the architectures we are building for
114 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)"
115 | # If there are no archs supported by this binary then warn the user
116 | if [[ -z "$intersected_archs" ]]; then
117 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)."
118 | STRIP_BINARY_RETVAL=0
119 | return
120 | fi
121 | stripped=""
122 | for arch in $binary_archs; do
123 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then
124 | # Strip non-valid architectures in-place
125 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1
126 | stripped="$stripped $arch"
127 | fi
128 | done
129 | if [[ "$stripped" ]]; then
130 | echo "Stripped $binary of architectures:$stripped"
131 | fi
132 | STRIP_BINARY_RETVAL=1
133 | }
134 |
135 |
136 | if [[ "$CONFIGURATION" == "Debug" ]]; then
137 | install_framework "${BUILT_PRODUCTS_DIR}/ChartProgressBar/ChartProgressBar.framework"
138 | fi
139 | if [[ "$CONFIGURATION" == "Release" ]]; then
140 | install_framework "${BUILT_PRODUCTS_DIR}/ChartProgressBar/ChartProgressBar.framework"
141 | fi
142 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
143 | wait
144 | fi
145 |
--------------------------------------------------------------------------------
/ChartProgressBar-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 |
32 |
33 |
34 |
35 |
36 |
37 |
44 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
66 |
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 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios/Classes/ChartProgressBar.swift:
--------------------------------------------------------------------------------
1 |
2 | import UIKit
3 |
4 | public class ChartProgressBar: UIView {
5 |
6 | public var data: [BarData]?
7 | public var barWidth: Float = 15
8 | public var barHeight: Float = 180
9 | public var emptyColor: UIColor = UIColor.init(hexString: "e0e0e0")
10 | public var progressColor: UIColor = UIColor.init(hexString: "0086FF")
11 | public var progressDisableColor: UIColor = UIColor.init(hexString: "4bffffff")
12 | public var progressClickColor: UIColor = UIColor.init(hexString: "09467D")
13 | public var pinTxtColor: UIColor = UIColor.white
14 | public var pinBackgroundColor: UIColor = UIColor.darkGray
15 | public var barRadius: Float? = nil
16 | public var barTitleColor: UIColor = UIColor.init(hexString: "598DBC")
17 | public var barTitleSelectedColor: UIColor = UIColor.init(hexString: "FFFFFF")
18 | public var barTitleTxtSize: Float = 12
19 | public var barTitleWidth: Float = 30
20 | public var barTitleHeight: Float = 25
21 | public var pinTitleFont: UIFont?
22 | public var barTitleFont: UIFont?
23 | public var pinTxtSize: Float = 10
24 | public var pinWidth: Float = 30
25 | public var pinHeight: Float = 30
26 | public var pinMarginBottom: Float = 0
27 | public var pinMarginTop: Float = 0
28 | public var barsCanBeClick: Bool = false
29 | private var oldClickedBar: Bar?
30 | public var maxValue: Float = 100.0
31 | private var isDataEmpty: Bool = true
32 | public var delegate: ChartProgressBarDelegate?
33 |
34 | override init(frame: CGRect) {
35 | super.init(frame: frame)
36 | }
37 |
38 | required public init?(coder aDecoder: NSCoder) {
39 | super.init(coder: aDecoder)
40 | }
41 |
42 | /* build the chart
43 | this method build the progress bar into a stackview
44 | */
45 | public func build() {
46 |
47 | if pinTitleFont == nil {
48 | pinTitleFont = UIFont(name: "HelveticaNeue-bold", size: CGFloat(pinTxtSize))
49 | }
50 |
51 | if barTitleFont == nil {
52 | barTitleFont = UIFont(name: "HelveticaNeue-medium", size: CGFloat(barTitleTxtSize))
53 | }
54 |
55 | guard let chartData = data else {
56 | return
57 | }
58 |
59 | guard chartData.count != 0 else {
60 | return
61 | }
62 |
63 | let height = CGFloat(barHeight) > self.frame.height ? self.frame.height : CGFloat(barHeight)
64 |
65 | let stackView = UIStackView()
66 | stackView.frame = CGRect(x: 0, y: 0, width: self.frame.width, height: height)
67 | stackView.axis = UILayoutConstraintAxis.horizontal
68 | stackView.distribution = UIStackViewDistribution.fillEqually
69 |
70 | let barViewWidth = (self.frame.width) / (CGFloat(chartData.count))
71 |
72 | var i = 0
73 | for barData in chartData {
74 |
75 | let barView = UIView()
76 | barView.frame = CGRect(x: 0, y: 0, width: 0, height: height)
77 |
78 | let bar = Bar()
79 |
80 | bar.tag = i
81 | i = i + 1
82 |
83 | let xBar = (barViewWidth / 2) - (CGFloat(barWidth / 2))
84 |
85 | bar.frame = CGRect(x: xBar, y: 0, width: CGFloat(barWidth), height: height)
86 | bar.setBarRadius(radius: barRadius)
87 | bar.initBar()
88 | bar.setBackColor(emptyColor)
89 | bar.setProgressColor(progressColor)
90 | bar.setProgressValue(CGFloat(barData.barValue), threshold: CGFloat(maxValue))
91 |
92 | if barsCanBeClick {
93 | let gesture = UITapGestureRecognizer(target: self, action: #selector (self.triggerBarClick(sender:)))
94 | barView.addGestureRecognizer(gesture)
95 | }
96 |
97 | barView.addSubview(bar)
98 |
99 | let barPinLbl = createPinLbl(text: barData.pinText)
100 | let barPinView = createPinView(label: barPinLbl,
101 | progressBar: bar,
102 | progressValue: CGFloat(barData.barValue))
103 |
104 | barPinView.isHidden = true
105 |
106 | barView.addSubview(barPinView)
107 |
108 | let barTitleLbl = createBarTitleLbl(text: barData.barTitle,
109 | progressBar: bar,
110 | barFrame: xBar)
111 |
112 | barView.addSubview(barTitleLbl)
113 |
114 | stackView.addArrangedSubview(barView)
115 |
116 | }
117 | self.addSubview(stackView)
118 |
119 | isDataEmpty = false
120 | }
121 |
122 | /*
123 | This method handle the bar click
124 | for showing the pin and changing the bar color
125 | */
126 | @objc private func triggerBarClick(sender: UITapGestureRecognizer) {
127 |
128 | guard isDataEmpty == false else {
129 | return
130 | }
131 |
132 | let barView = sender.view
133 | guard let views = barView?.subviews else {
134 | return
135 | }
136 |
137 | for view in views {
138 | if(view is Bar) {
139 | setClick(on: oldClickedBar, isBarClicked: false)
140 | let bar = view as? Bar
141 | setClick(on: bar, isBarClicked: true)
142 | if bar != nil {
143 | delegate?.ChartProgressBar(self, didSelectRowAt: bar!.tag)
144 | }
145 | }
146 | }
147 | }
148 |
149 | /*
150 | Click a bar dynamically
151 | */
152 | public func clickBar(index: Int) {
153 | guard isDataEmpty == false else {
154 | return
155 | }
156 |
157 | let stackView = self.subviews[0] as? UIStackView
158 |
159 | if stackView == nil {
160 | return
161 | }
162 |
163 | guard let barsViews = stackView?.arrangedSubviews else { return }
164 |
165 | for i in 0...barsViews.count - 1 {
166 | if i == index {
167 | let barView = barsViews[i]
168 | let views = barView.subviews
169 | for view in views {
170 | if(view is Bar) {
171 | let bar = view as! Bar
172 | setClick(on: oldClickedBar, isBarClicked: false)
173 | if !bar.isDisabled {
174 | setClick(on: bar, isBarClicked: true)
175 | delegate?.ChartProgressBar(self, didSelectRowAt: bar.tag)
176 | }
177 | }
178 | }
179 | return
180 | }
181 | }
182 | }
183 |
184 | /*
185 | This is a helper method of 'triggerBarClick'
186 | it taks the bar has been clicked ( or not ) and show/hide the pin
187 | it will be used to hide the old bar also
188 | */
189 | private func setClick(on bar: Bar?, isBarClicked isClicked: Bool) {
190 |
191 | guard let barView = bar?.superview else {
192 | return
193 | }
194 |
195 | for subView in barView.subviews {
196 |
197 | let isLabel = subView is UILabel
198 | let isBar = subView is Bar
199 |
200 | if !isLabel && !isBar {
201 |
202 | subView.isHidden = !isClicked
203 | oldClickedBar = bar
204 | }
205 | else if isBar {
206 |
207 | if isClicked {
208 | bar?.setProgressColor(progressClickColor)
209 |
210 | }
211 | else {
212 | bar?.setProgressColor(progressColor)
213 | }
214 | }
215 | else if isLabel && subView.tag == 778877 {
216 |
217 | let lbl = subView as! UILabel
218 |
219 | if isClicked {
220 | lbl.textColor = barTitleSelectedColor
221 | }
222 | else {
223 | lbl.textColor = barTitleColor
224 | }
225 | }
226 | }
227 | }
228 |
229 | /*
230 | This method remove all the values of the chart by setting the value 0 ,
231 | also it calls 'removeClickedBar()'.
232 | */
233 | public func removeValues() {
234 |
235 | removeClickedBar()
236 |
237 | let stackView = self.subviews[0]
238 |
239 | for barView in stackView.subviews {
240 |
241 | for subView in barView.subviews {
242 |
243 | if subView is Bar {
244 |
245 | let bar = subView as! Bar
246 | bar.setProgressValue(0, threshold: CGFloat(maxValue))
247 | }
248 |
249 | }
250 | }
251 | isDataEmpty = true
252 | }
253 |
254 | /*
255 | This method re-add all the values of the chart by setting the value from the BarData array.
256 | */
257 | public func resetValues() {
258 |
259 | var i = 0
260 |
261 | let stackView = self.subviews[0]
262 |
263 | for barView in stackView.subviews {
264 |
265 | for subView in barView.subviews {
266 |
267 | if subView is Bar {
268 |
269 | let bar = subView as! Bar
270 | bar.setProgressValue(CGFloat(data![i].barValue), threshold: CGFloat(maxValue))
271 | i = i + 1
272 | }
273 |
274 | }
275 | }
276 | isDataEmpty = false
277 | }
278 |
279 | /*
280 | This method hide the pin and set the progress (and the title ) color to progresscolor.
281 | */
282 | public func removeClickedBar() {
283 | setClick(on: oldClickedBar, isBarClicked: false)
284 | }
285 |
286 | /*
287 | This method return true if the values of the charts in 0 otherwise it will return false
288 | */
289 | public func isBarsEmpty() -> Bool {
290 | return isDataEmpty
291 | }
292 |
293 | /*
294 | Disable a bar ( change color and remove gesture)
295 | */
296 | public func disableBar(at index: Int) {
297 | var stackView: UIStackView? = nil
298 | self.subviews.forEach {
299 | if $0 is UIStackView {
300 | stackView = $0 as? UIStackView
301 | }
302 | }
303 | guard let barView = stackView?.arrangedSubviews[index] else {
304 | return
305 | }
306 | barView.gestureRecognizers?.removeAll()
307 | barView.subviews.forEach {
308 | if $0 is Bar {
309 | let bar = $0 as? Bar
310 | bar?.isDisabled = true
311 | bar?.setProgressColor(progressDisableColor)
312 | }
313 | else if $0 is UILabel {
314 | let titleBar = $0 as? UILabel
315 | titleBar?.textColor = progressDisableColor
316 | }
317 | }
318 | }
319 |
320 | /*
321 | Enable a bar ( change color and remove gesture)
322 | */
323 | public func enableBar(at index: Int) {
324 | var stackView: UIStackView? = nil
325 | self.subviews.forEach {
326 | if $0 is UIStackView {
327 | stackView = $0 as? UIStackView
328 | }
329 | }
330 | guard let barView = stackView?.arrangedSubviews[index] else {
331 | return
332 | }
333 |
334 | let gesture = UITapGestureRecognizer(target: self, action: #selector (self.triggerBarClick(sender:)))
335 | barView.addGestureRecognizer(gesture)
336 |
337 | barView.subviews.forEach {
338 | if $0 is Bar {
339 | let bar = $0 as? Bar
340 | bar?.isDisabled = false
341 | bar?.setProgressColor(progressColor)
342 | }
343 | else if $0 is UILabel {
344 | let titleBar = $0 as? UILabel
345 | titleBar?.textColor = barTitleColor
346 | }
347 | }
348 | }
349 |
350 | /*
351 | This method create the pin lbl and set the text from the BarData array
352 | */
353 | private func createPinLbl(text newText: String) -> UILabel {
354 |
355 | let newLbl = UILabel()
356 | newLbl.frame = CGRect(x: 0, y: 0, width: CGFloat(pinWidth), height: CGFloat(pinHeight))
357 | newLbl.text = newText
358 | newLbl.textAlignment = .center
359 | newLbl.textColor = pinTxtColor
360 | newLbl.font = pinTitleFont
361 |
362 | return newLbl
363 | }
364 |
365 | /*
366 | This method create the pin view by getting the image from the bundle as an SVG using `SwiftSVG`(https://github.com/mchoe/SwiftSVG) library and adding the created label in the above method to it.
367 | */
368 | private func createPinView(label lbl: UILabel, progressBar bar: Bar, progressValue value: CGFloat) -> UIView {
369 |
370 | let newView = UIView()
371 |
372 | var pinY = bar.frame.maxY - ((value * bar.frame.height) / CGFloat(maxValue)) - CGFloat(pinHeight)
373 |
374 | pinY = (pinY) + (CGFloat(pinMarginTop))
375 | pinY = (pinY) - (CGFloat(pinMarginBottom))
376 |
377 | newView.frame = CGRect(x: CGFloat(Float(bar.center.x) - Float(pinWidth / 2)) - 1, y: pinY, width: CGFloat(pinWidth), height: CGFloat(pinHeight))
378 |
379 | let bezierPath = UIBezierPath()
380 | bezierPath.move(to: CGPoint(x: 56.95, y: 0))
381 | bezierPath.addLine(to: CGPoint(x: 14.5, y: 0))
382 | bezierPath.addCurve(to: CGPoint(x: 0, y: 14.5), controlPoint1: CGPoint(x: 6.49, y: 0), controlPoint2: CGPoint(x: 0, y: 6.49))
383 | bezierPath.addCurve(to: CGPoint(x: 14.5, y: 29), controlPoint1: CGPoint(x: 0, y: 22.51), controlPoint2: CGPoint(x: 6.49, y: 29))
384 | bezierPath.addLine(to: CGPoint(x: 29.82, y: 29))
385 | bezierPath.addLine(to: CGPoint(x: 35.24, y: 34.02))
386 | bezierPath.addCurve(to: CGPoint(x: 36.15, y: 34.28), controlPoint1: CGPoint(x: 35.49, y: 34.28), controlPoint2: CGPoint(x: 35.9, y: 34.54))
387 | bezierPath.addLine(to: CGPoint(x: 41.66, y: 29))
388 | bezierPath.addLine(to: CGPoint(x: 56.95, y: 29))
389 | bezierPath.addCurve(to: CGPoint(x: 71.45, y: 14.5), controlPoint1: CGPoint(x: 64.96, y: 29), controlPoint2: CGPoint(x: 71.45, y: 22.51))
390 | bezierPath.addCurve(to: CGPoint(x: 56.95, y: 0), controlPoint1: CGPoint(x: 71.45, y: 6.49), controlPoint2: CGPoint(x: 64.96, y: 0))
391 | bezierPath.close()
392 | pinBackgroundColor.setFill()
393 | bezierPath.fill()
394 |
395 | let pinCALayer = CAShapeLayer()
396 | pinCALayer.path = bezierPath.cgPath
397 | pinCALayer.fillColor = pinBackgroundColor.cgColor
398 |
399 | newView.layer.addSublayer(pinCALayer)
400 | newView.addSubview(lbl)
401 |
402 | return newView
403 | }
404 |
405 | /*
406 | This method create the bar title below the bar and get the text from the BarData array
407 | */
408 | private func createBarTitleLbl(text newText: String, progressBar bar: Bar, barFrame: CGFloat) -> UILabel {
409 |
410 | let newLbl = UILabel()
411 |
412 | var x = barFrame
413 | newLbl.frame = CGRect(x: x, y: bar.frame.maxY, width: CGFloat(barTitleWidth), height: CGFloat(barTitleHeight))
414 |
415 | let labelx = newLbl.frame.origin.x
416 | x = x - (labelx / 2)
417 | newLbl.frame.origin.x = x
418 | newLbl.text = newText
419 | newLbl.textAlignment = .center
420 | newLbl.textColor = barTitleColor
421 | newLbl.font = barTitleFont
422 | newLbl.tag = 778877
423 |
424 | return newLbl
425 | }
426 | }
427 | extension UIColor {
428 | convenience init(hexString: String) {
429 | let hex = hexString.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
430 | var int = UInt32()
431 | Scanner(string: hex).scanHexInt32(&int)
432 | let a, r, g, b: UInt32
433 | switch hex.characters.count {
434 | case 3: // RGB (12-bit)
435 | (a, r, g, b) = (255, (int >> 8) * 17, (int >> 4 & 0xF) * 17, (int & 0xF) * 17)
436 | case 6: // RGB (24-bit)
437 | (a, r, g, b) = (255, int >> 16, int >> 8 & 0xFF, int & 0xFF)
438 | case 8: // ARGB (32-bit)
439 | (a, r, g, b) = (int >> 24, int >> 16 & 0xFF, int >> 8 & 0xFF, int & 0xFF)
440 | default:
441 | (a, r, g, b) = (255, 0, 0, 0)
442 | }
443 | self.init(red: CGFloat(r) / 255, green: CGFloat(g) / 255, blue: CGFloat(b) / 255, alpha: CGFloat(a) / 255)
444 | }
445 | }
446 |
447 |
--------------------------------------------------------------------------------
/Pods/ChartProgressBar/ChartProgressBar-ios/Classes/ChartProgressBar.swift:
--------------------------------------------------------------------------------
1 |
2 | import UIKit
3 |
4 | public class ChartProgressBar: UIView {
5 |
6 | public var data: [BarData]?
7 | public var barWidth: Float = 15
8 | public var barHeight: Float = 180
9 | public var emptyColor: UIColor = UIColor.init(hexString: "e0e0e0")
10 | public var progressColor: UIColor = UIColor.init(hexString: "0086FF")
11 | public var progressDisableColor: UIColor = UIColor.init(hexString: "4bffffff")
12 | public var progressClickColor: UIColor = UIColor.init(hexString: "09467D")
13 | public var pinTxtColor: UIColor = UIColor.white
14 | public var pinBackgroundColor: UIColor = UIColor.darkGray
15 | public var barRadius: Float? = nil
16 | public var barTitleColor: UIColor = UIColor.init(hexString: "598DBC")
17 | public var barTitleSelectedColor: UIColor = UIColor.init(hexString: "FFFFFF")
18 | public var barTitleTxtSize: Float = 12
19 | public var barTitleWidth: Float = 30
20 | public var barTitleHeight: Float = 25
21 | public var pinTitleFont: UIFont?
22 | public var barTitleFont: UIFont?
23 | public var pinTxtSize: Float = 10
24 | public var pinWidth: Float = 30
25 | public var pinHeight: Float = 30
26 | public var pinMarginBottom: Float = 0
27 | public var pinMarginTop: Float = 0
28 | public var barsCanBeClick: Bool = false
29 | private var oldClickedBar: Bar?
30 | public var maxValue: Float = 100.0
31 | private var isDataEmpty: Bool = true
32 | public var delegate: ChartProgressBarDelegate?
33 |
34 | override init(frame: CGRect) {
35 | super.init(frame: frame)
36 | }
37 |
38 | required public init?(coder aDecoder: NSCoder) {
39 | super.init(coder: aDecoder)
40 | }
41 |
42 | /* build the chart
43 | this method build the progress bar into a stackview
44 | */
45 | public func build() {
46 |
47 | if pinTitleFont == nil {
48 | pinTitleFont = UIFont(name: "HelveticaNeue-bold", size: CGFloat(pinTxtSize))
49 | }
50 |
51 | if barTitleFont == nil {
52 | barTitleFont = UIFont(name: "HelveticaNeue-medium", size: CGFloat(barTitleTxtSize))
53 | }
54 |
55 | guard let chartData = data else {
56 | return
57 | }
58 |
59 | guard chartData.count != 0 else {
60 | return
61 | }
62 |
63 | let height = CGFloat(barHeight) > self.frame.height ? self.frame.height : CGFloat(barHeight)
64 |
65 | let stackView = UIStackView()
66 | stackView.frame = CGRect(x: 0, y: 0, width: self.frame.width, height: height)
67 | stackView.axis = UILayoutConstraintAxis.horizontal
68 | stackView.distribution = UIStackViewDistribution.fillEqually
69 |
70 | let barViewWidth = (self.frame.width) / (CGFloat(chartData.count))
71 |
72 | var i = 0
73 | for barData in chartData {
74 |
75 | let barView = UIView()
76 | barView.frame = CGRect(x: 0, y: 0, width: 0, height: height)
77 |
78 | let bar = Bar()
79 |
80 | bar.tag = i
81 | i = i + 1
82 |
83 | let xBar = (barViewWidth / 2) - (CGFloat(barWidth / 2))
84 |
85 | bar.frame = CGRect(x: xBar, y: 0, width: CGFloat(barWidth), height: height)
86 | bar.setBarRadius(radius: barRadius)
87 | bar.initBar()
88 | bar.setBackColor(emptyColor)
89 | bar.setProgressColor(progressColor)
90 | bar.setProgressValue(CGFloat(barData.barValue), threshold: CGFloat(maxValue))
91 |
92 | if barsCanBeClick {
93 | let gesture = UITapGestureRecognizer(target: self, action: #selector (self.triggerBarClick(sender:)))
94 | barView.addGestureRecognizer(gesture)
95 | }
96 |
97 | barView.addSubview(bar)
98 |
99 | let barPinLbl = createPinLbl(text: barData.pinText)
100 | let barPinView = createPinView(label: barPinLbl,
101 | progressBar: bar,
102 | progressValue: CGFloat(barData.barValue))
103 |
104 | barPinView.isHidden = true
105 |
106 | barView.addSubview(barPinView)
107 |
108 | let barTitleLbl = createBarTitleLbl(text: barData.barTitle,
109 | progressBar: bar,
110 | barFrame: xBar)
111 |
112 | barView.addSubview(barTitleLbl)
113 |
114 | stackView.addArrangedSubview(barView)
115 |
116 | }
117 | self.addSubview(stackView)
118 |
119 | isDataEmpty = false
120 | }
121 |
122 | /*
123 | This method handle the bar click
124 | for showing the pin and changing the bar color
125 | */
126 | @objc private func triggerBarClick(sender: UITapGestureRecognizer) {
127 |
128 | guard isDataEmpty == false else {
129 | return
130 | }
131 |
132 | let barView = sender.view
133 | guard let views = barView?.subviews else {
134 | return
135 | }
136 |
137 | for view in views {
138 | if(view is Bar) {
139 | setClick(on: oldClickedBar, isBarClicked: false)
140 | let bar = view as? Bar
141 | setClick(on: bar, isBarClicked: true)
142 | if bar != nil {
143 | delegate?.ChartProgressBar(self, didSelectRowAt: bar!.tag)
144 | }
145 | }
146 | }
147 | }
148 |
149 | /*
150 | Click a bar dynamically
151 | */
152 | public func clickBar(index: Int) {
153 | guard isDataEmpty == false else {
154 | return
155 | }
156 |
157 | let stackView = self.subviews[0] as? UIStackView
158 |
159 | if stackView == nil {
160 | return
161 | }
162 |
163 | guard let barsViews = stackView?.arrangedSubviews else { return }
164 |
165 | for i in 0...barsViews.count - 1 {
166 | if i == index {
167 | let barView = barsViews[i]
168 | let views = barView.subviews
169 | for view in views {
170 | if(view is Bar) {
171 | let bar = view as! Bar
172 | setClick(on: oldClickedBar, isBarClicked: false)
173 | if !bar.isDisabled {
174 | setClick(on: bar, isBarClicked: true)
175 | delegate?.ChartProgressBar(self, didSelectRowAt: bar.tag)
176 | }
177 | }
178 | }
179 | return
180 | }
181 | }
182 | }
183 |
184 | /*
185 | This is a helper method of 'triggerBarClick'
186 | it taks the bar has been clicked ( or not ) and show/hide the pin
187 | it will be used to hide the old bar also
188 | */
189 | private func setClick(on bar: Bar?, isBarClicked isClicked: Bool) {
190 |
191 | guard let barView = bar?.superview else {
192 | return
193 | }
194 |
195 | for subView in barView.subviews {
196 |
197 | let isLabel = subView is UILabel
198 | let isBar = subView is Bar
199 |
200 | if !isLabel && !isBar {
201 |
202 | subView.isHidden = !isClicked
203 | oldClickedBar = bar
204 | }
205 | else if isBar {
206 |
207 | if isClicked {
208 | bar?.setProgressColor(progressClickColor)
209 |
210 | }
211 | else {
212 | bar?.setProgressColor(progressColor)
213 | }
214 | }
215 | else if isLabel && subView.tag == 778877 {
216 |
217 | let lbl = subView as! UILabel
218 |
219 | if isClicked {
220 | lbl.textColor = barTitleSelectedColor
221 | }
222 | else {
223 | lbl.textColor = barTitleColor
224 | }
225 | }
226 | }
227 | }
228 |
229 | /*
230 | This method remove all the values of the chart by setting the value 0 ,
231 | also it calls 'removeClickedBar()'.
232 | */
233 | public func removeValues() {
234 |
235 | removeClickedBar()
236 |
237 | let stackView = self.subviews[0]
238 |
239 | for barView in stackView.subviews {
240 |
241 | for subView in barView.subviews {
242 |
243 | if subView is Bar {
244 |
245 | let bar = subView as! Bar
246 | bar.setProgressValue(0, threshold: CGFloat(maxValue))
247 | }
248 |
249 | }
250 | }
251 | isDataEmpty = true
252 | }
253 |
254 | /*
255 | This method re-add all the values of the chart by setting the value from the BarData array.
256 | */
257 | public func resetValues() {
258 |
259 | var i = 0
260 |
261 | let stackView = self.subviews[0]
262 |
263 | for barView in stackView.subviews {
264 |
265 | for subView in barView.subviews {
266 |
267 | if subView is Bar {
268 |
269 | let bar = subView as! Bar
270 | bar.setProgressValue(CGFloat(data![i].barValue), threshold: CGFloat(maxValue))
271 | i = i + 1
272 | }
273 |
274 | }
275 | }
276 | isDataEmpty = false
277 | }
278 |
279 | /*
280 | This method hide the pin and set the progress (and the title ) color to progresscolor.
281 | */
282 | public func removeClickedBar() {
283 | setClick(on: oldClickedBar, isBarClicked: false)
284 | }
285 |
286 | /*
287 | This method return true if the values of the charts in 0 otherwise it will return false
288 | */
289 | public func isBarsEmpty() -> Bool {
290 | return isDataEmpty
291 | }
292 |
293 | /*
294 | Disable a bar ( change color and remove gesture)
295 | */
296 | public func disableBar(at index: Int) {
297 | var stackView: UIStackView? = nil
298 | self.subviews.forEach {
299 | if $0 is UIStackView {
300 | stackView = $0 as? UIStackView
301 | }
302 | }
303 | guard let barView = stackView?.arrangedSubviews[index] else {
304 | return
305 | }
306 | barView.gestureRecognizers?.removeAll()
307 | barView.subviews.forEach {
308 | if $0 is Bar {
309 | let bar = $0 as? Bar
310 | bar?.isDisabled = true
311 | bar?.setProgressColor(progressDisableColor)
312 | }
313 | else if $0 is UILabel {
314 | let titleBar = $0 as? UILabel
315 | titleBar?.textColor = progressDisableColor
316 | }
317 | }
318 | }
319 |
320 | /*
321 | Enable a bar ( change color and remove gesture)
322 | */
323 | public func enableBar(at index: Int) {
324 | var stackView: UIStackView? = nil
325 | self.subviews.forEach {
326 | if $0 is UIStackView {
327 | stackView = $0 as? UIStackView
328 | }
329 | }
330 | guard let barView = stackView?.arrangedSubviews[index] else {
331 | return
332 | }
333 |
334 | let gesture = UITapGestureRecognizer(target: self, action: #selector (self.triggerBarClick(sender:)))
335 | barView.addGestureRecognizer(gesture)
336 |
337 | barView.subviews.forEach {
338 | if $0 is Bar {
339 | let bar = $0 as? Bar
340 | bar?.isDisabled = false
341 | bar?.setProgressColor(progressColor)
342 | }
343 | else if $0 is UILabel {
344 | let titleBar = $0 as? UILabel
345 | titleBar?.textColor = barTitleColor
346 | }
347 | }
348 | }
349 |
350 | /*
351 | This method create the pin lbl and set the text from the BarData array
352 | */
353 | private func createPinLbl(text newText: String) -> UILabel {
354 |
355 | let newLbl = UILabel()
356 | newLbl.frame = CGRect(x: 0, y: 0, width: CGFloat(pinWidth), height: CGFloat(pinHeight))
357 | newLbl.text = newText
358 | newLbl.textAlignment = .center
359 | newLbl.textColor = pinTxtColor
360 | newLbl.font = pinTitleFont
361 |
362 | return newLbl
363 | }
364 |
365 | /*
366 | This method create the pin view by getting the image from the bundle as an SVG using `SwiftSVG`(https://github.com/mchoe/SwiftSVG) library and adding the created label in the above method to it.
367 | */
368 | private func createPinView(label lbl: UILabel, progressBar bar: Bar, progressValue value: CGFloat) -> UIView {
369 |
370 | let newView = UIView()
371 |
372 | var pinY = bar.frame.maxY - ((value * bar.frame.height) / CGFloat(maxValue)) - CGFloat(pinHeight)
373 |
374 | pinY = (pinY) + (CGFloat(pinMarginTop))
375 | pinY = (pinY) - (CGFloat(pinMarginBottom))
376 |
377 | newView.frame = CGRect(x: CGFloat(Float(bar.center.x) - Float(pinWidth / 2)) - 1, y: pinY, width: CGFloat(pinWidth), height: CGFloat(pinHeight))
378 |
379 | let bezierPath = UIBezierPath()
380 | bezierPath.move(to: CGPoint(x: 56.95, y: 0))
381 | bezierPath.addLine(to: CGPoint(x: 14.5, y: 0))
382 | bezierPath.addCurve(to: CGPoint(x: 0, y: 14.5), controlPoint1: CGPoint(x: 6.49, y: 0), controlPoint2: CGPoint(x: 0, y: 6.49))
383 | bezierPath.addCurve(to: CGPoint(x: 14.5, y: 29), controlPoint1: CGPoint(x: 0, y: 22.51), controlPoint2: CGPoint(x: 6.49, y: 29))
384 | bezierPath.addLine(to: CGPoint(x: 29.82, y: 29))
385 | bezierPath.addLine(to: CGPoint(x: 35.24, y: 34.02))
386 | bezierPath.addCurve(to: CGPoint(x: 36.15, y: 34.28), controlPoint1: CGPoint(x: 35.49, y: 34.28), controlPoint2: CGPoint(x: 35.9, y: 34.54))
387 | bezierPath.addLine(to: CGPoint(x: 41.66, y: 29))
388 | bezierPath.addLine(to: CGPoint(x: 56.95, y: 29))
389 | bezierPath.addCurve(to: CGPoint(x: 71.45, y: 14.5), controlPoint1: CGPoint(x: 64.96, y: 29), controlPoint2: CGPoint(x: 71.45, y: 22.51))
390 | bezierPath.addCurve(to: CGPoint(x: 56.95, y: 0), controlPoint1: CGPoint(x: 71.45, y: 6.49), controlPoint2: CGPoint(x: 64.96, y: 0))
391 | bezierPath.close()
392 | pinBackgroundColor.setFill()
393 | bezierPath.fill()
394 |
395 | let pinCALayer = CAShapeLayer()
396 | pinCALayer.path = bezierPath.cgPath
397 | pinCALayer.fillColor = pinBackgroundColor.cgColor
398 |
399 | newView.layer.addSublayer(pinCALayer)
400 | newView.addSubview(lbl)
401 |
402 | return newView
403 | }
404 |
405 | /*
406 | This method create the bar title below the bar and get the text from the BarData array
407 | */
408 | private func createBarTitleLbl(text newText: String, progressBar bar: Bar, barFrame: CGFloat) -> UILabel {
409 |
410 | let newLbl = UILabel()
411 |
412 | var x = barFrame
413 | newLbl.frame = CGRect(x: x, y: bar.frame.maxY, width: CGFloat(barTitleWidth), height: CGFloat(barTitleHeight))
414 |
415 | let labelx = newLbl.frame.origin.x
416 | x = x - (labelx / 2)
417 | newLbl.frame.origin.x = x
418 | newLbl.text = newText
419 | newLbl.textAlignment = .center
420 | newLbl.textColor = barTitleColor
421 | newLbl.font = barTitleFont
422 | newLbl.tag = 778877
423 |
424 | return newLbl
425 | }
426 | }
427 | extension UIColor {
428 | convenience init(hexString: String) {
429 | let hex = hexString.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
430 | var int = UInt32()
431 | Scanner(string: hex).scanHexInt32(&int)
432 | let a, r, g, b: UInt32
433 | switch hex.characters.count {
434 | case 3: // RGB (12-bit)
435 | (a, r, g, b) = (255, (int >> 8) * 17, (int >> 4 & 0xF) * 17, (int & 0xF) * 17)
436 | case 6: // RGB (24-bit)
437 | (a, r, g, b) = (255, int >> 16, int >> 8 & 0xFF, int & 0xFF)
438 | case 8: // ARGB (32-bit)
439 | (a, r, g, b) = (int >> 24, int >> 16 & 0xFF, int >> 8 & 0xFF, int & 0xFF)
440 | default:
441 | (a, r, g, b) = (255, 0, 0, 0)
442 | }
443 | self.init(red: CGFloat(r) / 255, green: CGFloat(g) / 255, blue: CGFloat(b) / 255, alpha: CGFloat(a) / 255)
444 | }
445 | }
446 |
447 |
--------------------------------------------------------------------------------
/ChartProgressBar-ios.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 314B17431F8E2F3200D98FA3 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 314B17421F8E2F3200D98FA3 /* AppDelegate.swift */; };
11 | 314B17481F8E2F3200D98FA3 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 314B17461F8E2F3200D98FA3 /* Main.storyboard */; };
12 | 314B174A1F8E2F3200D98FA3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 314B17491F8E2F3200D98FA3 /* Assets.xcassets */; };
13 | 314B174D1F8E2F3200D98FA3 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 314B174B1F8E2F3200D98FA3 /* LaunchScreen.storyboard */; };
14 | 7DC66FE83943405C815071D3 /* Pods_ChartProgressBar_iosUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5C8C08ECFF76855180EA797F /* Pods_ChartProgressBar_iosUITests.framework */; };
15 | DBA26E2C66B2AF8F1F0E3444 /* Pods_ChartProgressBar_iosTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A09E48B7228EF64EBC9087E0 /* Pods_ChartProgressBar_iosTests.framework */; };
16 | EAA8F6F31C98E12D96F7BF7B /* Pods_ChartProgressBar_ios.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4F599CA2F2094272922B3FA7 /* Pods_ChartProgressBar_ios.framework */; };
17 | EC43906920188121006FCCE8 /* MainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC43906820188121006FCCE8 /* MainViewController.swift */; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXContainerItemProxy section */
21 | 314B17541F8E2F3200D98FA3 /* PBXContainerItemProxy */ = {
22 | isa = PBXContainerItemProxy;
23 | containerPortal = 314B17371F8E2F3200D98FA3 /* Project object */;
24 | proxyType = 1;
25 | remoteGlobalIDString = 314B173E1F8E2F3200D98FA3;
26 | remoteInfo = "ChartProgressBar-ios";
27 | };
28 | 314B175F1F8E2F3200D98FA3 /* PBXContainerItemProxy */ = {
29 | isa = PBXContainerItemProxy;
30 | containerPortal = 314B17371F8E2F3200D98FA3 /* Project object */;
31 | proxyType = 1;
32 | remoteGlobalIDString = 314B173E1F8E2F3200D98FA3;
33 | remoteInfo = "ChartProgressBar-ios";
34 | };
35 | /* End PBXContainerItemProxy section */
36 |
37 | /* Begin PBXFileReference section */
38 | 314B173F1F8E2F3200D98FA3 /* ChartProgressBar-ios.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ChartProgressBar-ios.app"; sourceTree = BUILT_PRODUCTS_DIR; };
39 | 314B17421F8E2F3200D98FA3 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
40 | 314B17471F8E2F3200D98FA3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
41 | 314B17491F8E2F3200D98FA3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
42 | 314B174C1F8E2F3200D98FA3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
43 | 314B174E1F8E2F3200D98FA3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
44 | 314B17531F8E2F3200D98FA3 /* ChartProgressBar-iosTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ChartProgressBar-iosTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
45 | 314B175E1F8E2F3200D98FA3 /* ChartProgressBar-iosUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ChartProgressBar-iosUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
46 | 4F599CA2F2094272922B3FA7 /* Pods_ChartProgressBar_ios.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ChartProgressBar_ios.framework; sourceTree = BUILT_PRODUCTS_DIR; };
47 | 527CFBB6E6CDF41FA67B50F7 /* Pods-ChartProgressBar-iosTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ChartProgressBar-iosTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-ChartProgressBar-iosTests/Pods-ChartProgressBar-iosTests.release.xcconfig"; sourceTree = ""; };
48 | 5C8C08ECFF76855180EA797F /* Pods_ChartProgressBar_iosUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ChartProgressBar_iosUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
49 | 667E5473A6E520F3B3F9022D /* Pods-ChartProgressBar-ios.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ChartProgressBar-ios.release.xcconfig"; path = "Pods/Target Support Files/Pods-ChartProgressBar-ios/Pods-ChartProgressBar-ios.release.xcconfig"; sourceTree = ""; };
50 | 837CB41FCFD9684DE355B8FF /* Pods-ChartProgressBar-ios.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ChartProgressBar-ios.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ChartProgressBar-ios/Pods-ChartProgressBar-ios.debug.xcconfig"; sourceTree = ""; };
51 | A09E48B7228EF64EBC9087E0 /* Pods_ChartProgressBar_iosTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ChartProgressBar_iosTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
52 | A10D4C2FD28AD39764D35672 /* Pods-ChartProgressBar-iosTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ChartProgressBar-iosTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ChartProgressBar-iosTests/Pods-ChartProgressBar-iosTests.debug.xcconfig"; sourceTree = ""; };
53 | B0FBDF5DE41988772C0757AC /* Pods-ChartProgressBar-iosUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ChartProgressBar-iosUITests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ChartProgressBar-iosUITests/Pods-ChartProgressBar-iosUITests.debug.xcconfig"; sourceTree = ""; };
54 | E3F6A60F0AF47CF0D9C9B2FF /* Pods-ChartProgressBar-iosUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ChartProgressBar-iosUITests.release.xcconfig"; path = "Pods/Target Support Files/Pods-ChartProgressBar-iosUITests/Pods-ChartProgressBar-iosUITests.release.xcconfig"; sourceTree = ""; };
55 | EC43906820188121006FCCE8 /* MainViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainViewController.swift; sourceTree = ""; };
56 | /* End PBXFileReference section */
57 |
58 | /* Begin PBXFrameworksBuildPhase section */
59 | 314B173C1F8E2F3200D98FA3 /* Frameworks */ = {
60 | isa = PBXFrameworksBuildPhase;
61 | buildActionMask = 2147483647;
62 | files = (
63 | EAA8F6F31C98E12D96F7BF7B /* Pods_ChartProgressBar_ios.framework in Frameworks */,
64 | );
65 | runOnlyForDeploymentPostprocessing = 0;
66 | };
67 | 314B17501F8E2F3200D98FA3 /* Frameworks */ = {
68 | isa = PBXFrameworksBuildPhase;
69 | buildActionMask = 2147483647;
70 | files = (
71 | DBA26E2C66B2AF8F1F0E3444 /* Pods_ChartProgressBar_iosTests.framework in Frameworks */,
72 | );
73 | runOnlyForDeploymentPostprocessing = 0;
74 | };
75 | 314B175B1F8E2F3200D98FA3 /* Frameworks */ = {
76 | isa = PBXFrameworksBuildPhase;
77 | buildActionMask = 2147483647;
78 | files = (
79 | 7DC66FE83943405C815071D3 /* Pods_ChartProgressBar_iosUITests.framework in Frameworks */,
80 | );
81 | runOnlyForDeploymentPostprocessing = 0;
82 | };
83 | /* End PBXFrameworksBuildPhase section */
84 |
85 | /* Begin PBXGroup section */
86 | 314B17361F8E2F3200D98FA3 = {
87 | isa = PBXGroup;
88 | children = (
89 | 314B17411F8E2F3200D98FA3 /* ChartProgressBar-ios */,
90 | 314B17401F8E2F3200D98FA3 /* Products */,
91 | 95DEA82B613223E12268ADF5 /* Pods */,
92 | 98F8D8234D4F6858298C4163 /* Frameworks */,
93 | );
94 | sourceTree = "";
95 | };
96 | 314B17401F8E2F3200D98FA3 /* Products */ = {
97 | isa = PBXGroup;
98 | children = (
99 | 314B173F1F8E2F3200D98FA3 /* ChartProgressBar-ios.app */,
100 | 314B17531F8E2F3200D98FA3 /* ChartProgressBar-iosTests.xctest */,
101 | 314B175E1F8E2F3200D98FA3 /* ChartProgressBar-iosUITests.xctest */,
102 | );
103 | name = Products;
104 | sourceTree = "";
105 | };
106 | 314B17411F8E2F3200D98FA3 /* ChartProgressBar-ios */ = {
107 | isa = PBXGroup;
108 | children = (
109 | 314B17421F8E2F3200D98FA3 /* AppDelegate.swift */,
110 | 314B17461F8E2F3200D98FA3 /* Main.storyboard */,
111 | 314B17491F8E2F3200D98FA3 /* Assets.xcassets */,
112 | 314B174B1F8E2F3200D98FA3 /* LaunchScreen.storyboard */,
113 | 314B174E1F8E2F3200D98FA3 /* Info.plist */,
114 | EC43906820188121006FCCE8 /* MainViewController.swift */,
115 | );
116 | path = "ChartProgressBar-ios";
117 | sourceTree = "";
118 | };
119 | 95DEA82B613223E12268ADF5 /* Pods */ = {
120 | isa = PBXGroup;
121 | children = (
122 | 837CB41FCFD9684DE355B8FF /* Pods-ChartProgressBar-ios.debug.xcconfig */,
123 | 667E5473A6E520F3B3F9022D /* Pods-ChartProgressBar-ios.release.xcconfig */,
124 | A10D4C2FD28AD39764D35672 /* Pods-ChartProgressBar-iosTests.debug.xcconfig */,
125 | 527CFBB6E6CDF41FA67B50F7 /* Pods-ChartProgressBar-iosTests.release.xcconfig */,
126 | B0FBDF5DE41988772C0757AC /* Pods-ChartProgressBar-iosUITests.debug.xcconfig */,
127 | E3F6A60F0AF47CF0D9C9B2FF /* Pods-ChartProgressBar-iosUITests.release.xcconfig */,
128 | );
129 | name = Pods;
130 | sourceTree = "";
131 | };
132 | 98F8D8234D4F6858298C4163 /* Frameworks */ = {
133 | isa = PBXGroup;
134 | children = (
135 | 4F599CA2F2094272922B3FA7 /* Pods_ChartProgressBar_ios.framework */,
136 | A09E48B7228EF64EBC9087E0 /* Pods_ChartProgressBar_iosTests.framework */,
137 | 5C8C08ECFF76855180EA797F /* Pods_ChartProgressBar_iosUITests.framework */,
138 | );
139 | name = Frameworks;
140 | sourceTree = "";
141 | };
142 | /* End PBXGroup section */
143 |
144 | /* Begin PBXNativeTarget section */
145 | 314B173E1F8E2F3200D98FA3 /* ChartProgressBar-ios */ = {
146 | isa = PBXNativeTarget;
147 | buildConfigurationList = 314B17671F8E2F3200D98FA3 /* Build configuration list for PBXNativeTarget "ChartProgressBar-ios" */;
148 | buildPhases = (
149 | 4C8087F9E5DA101B6B380958 /* [CP] Check Pods Manifest.lock */,
150 | 314B173B1F8E2F3200D98FA3 /* Sources */,
151 | 314B173C1F8E2F3200D98FA3 /* Frameworks */,
152 | 314B173D1F8E2F3200D98FA3 /* Resources */,
153 | 5DFAB9EA4C2A0F92DE3489E0 /* [CP] Embed Pods Frameworks */,
154 | 1D39A80E9F6994004DE989D5 /* [CP] Copy Pods Resources */,
155 | );
156 | buildRules = (
157 | );
158 | dependencies = (
159 | );
160 | name = "ChartProgressBar-ios";
161 | productName = "ChartProgressBar-ios";
162 | productReference = 314B173F1F8E2F3200D98FA3 /* ChartProgressBar-ios.app */;
163 | productType = "com.apple.product-type.application";
164 | };
165 | 314B17521F8E2F3200D98FA3 /* ChartProgressBar-iosTests */ = {
166 | isa = PBXNativeTarget;
167 | buildConfigurationList = 314B176A1F8E2F3200D98FA3 /* Build configuration list for PBXNativeTarget "ChartProgressBar-iosTests" */;
168 | buildPhases = (
169 | C61F8DC9FBAECC675EEA5DE9 /* [CP] Check Pods Manifest.lock */,
170 | 314B174F1F8E2F3200D98FA3 /* Sources */,
171 | 314B17501F8E2F3200D98FA3 /* Frameworks */,
172 | 314B17511F8E2F3200D98FA3 /* Resources */,
173 | 66D6D9CB44EA9429BE05FEFC /* [CP] Embed Pods Frameworks */,
174 | 72212E8885C27144F23A6B0F /* [CP] Copy Pods Resources */,
175 | );
176 | buildRules = (
177 | );
178 | dependencies = (
179 | 314B17551F8E2F3200D98FA3 /* PBXTargetDependency */,
180 | );
181 | name = "ChartProgressBar-iosTests";
182 | productName = "ChartProgressBar-iosTests";
183 | productReference = 314B17531F8E2F3200D98FA3 /* ChartProgressBar-iosTests.xctest */;
184 | productType = "com.apple.product-type.bundle.unit-test";
185 | };
186 | 314B175D1F8E2F3200D98FA3 /* ChartProgressBar-iosUITests */ = {
187 | isa = PBXNativeTarget;
188 | buildConfigurationList = 314B176D1F8E2F3200D98FA3 /* Build configuration list for PBXNativeTarget "ChartProgressBar-iosUITests" */;
189 | buildPhases = (
190 | A8E89D90ACC664E99F3BBA9D /* [CP] Check Pods Manifest.lock */,
191 | 314B175A1F8E2F3200D98FA3 /* Sources */,
192 | 314B175B1F8E2F3200D98FA3 /* Frameworks */,
193 | 314B175C1F8E2F3200D98FA3 /* Resources */,
194 | 86E2D84D7A708A703528497E /* [CP] Embed Pods Frameworks */,
195 | F7E5E2FEE98F8663B1F72E0A /* [CP] Copy Pods Resources */,
196 | );
197 | buildRules = (
198 | );
199 | dependencies = (
200 | 314B17601F8E2F3200D98FA3 /* PBXTargetDependency */,
201 | );
202 | name = "ChartProgressBar-iosUITests";
203 | productName = "ChartProgressBar-iosUITests";
204 | productReference = 314B175E1F8E2F3200D98FA3 /* ChartProgressBar-iosUITests.xctest */;
205 | productType = "com.apple.product-type.bundle.ui-testing";
206 | };
207 | /* End PBXNativeTarget section */
208 |
209 | /* Begin PBXProject section */
210 | 314B17371F8E2F3200D98FA3 /* Project object */ = {
211 | isa = PBXProject;
212 | attributes = {
213 | LastSwiftUpdateCheck = 0830;
214 | LastUpgradeCheck = 0830;
215 | ORGANIZATIONNAME = "Hadi Dbouk";
216 | TargetAttributes = {
217 | 314B173E1F8E2F3200D98FA3 = {
218 | CreatedOnToolsVersion = 8.3.3;
219 | DevelopmentTeam = DVU3J4CJD5;
220 | ProvisioningStyle = Automatic;
221 | };
222 | 314B17521F8E2F3200D98FA3 = {
223 | CreatedOnToolsVersion = 8.3.3;
224 | ProvisioningStyle = Automatic;
225 | TestTargetID = 314B173E1F8E2F3200D98FA3;
226 | };
227 | 314B175D1F8E2F3200D98FA3 = {
228 | CreatedOnToolsVersion = 8.3.3;
229 | ProvisioningStyle = Automatic;
230 | TestTargetID = 314B173E1F8E2F3200D98FA3;
231 | };
232 | };
233 | };
234 | buildConfigurationList = 314B173A1F8E2F3200D98FA3 /* Build configuration list for PBXProject "ChartProgressBar-ios" */;
235 | compatibilityVersion = "Xcode 3.2";
236 | developmentRegion = English;
237 | hasScannedForEncodings = 0;
238 | knownRegions = (
239 | en,
240 | Base,
241 | );
242 | mainGroup = 314B17361F8E2F3200D98FA3;
243 | productRefGroup = 314B17401F8E2F3200D98FA3 /* Products */;
244 | projectDirPath = "";
245 | projectRoot = "";
246 | targets = (
247 | 314B173E1F8E2F3200D98FA3 /* ChartProgressBar-ios */,
248 | 314B17521F8E2F3200D98FA3 /* ChartProgressBar-iosTests */,
249 | 314B175D1F8E2F3200D98FA3 /* ChartProgressBar-iosUITests */,
250 | );
251 | };
252 | /* End PBXProject section */
253 |
254 | /* Begin PBXResourcesBuildPhase section */
255 | 314B173D1F8E2F3200D98FA3 /* Resources */ = {
256 | isa = PBXResourcesBuildPhase;
257 | buildActionMask = 2147483647;
258 | files = (
259 | 314B174D1F8E2F3200D98FA3 /* LaunchScreen.storyboard in Resources */,
260 | 314B174A1F8E2F3200D98FA3 /* Assets.xcassets in Resources */,
261 | 314B17481F8E2F3200D98FA3 /* Main.storyboard in Resources */,
262 | );
263 | runOnlyForDeploymentPostprocessing = 0;
264 | };
265 | 314B17511F8E2F3200D98FA3 /* Resources */ = {
266 | isa = PBXResourcesBuildPhase;
267 | buildActionMask = 2147483647;
268 | files = (
269 | );
270 | runOnlyForDeploymentPostprocessing = 0;
271 | };
272 | 314B175C1F8E2F3200D98FA3 /* Resources */ = {
273 | isa = PBXResourcesBuildPhase;
274 | buildActionMask = 2147483647;
275 | files = (
276 | );
277 | runOnlyForDeploymentPostprocessing = 0;
278 | };
279 | /* End PBXResourcesBuildPhase section */
280 |
281 | /* Begin PBXShellScriptBuildPhase section */
282 | 1D39A80E9F6994004DE989D5 /* [CP] Copy Pods Resources */ = {
283 | isa = PBXShellScriptBuildPhase;
284 | buildActionMask = 2147483647;
285 | files = (
286 | );
287 | inputPaths = (
288 | );
289 | name = "[CP] Copy Pods Resources";
290 | outputPaths = (
291 | );
292 | runOnlyForDeploymentPostprocessing = 0;
293 | shellPath = /bin/sh;
294 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ChartProgressBar-ios/Pods-ChartProgressBar-ios-resources.sh\"\n";
295 | showEnvVarsInLog = 0;
296 | };
297 | 4C8087F9E5DA101B6B380958 /* [CP] Check Pods Manifest.lock */ = {
298 | isa = PBXShellScriptBuildPhase;
299 | buildActionMask = 2147483647;
300 | files = (
301 | );
302 | inputPaths = (
303 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
304 | "${PODS_ROOT}/Manifest.lock",
305 | );
306 | name = "[CP] Check Pods Manifest.lock";
307 | outputPaths = (
308 | "$(DERIVED_FILE_DIR)/Pods-ChartProgressBar-ios-checkManifestLockResult.txt",
309 | );
310 | runOnlyForDeploymentPostprocessing = 0;
311 | shellPath = /bin/sh;
312 | 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";
313 | showEnvVarsInLog = 0;
314 | };
315 | 5DFAB9EA4C2A0F92DE3489E0 /* [CP] Embed Pods Frameworks */ = {
316 | isa = PBXShellScriptBuildPhase;
317 | buildActionMask = 2147483647;
318 | files = (
319 | );
320 | inputPaths = (
321 | "${SRCROOT}/Pods/Target Support Files/Pods-ChartProgressBar-ios/Pods-ChartProgressBar-ios-frameworks.sh",
322 | "${BUILT_PRODUCTS_DIR}/ChartProgressBar/ChartProgressBar.framework",
323 | );
324 | name = "[CP] Embed Pods Frameworks";
325 | outputPaths = (
326 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ChartProgressBar.framework",
327 | );
328 | runOnlyForDeploymentPostprocessing = 0;
329 | shellPath = /bin/sh;
330 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ChartProgressBar-ios/Pods-ChartProgressBar-ios-frameworks.sh\"\n";
331 | showEnvVarsInLog = 0;
332 | };
333 | 66D6D9CB44EA9429BE05FEFC /* [CP] Embed Pods Frameworks */ = {
334 | isa = PBXShellScriptBuildPhase;
335 | buildActionMask = 2147483647;
336 | files = (
337 | );
338 | inputPaths = (
339 | );
340 | name = "[CP] Embed Pods Frameworks";
341 | outputPaths = (
342 | );
343 | runOnlyForDeploymentPostprocessing = 0;
344 | shellPath = /bin/sh;
345 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ChartProgressBar-iosTests/Pods-ChartProgressBar-iosTests-frameworks.sh\"\n";
346 | showEnvVarsInLog = 0;
347 | };
348 | 72212E8885C27144F23A6B0F /* [CP] Copy Pods Resources */ = {
349 | isa = PBXShellScriptBuildPhase;
350 | buildActionMask = 2147483647;
351 | files = (
352 | );
353 | inputPaths = (
354 | );
355 | name = "[CP] Copy Pods Resources";
356 | outputPaths = (
357 | );
358 | runOnlyForDeploymentPostprocessing = 0;
359 | shellPath = /bin/sh;
360 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ChartProgressBar-iosTests/Pods-ChartProgressBar-iosTests-resources.sh\"\n";
361 | showEnvVarsInLog = 0;
362 | };
363 | 86E2D84D7A708A703528497E /* [CP] Embed Pods Frameworks */ = {
364 | isa = PBXShellScriptBuildPhase;
365 | buildActionMask = 2147483647;
366 | files = (
367 | );
368 | inputPaths = (
369 | );
370 | name = "[CP] Embed Pods Frameworks";
371 | outputPaths = (
372 | );
373 | runOnlyForDeploymentPostprocessing = 0;
374 | shellPath = /bin/sh;
375 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ChartProgressBar-iosUITests/Pods-ChartProgressBar-iosUITests-frameworks.sh\"\n";
376 | showEnvVarsInLog = 0;
377 | };
378 | A8E89D90ACC664E99F3BBA9D /* [CP] Check Pods Manifest.lock */ = {
379 | isa = PBXShellScriptBuildPhase;
380 | buildActionMask = 2147483647;
381 | files = (
382 | );
383 | inputPaths = (
384 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
385 | "${PODS_ROOT}/Manifest.lock",
386 | );
387 | name = "[CP] Check Pods Manifest.lock";
388 | outputPaths = (
389 | "$(DERIVED_FILE_DIR)/Pods-ChartProgressBar-iosUITests-checkManifestLockResult.txt",
390 | );
391 | runOnlyForDeploymentPostprocessing = 0;
392 | shellPath = /bin/sh;
393 | 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";
394 | showEnvVarsInLog = 0;
395 | };
396 | C61F8DC9FBAECC675EEA5DE9 /* [CP] Check Pods Manifest.lock */ = {
397 | isa = PBXShellScriptBuildPhase;
398 | buildActionMask = 2147483647;
399 | files = (
400 | );
401 | inputPaths = (
402 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
403 | "${PODS_ROOT}/Manifest.lock",
404 | );
405 | name = "[CP] Check Pods Manifest.lock";
406 | outputPaths = (
407 | "$(DERIVED_FILE_DIR)/Pods-ChartProgressBar-iosTests-checkManifestLockResult.txt",
408 | );
409 | runOnlyForDeploymentPostprocessing = 0;
410 | shellPath = /bin/sh;
411 | 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";
412 | showEnvVarsInLog = 0;
413 | };
414 | F7E5E2FEE98F8663B1F72E0A /* [CP] Copy Pods Resources */ = {
415 | isa = PBXShellScriptBuildPhase;
416 | buildActionMask = 2147483647;
417 | files = (
418 | );
419 | inputPaths = (
420 | );
421 | name = "[CP] Copy Pods Resources";
422 | outputPaths = (
423 | );
424 | runOnlyForDeploymentPostprocessing = 0;
425 | shellPath = /bin/sh;
426 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ChartProgressBar-iosUITests/Pods-ChartProgressBar-iosUITests-resources.sh\"\n";
427 | showEnvVarsInLog = 0;
428 | };
429 | /* End PBXShellScriptBuildPhase section */
430 |
431 | /* Begin PBXSourcesBuildPhase section */
432 | 314B173B1F8E2F3200D98FA3 /* Sources */ = {
433 | isa = PBXSourcesBuildPhase;
434 | buildActionMask = 2147483647;
435 | files = (
436 | 314B17431F8E2F3200D98FA3 /* AppDelegate.swift in Sources */,
437 | EC43906920188121006FCCE8 /* MainViewController.swift in Sources */,
438 | );
439 | runOnlyForDeploymentPostprocessing = 0;
440 | };
441 | 314B174F1F8E2F3200D98FA3 /* Sources */ = {
442 | isa = PBXSourcesBuildPhase;
443 | buildActionMask = 2147483647;
444 | files = (
445 | );
446 | runOnlyForDeploymentPostprocessing = 0;
447 | };
448 | 314B175A1F8E2F3200D98FA3 /* Sources */ = {
449 | isa = PBXSourcesBuildPhase;
450 | buildActionMask = 2147483647;
451 | files = (
452 | );
453 | runOnlyForDeploymentPostprocessing = 0;
454 | };
455 | /* End PBXSourcesBuildPhase section */
456 |
457 | /* Begin PBXTargetDependency section */
458 | 314B17551F8E2F3200D98FA3 /* PBXTargetDependency */ = {
459 | isa = PBXTargetDependency;
460 | target = 314B173E1F8E2F3200D98FA3 /* ChartProgressBar-ios */;
461 | targetProxy = 314B17541F8E2F3200D98FA3 /* PBXContainerItemProxy */;
462 | };
463 | 314B17601F8E2F3200D98FA3 /* PBXTargetDependency */ = {
464 | isa = PBXTargetDependency;
465 | target = 314B173E1F8E2F3200D98FA3 /* ChartProgressBar-ios */;
466 | targetProxy = 314B175F1F8E2F3200D98FA3 /* PBXContainerItemProxy */;
467 | };
468 | /* End PBXTargetDependency section */
469 |
470 | /* Begin PBXVariantGroup section */
471 | 314B17461F8E2F3200D98FA3 /* Main.storyboard */ = {
472 | isa = PBXVariantGroup;
473 | children = (
474 | 314B17471F8E2F3200D98FA3 /* Base */,
475 | );
476 | name = Main.storyboard;
477 | sourceTree = "";
478 | };
479 | 314B174B1F8E2F3200D98FA3 /* LaunchScreen.storyboard */ = {
480 | isa = PBXVariantGroup;
481 | children = (
482 | 314B174C1F8E2F3200D98FA3 /* Base */,
483 | );
484 | name = LaunchScreen.storyboard;
485 | sourceTree = "";
486 | };
487 | /* End PBXVariantGroup section */
488 |
489 | /* Begin XCBuildConfiguration section */
490 | 314B17651F8E2F3200D98FA3 /* Debug */ = {
491 | isa = XCBuildConfiguration;
492 | buildSettings = {
493 | ALWAYS_SEARCH_USER_PATHS = NO;
494 | CLANG_ANALYZER_NONNULL = YES;
495 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
496 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
497 | CLANG_CXX_LIBRARY = "libc++";
498 | CLANG_ENABLE_MODULES = YES;
499 | CLANG_ENABLE_OBJC_ARC = YES;
500 | CLANG_WARN_BOOL_CONVERSION = YES;
501 | CLANG_WARN_CONSTANT_CONVERSION = YES;
502 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
503 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
504 | CLANG_WARN_EMPTY_BODY = YES;
505 | CLANG_WARN_ENUM_CONVERSION = YES;
506 | CLANG_WARN_INFINITE_RECURSION = YES;
507 | CLANG_WARN_INT_CONVERSION = YES;
508 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
509 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
510 | CLANG_WARN_UNREACHABLE_CODE = YES;
511 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
512 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
513 | COPY_PHASE_STRIP = NO;
514 | DEBUG_INFORMATION_FORMAT = dwarf;
515 | ENABLE_STRICT_OBJC_MSGSEND = YES;
516 | ENABLE_TESTABILITY = YES;
517 | GCC_C_LANGUAGE_STANDARD = gnu99;
518 | GCC_DYNAMIC_NO_PIC = NO;
519 | GCC_NO_COMMON_BLOCKS = YES;
520 | GCC_OPTIMIZATION_LEVEL = 0;
521 | GCC_PREPROCESSOR_DEFINITIONS = (
522 | "DEBUG=1",
523 | "$(inherited)",
524 | );
525 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
526 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
527 | GCC_WARN_UNDECLARED_SELECTOR = YES;
528 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
529 | GCC_WARN_UNUSED_FUNCTION = YES;
530 | GCC_WARN_UNUSED_VARIABLE = YES;
531 | IPHONEOS_DEPLOYMENT_TARGET = 10.3;
532 | MTL_ENABLE_DEBUG_INFO = YES;
533 | ONLY_ACTIVE_ARCH = YES;
534 | SDKROOT = iphoneos;
535 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
536 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
537 | TARGETED_DEVICE_FAMILY = "1,2";
538 | };
539 | name = Debug;
540 | };
541 | 314B17661F8E2F3200D98FA3 /* Release */ = {
542 | isa = XCBuildConfiguration;
543 | buildSettings = {
544 | ALWAYS_SEARCH_USER_PATHS = NO;
545 | CLANG_ANALYZER_NONNULL = YES;
546 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
547 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
548 | CLANG_CXX_LIBRARY = "libc++";
549 | CLANG_ENABLE_MODULES = YES;
550 | CLANG_ENABLE_OBJC_ARC = YES;
551 | CLANG_WARN_BOOL_CONVERSION = YES;
552 | CLANG_WARN_CONSTANT_CONVERSION = YES;
553 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
554 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
555 | CLANG_WARN_EMPTY_BODY = YES;
556 | CLANG_WARN_ENUM_CONVERSION = YES;
557 | CLANG_WARN_INFINITE_RECURSION = YES;
558 | CLANG_WARN_INT_CONVERSION = YES;
559 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
560 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
561 | CLANG_WARN_UNREACHABLE_CODE = YES;
562 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
563 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
564 | COPY_PHASE_STRIP = NO;
565 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
566 | ENABLE_NS_ASSERTIONS = NO;
567 | ENABLE_STRICT_OBJC_MSGSEND = YES;
568 | GCC_C_LANGUAGE_STANDARD = gnu99;
569 | GCC_NO_COMMON_BLOCKS = YES;
570 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
571 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
572 | GCC_WARN_UNDECLARED_SELECTOR = YES;
573 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
574 | GCC_WARN_UNUSED_FUNCTION = YES;
575 | GCC_WARN_UNUSED_VARIABLE = YES;
576 | IPHONEOS_DEPLOYMENT_TARGET = 10.3;
577 | MTL_ENABLE_DEBUG_INFO = NO;
578 | SDKROOT = iphoneos;
579 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
580 | TARGETED_DEVICE_FAMILY = "1,2";
581 | VALIDATE_PRODUCT = YES;
582 | };
583 | name = Release;
584 | };
585 | 314B17681F8E2F3200D98FA3 /* Debug */ = {
586 | isa = XCBuildConfiguration;
587 | baseConfigurationReference = 837CB41FCFD9684DE355B8FF /* Pods-ChartProgressBar-ios.debug.xcconfig */;
588 | buildSettings = {
589 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
590 | DEVELOPMENT_TEAM = DVU3J4CJD5;
591 | INFOPLIST_FILE = "ChartProgressBar-ios/Info.plist";
592 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
593 | PRODUCT_BUNDLE_IDENTIFIER = "beyondtec.ChartProgressBar-ios";
594 | PRODUCT_NAME = "$(TARGET_NAME)";
595 | SWIFT_VERSION = 3.0;
596 | };
597 | name = Debug;
598 | };
599 | 314B17691F8E2F3200D98FA3 /* Release */ = {
600 | isa = XCBuildConfiguration;
601 | baseConfigurationReference = 667E5473A6E520F3B3F9022D /* Pods-ChartProgressBar-ios.release.xcconfig */;
602 | buildSettings = {
603 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
604 | DEVELOPMENT_TEAM = DVU3J4CJD5;
605 | INFOPLIST_FILE = "ChartProgressBar-ios/Info.plist";
606 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
607 | PRODUCT_BUNDLE_IDENTIFIER = "beyondtec.ChartProgressBar-ios";
608 | PRODUCT_NAME = "$(TARGET_NAME)";
609 | SWIFT_VERSION = 3.0;
610 | };
611 | name = Release;
612 | };
613 | 314B176B1F8E2F3200D98FA3 /* Debug */ = {
614 | isa = XCBuildConfiguration;
615 | baseConfigurationReference = A10D4C2FD28AD39764D35672 /* Pods-ChartProgressBar-iosTests.debug.xcconfig */;
616 | buildSettings = {
617 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
618 | BUNDLE_LOADER = "$(TEST_HOST)";
619 | INFOPLIST_FILE = "ChartProgressBar-iosTests/Info.plist";
620 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
621 | PRODUCT_BUNDLE_IDENTIFIER = "beyondtec.ChartProgressBar-iosTests";
622 | PRODUCT_NAME = "$(TARGET_NAME)";
623 | SWIFT_VERSION = 3.0;
624 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ChartProgressBar-ios.app/ChartProgressBar-ios";
625 | };
626 | name = Debug;
627 | };
628 | 314B176C1F8E2F3200D98FA3 /* Release */ = {
629 | isa = XCBuildConfiguration;
630 | baseConfigurationReference = 527CFBB6E6CDF41FA67B50F7 /* Pods-ChartProgressBar-iosTests.release.xcconfig */;
631 | buildSettings = {
632 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
633 | BUNDLE_LOADER = "$(TEST_HOST)";
634 | INFOPLIST_FILE = "ChartProgressBar-iosTests/Info.plist";
635 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
636 | PRODUCT_BUNDLE_IDENTIFIER = "beyondtec.ChartProgressBar-iosTests";
637 | PRODUCT_NAME = "$(TARGET_NAME)";
638 | SWIFT_VERSION = 3.0;
639 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ChartProgressBar-ios.app/ChartProgressBar-ios";
640 | };
641 | name = Release;
642 | };
643 | 314B176E1F8E2F3200D98FA3 /* Debug */ = {
644 | isa = XCBuildConfiguration;
645 | baseConfigurationReference = B0FBDF5DE41988772C0757AC /* Pods-ChartProgressBar-iosUITests.debug.xcconfig */;
646 | buildSettings = {
647 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
648 | INFOPLIST_FILE = "ChartProgressBar-iosUITests/Info.plist";
649 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
650 | PRODUCT_BUNDLE_IDENTIFIER = "beyondtec.ChartProgressBar-iosUITests";
651 | PRODUCT_NAME = "$(TARGET_NAME)";
652 | SWIFT_VERSION = 3.0;
653 | TEST_TARGET_NAME = "ChartProgressBar-ios";
654 | };
655 | name = Debug;
656 | };
657 | 314B176F1F8E2F3200D98FA3 /* Release */ = {
658 | isa = XCBuildConfiguration;
659 | baseConfigurationReference = E3F6A60F0AF47CF0D9C9B2FF /* Pods-ChartProgressBar-iosUITests.release.xcconfig */;
660 | buildSettings = {
661 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
662 | INFOPLIST_FILE = "ChartProgressBar-iosUITests/Info.plist";
663 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
664 | PRODUCT_BUNDLE_IDENTIFIER = "beyondtec.ChartProgressBar-iosUITests";
665 | PRODUCT_NAME = "$(TARGET_NAME)";
666 | SWIFT_VERSION = 3.0;
667 | TEST_TARGET_NAME = "ChartProgressBar-ios";
668 | };
669 | name = Release;
670 | };
671 | /* End XCBuildConfiguration section */
672 |
673 | /* Begin XCConfigurationList section */
674 | 314B173A1F8E2F3200D98FA3 /* Build configuration list for PBXProject "ChartProgressBar-ios" */ = {
675 | isa = XCConfigurationList;
676 | buildConfigurations = (
677 | 314B17651F8E2F3200D98FA3 /* Debug */,
678 | 314B17661F8E2F3200D98FA3 /* Release */,
679 | );
680 | defaultConfigurationIsVisible = 0;
681 | defaultConfigurationName = Release;
682 | };
683 | 314B17671F8E2F3200D98FA3 /* Build configuration list for PBXNativeTarget "ChartProgressBar-ios" */ = {
684 | isa = XCConfigurationList;
685 | buildConfigurations = (
686 | 314B17681F8E2F3200D98FA3 /* Debug */,
687 | 314B17691F8E2F3200D98FA3 /* Release */,
688 | );
689 | defaultConfigurationIsVisible = 0;
690 | defaultConfigurationName = Release;
691 | };
692 | 314B176A1F8E2F3200D98FA3 /* Build configuration list for PBXNativeTarget "ChartProgressBar-iosTests" */ = {
693 | isa = XCConfigurationList;
694 | buildConfigurations = (
695 | 314B176B1F8E2F3200D98FA3 /* Debug */,
696 | 314B176C1F8E2F3200D98FA3 /* Release */,
697 | );
698 | defaultConfigurationIsVisible = 0;
699 | defaultConfigurationName = Release;
700 | };
701 | 314B176D1F8E2F3200D98FA3 /* Build configuration list for PBXNativeTarget "ChartProgressBar-iosUITests" */ = {
702 | isa = XCConfigurationList;
703 | buildConfigurations = (
704 | 314B176E1F8E2F3200D98FA3 /* Debug */,
705 | 314B176F1F8E2F3200D98FA3 /* Release */,
706 | );
707 | defaultConfigurationIsVisible = 0;
708 | defaultConfigurationName = Release;
709 | };
710 | /* End XCConfigurationList section */
711 | };
712 | rootObject = 314B17371F8E2F3200D98FA3 /* Project object */;
713 | }
714 |
--------------------------------------------------------------------------------