├── JXPageControl ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── Jump │ ├── JXPageControlLine.swift │ ├── JXPageControlBoldLine.swift │ ├── JXPageControlEllipse.swift │ └── JXPageControlJump.swift │ ├── Common │ ├── JXPageControlType.swift │ ├── JXPageControlTool.swift │ └── JXPageControlBase.swift │ └── Transform │ ├── JXPageControlChameleon.swift │ ├── JXPageControlExchange.swift │ ├── JXPageControlFill.swift │ └── JXPageControlScale.swift ├── _Pods.xcodeproj ├── Images ├── fill.gif ├── jump.gif ├── scare.gif ├── Xib_01.png ├── Xib_02.png ├── chamelon.gif └── exchange.gif ├── Example ├── Podfile ├── JXPageControl │ ├── JXPageControl_Example-Bridging-Header.h │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Demo │ │ ├── FillVC.swift │ │ ├── ScareVC.swift │ │ ├── ExchangeVC.swift │ │ ├── JumpVC.swift │ │ └── ChamelonVC.swift │ ├── Info.plist │ ├── AppDelegate.swift │ └── Base.lproj │ │ └── LaunchScreen.xib ├── Pods │ ├── Target Support Files │ │ ├── JXPageControl │ │ │ ├── JXPageControl.modulemap │ │ │ ├── JXPageControl-dummy.m │ │ │ ├── JXPageControl-prefix.pch │ │ │ ├── JXPageControl-umbrella.h │ │ │ ├── JXPageControl.xcconfig │ │ │ └── JXPageControl-Info.plist │ │ └── Pods-JXPageControl_Example │ │ │ ├── Pods-JXPageControl_Example.modulemap │ │ │ ├── Pods-JXPageControl_Example-dummy.m │ │ │ ├── Pods-JXPageControl_Example-umbrella.h │ │ │ ├── Pods-JXPageControl_Example.debug.xcconfig │ │ │ ├── Pods-JXPageControl_Example.release.xcconfig │ │ │ ├── Pods-JXPageControl_Example-Info.plist │ │ │ ├── Pods-JXPageControl_Example-acknowledgements.markdown │ │ │ ├── Pods-JXPageControl_Example-acknowledgements.plist │ │ │ └── Pods-JXPageControl_Example-frameworks.sh │ ├── Manifest.lock │ ├── Local Podspecs │ │ └── JXPageControl.podspec.json │ └── Pods.xcodeproj │ │ └── project.pbxproj ├── JXPageControl.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── JXPageControl-Example.xcscheme │ └── project.pbxproj ├── JXPageControl.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── Podfile.lock └── Tests │ ├── Info.plist │ └── Tests.swift ├── ReleaseNote.md ├── .travis.yml ├── .gitignore ├── LICENSE ├── JXPageControl.podspec └── README.md /JXPageControl/Assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /JXPageControl/Classes/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /Images/fill.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Coder-TanJX/JXPageControl/HEAD/Images/fill.gif -------------------------------------------------------------------------------- /Images/jump.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Coder-TanJX/JXPageControl/HEAD/Images/jump.gif -------------------------------------------------------------------------------- /Images/scare.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Coder-TanJX/JXPageControl/HEAD/Images/scare.gif -------------------------------------------------------------------------------- /Images/Xib_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Coder-TanJX/JXPageControl/HEAD/Images/Xib_01.png -------------------------------------------------------------------------------- /Images/Xib_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Coder-TanJX/JXPageControl/HEAD/Images/Xib_02.png -------------------------------------------------------------------------------- /Images/chamelon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Coder-TanJX/JXPageControl/HEAD/Images/chamelon.gif -------------------------------------------------------------------------------- /Images/exchange.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Coder-TanJX/JXPageControl/HEAD/Images/exchange.gif -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'JXPageControl_Example' do 4 | pod 'JXPageControl', :path => '../' 5 | end 6 | -------------------------------------------------------------------------------- /Example/JXPageControl/JXPageControl_Example-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JXPageControl/JXPageControl.modulemap: -------------------------------------------------------------------------------- 1 | framework module JXPageControl { 2 | umbrella header "JXPageControl-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JXPageControl/JXPageControl-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_JXPageControl : NSObject 3 | @end 4 | @implementation PodsDummy_JXPageControl 5 | @end 6 | -------------------------------------------------------------------------------- /Example/JXPageControl.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_JXPageControl_Example { 2 | umbrella header "Pods-JXPageControl_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_JXPageControl_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_JXPageControl_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JXPageControl/JXPageControl-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/JXPageControl.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/JXPageControl.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ReleaseNote.md: -------------------------------------------------------------------------------- 1 | # JXPageControl release notes 2 | 3 | ## 0.1.4 4 | * **日期**:2021-08-26 5 | * **tag**: 0.1.4 6 | * **commit**: `0385f59c7415be334a2` 7 | * **主要更新**: 8 | * 修复:适配Swift5。 9 | 10 | 11 | ## 0.1.5 12 | * **日期**:2021-09-20 13 | * **tag**: 0.1.5 14 | * **commit**: `f1dd0f57028c93c5f239` 15 | * **主要更新**: 16 | * 修复:部分动画未调用Catransaction.begin()导致横竖屏崩溃。 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JXPageControl/JXPageControl-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 JXPageControlVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char JXPageControlVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_JXPageControl_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_JXPageControl_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /JXPageControl/Classes/Jump/JXPageControlLine.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JXPageControlLine.swift 3 | // JXPageControl_Example 4 | // 5 | // Created by 谭家祥 on 2019/6/8. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @IBDesignable open class JXPageControlLine: JXPageControlJump { 12 | 13 | override open func setBase() { 14 | super.setBase() 15 | indicatorSize = CGSize(width: 15, height: 2) 16 | isAnimation = false 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /JXPageControl/Classes/Jump/JXPageControlBoldLine.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JXPageControlBoldLine.swift 3 | // JXPageControl_Example 4 | // 5 | // Created by 谭家祥 on 2019/6/9. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @IBDesignable open class JXPageControlBoldLine: JXPageControlJump { 12 | 13 | override open func setBase() { 14 | super.setBase() 15 | indicatorSize = CGSize(width: 15, height: 6) 16 | isAnimation = false 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JXPageControl/JXPageControl.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/JXPageControl 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/JXPageControl.xcworkspace -scheme JXPageControl-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /JXPageControl/Classes/Jump/JXPageControlEllipse.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JXPageControlEllipse.swift 3 | // JXPageControl_Example 4 | // 5 | // Created by 谭家祥 on 2019/6/9. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | //private let kMinContentSize = CGSize(width: 2, height: 2) 13 | 14 | @IBDesignable open class JXPageControlEllipse: JXPageControlJump { 15 | 16 | override open func setBase() { 17 | super.setBase() 18 | inactiveSize = CGSize(width: 6, height: 6) 19 | activeSize = CGSize(width: 15, height: 6) 20 | columnSpacing = 0 21 | isAnimation = false 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - JXPageControl (0.1.0): 3 | - JXPageControl/Common (= 0.1.0) 4 | - JXPageControl/Jump (= 0.1.0) 5 | - JXPageControl/Transform (= 0.1.0) 6 | - JXPageControl/Common (0.1.0) 7 | - JXPageControl/Jump (0.1.0): 8 | - JXPageControl/Common 9 | - JXPageControl/Transform (0.1.0): 10 | - JXPageControl/Common 11 | 12 | DEPENDENCIES: 13 | - JXPageControl (from `../`) 14 | 15 | EXTERNAL SOURCES: 16 | JXPageControl: 17 | :path: "../" 18 | 19 | SPEC CHECKSUMS: 20 | JXPageControl: 4371b14a59db68ac8faeb6189139789355bec289 21 | 22 | PODFILE CHECKSUM: fe75018273d3f91d83be98cbb7f354c35d3b9731 23 | 24 | COCOAPODS: 1.6.1 25 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - JXPageControl (0.1.0): 3 | - JXPageControl/Common (= 0.1.0) 4 | - JXPageControl/Jump (= 0.1.0) 5 | - JXPageControl/Transform (= 0.1.0) 6 | - JXPageControl/Common (0.1.0) 7 | - JXPageControl/Jump (0.1.0): 8 | - JXPageControl/Common 9 | - JXPageControl/Transform (0.1.0): 10 | - JXPageControl/Common 11 | 12 | DEPENDENCIES: 13 | - JXPageControl (from `../`) 14 | 15 | EXTERNAL SOURCES: 16 | JXPageControl: 17 | :path: "../" 18 | 19 | SPEC CHECKSUMS: 20 | JXPageControl: 4371b14a59db68ac8faeb6189139789355bec289 21 | 22 | PODFILE CHECKSUM: fe75018273d3f91d83be98cbb7f354c35d3b9731 23 | 24 | COCOAPODS: 1.6.1 25 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/JXPageControl" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/JXPageControl/JXPageControl.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "JXPageControl" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/JXPageControl" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/JXPageControl/JXPageControl.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "JXPageControl" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | //import JXPageControl 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JXPageControl/JXPageControl-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2019 bboyXFX 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Example/JXPageControl/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/JXPageControl/Demo/FillVC.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FillVC.swift 3 | // JXPageControl_Example 4 | // 5 | // Created by 谭家祥 on 2019/7/13. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import JXPageControl 11 | 12 | class FillVC: UIViewController { 13 | 14 | @IBOutlet weak var scrollView: UIScrollView! 15 | 16 | @IBOutlet weak var `default`: JXPageControlFill! 17 | @IBOutlet weak var inactiveHollow: JXPageControlFill! 18 | 19 | override func viewDidLoad() { 20 | super.viewDidLoad() 21 | scrollView.delegate = self 22 | } 23 | 24 | deinit { 25 | print("\(#function ) --> \(#file)") 26 | } 27 | 28 | } 29 | 30 | extension FillVC: UIScrollViewDelegate { 31 | func scrollViewDidScroll(_ scrollView: UIScrollView) { 32 | let progress = scrollView.contentOffset.x / scrollView.bounds.width 33 | // let currentPage = Int(round(progress)) 34 | 35 | // 方式一 36 | `default`.progress = progress 37 | inactiveHollow.progress = progress 38 | 39 | // 方式二 40 | // `default`.currentPage = currentPage 41 | // inactiveHollow.currentPage = currentPage 42 | 43 | 44 | } 45 | 46 | } 47 | 48 | -------------------------------------------------------------------------------- /Example/JXPageControl/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## JXPageControl 5 | 6 | Copyright (c) 2019 bboyXFX 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/JXPageControl.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "JXPageControl", 3 | "version": "0.1.0", 4 | "summary": "Custom UIPageControl: supports multiple animations, layouts", 5 | "description": "Custom UIPageControl: a most complete PageControl framework that supports multiple animations and layouts.", 6 | "homepage": "https://github.com/Code-TanJX", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "Code-TanJX": "Code_TanJX@163.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/Code-TanJX/JXPageControl", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "swift_version": "4.0", 22 | "subspecs": [ 23 | { 24 | "name": "Common", 25 | "source_files": "JXPageControl/Classes/Common/**/*", 26 | "public_header_files": "JXPageControl/Classes/Common/**/*.h" 27 | }, 28 | { 29 | "name": "Jump", 30 | "source_files": "JXPageControl/Classes/Jump/**/*", 31 | "public_header_files": "JXPageControl/Classes/Jump/**/*.h", 32 | "dependencies": { 33 | "JXPageControl/Common": [ 34 | 35 | ] 36 | } 37 | }, 38 | { 39 | "name": "Transform", 40 | "source_files": "JXPageControl/Classes/Transform/**/*", 41 | "public_header_files": "JXPageControl/Classes/Transform/**/*.h", 42 | "dependencies": { 43 | "JXPageControl/Common": [ 44 | 45 | ] 46 | } 47 | } 48 | ] 49 | } 50 | -------------------------------------------------------------------------------- /Example/JXPageControl/Demo/ScareVC.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ScareVC.swift 3 | // JXPageControl_Example 4 | // 5 | // Created by 谭家祥 on 2019/7/12. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import JXPageControl 11 | 12 | class ScareVC: UIViewController { 13 | 14 | 15 | @IBOutlet weak var scrollView: UIScrollView! 16 | 17 | @IBOutlet weak var `default`: JXPageControlScale! 18 | @IBOutlet weak var inactivehollow: JXPageControlScale! 19 | @IBOutlet weak var allHollow: JXPageControlScale! 20 | @IBOutlet weak var toSmall: JXPageControlScale! 21 | @IBOutlet weak var toEllipe: JXPageControlScale! 22 | @IBOutlet weak var toCircle: JXPageControlScale! 23 | 24 | override func viewDidLoad() { 25 | super.viewDidLoad() 26 | scrollView.delegate = self 27 | } 28 | 29 | deinit { 30 | print("\(#function ) --> \(#file)") 31 | } 32 | 33 | } 34 | 35 | extension ScareVC: UIScrollViewDelegate { 36 | func scrollViewDidScroll(_ scrollView: UIScrollView) { 37 | let progress = scrollView.contentOffset.x / scrollView.bounds.width 38 | let currentPage = Int(round(progress)) 39 | 40 | // 方式一 41 | `default`.progress = progress 42 | inactivehollow.progress = progress 43 | allHollow.progress = progress 44 | toSmall.progress = progress 45 | toEllipe.progress = progress 46 | toCircle.progress = progress 47 | 48 | 49 | // 方式二 50 | // `default`.currentPage = currentPage 51 | // inactivehollow.currentPage = currentPage 52 | // allHollow.currentPage = currentPage 53 | // toSmall.currentPage = currentPage 54 | // toEllipe.currentPage = currentPage 55 | // toCircle.currentPage = currentPage 56 | 57 | 58 | } 59 | 60 | } 61 | 62 | -------------------------------------------------------------------------------- /Example/JXPageControl/Demo/ExchangeVC.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ExchangeVC.swift 3 | // JXPageControl_Example 4 | // 5 | // Created by 谭家祥 on 2019/7/13. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import JXPageControl 11 | 12 | class ExchangeVC: UIViewController { 13 | 14 | @IBOutlet weak var scrollView: UIScrollView! 15 | 16 | @IBOutlet weak var `default`: JXPageControlExchange! 17 | @IBOutlet weak var inactivehollow: JXPageControlExchange! 18 | @IBOutlet weak var activehollow: JXPageControlExchange! 19 | @IBOutlet weak var allHollow: JXPageControlExchange! 20 | 21 | @IBOutlet weak var toEllipe: JXPageControlExchange! 22 | @IBOutlet weak var toCircle: JXPageControlExchange! 23 | 24 | override func viewDidLoad() { 25 | super.viewDidLoad() 26 | scrollView.delegate = self 27 | } 28 | 29 | deinit { 30 | print("\(#function ) --> \(#file)") 31 | } 32 | } 33 | 34 | extension ExchangeVC: UIScrollViewDelegate { 35 | func scrollViewDidScroll(_ scrollView: UIScrollView) { 36 | let progress = scrollView.contentOffset.x / scrollView.bounds.width 37 | let currentPage = Int(round(progress)) 38 | 39 | // 方式一 40 | `default`.progress = progress 41 | inactivehollow.progress = progress 42 | activehollow.progress = progress 43 | allHollow.progress = progress 44 | toEllipe.progress = progress 45 | toCircle.progress = progress 46 | 47 | 48 | // 方式二 49 | // `default`.currentPage = currentPage 50 | // inactivehollow.currentPage = currentPage 51 | // activehollow.currentPage = currentPage 52 | // allHollow.currentPage = currentPage 53 | // toEllipe.currentPage = currentPage 54 | // toCircle.currentPage = currentPage 55 | 56 | 57 | } 58 | 59 | } 60 | 61 | 62 | -------------------------------------------------------------------------------- /JXPageControl.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint JXPageControl.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'JXPageControl' 11 | s.version = '0.1.5' 12 | s.summary = 'Custom UIPageControl: supports multiple animations, layouts' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = 'Custom UIPageControl: a most complete PageControl framework that supports multiple animations and layouts.' 21 | 22 | s.homepage = 'https://github.com/Code-TanJX' 23 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 24 | s.license = { :type => 'MIT', :file => 'LICENSE' } 25 | s.author = { 'Code-TanJX' => 'Code_TanJX@163.com' } 26 | s.source = { :git => 'https://github.com/Code-TanJX/JXPageControl.git', :tag => s.version.to_s } 27 | # s.social_media_url = 'https://twitter.com/' 28 | 29 | s.ios.deployment_target = '8.0' 30 | 31 | 32 | if s.respond_to? 'swift_version' 33 | s.swift_version = "5.0" 34 | end 35 | 36 | if s.respond_to? 'swift_versions' 37 | s.swift_versions = ['4.0', '4.2', '5.0'] 38 | end 39 | 40 | s.subspec 'Common' do |ss| 41 | ss.source_files = 'JXPageControl/Classes/Common/**/*' 42 | end 43 | 44 | s.subspec 'Jump' do |ss| 45 | ss.source_files = 'JXPageControl/Classes/Jump/**/*' 46 | ss.dependency 'JXPageControl/Common' 47 | end 48 | 49 | s.subspec 'Transform' do |ss| 50 | ss.source_files = 'JXPageControl/Classes/Transform/**/*' 51 | ss.dependency 'JXPageControl/Common' 52 | end 53 | 54 | 55 | end 56 | -------------------------------------------------------------------------------- /Example/JXPageControl/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // JXPageControl 4 | // 5 | // Created by bboyXFX on 06/07/2019. 6 | // Copyright (c) 2019 bboyXFX. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /JXPageControl/Classes/Common/JXPageControlType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JXPageControlType.swift 3 | // JXPageControl 4 | // 5 | // Created by 谭家祥 on 2019/6/7. 6 | // 7 | 8 | import UIKit 9 | 10 | let kMinItemWidth: CGFloat = 2.0 11 | let kMinItemHeight: CGFloat = 2.0 12 | 13 | public class JXPageControlAlignment: NSObject { 14 | 15 | public enum JXHorizonAlignment : Int { 16 | case left 17 | case center 18 | case right 19 | } 20 | 21 | public enum JXVerticalAlignment : Int { 22 | case top 23 | case center 24 | case bottom 25 | } 26 | 27 | var horizon: JXHorizonAlignment 28 | var vertical: JXVerticalAlignment 29 | 30 | public init(_ horizon: JXHorizonAlignment, 31 | _ vertical: JXVerticalAlignment) { 32 | self.horizon = horizon 33 | self.vertical = vertical 34 | } 35 | } 36 | 37 | public protocol JXPageControlType { 38 | 39 | /// Default is 0 40 | var numberOfPages: Int { get set } 41 | 42 | /// Default is 0. value pinned to 0..numberOfPages-1 43 | var currentPage: Int { get set } 44 | 45 | /// Default is 0.0. value pinned to 0.0..numberOfPages-1 46 | var progress: CGFloat { get set} 47 | 48 | /// Hide the the indicator if there is only one page. default is NO 49 | var hidesForSinglePage: Bool { get set } 50 | 51 | /// Inactive item tint color 52 | var inactiveColor: UIColor { get set } 53 | 54 | /// Active indicator ting color 55 | var activeColor: UIColor { get set } 56 | 57 | /// Inactive indicator size 58 | var inactiveSize: CGSize { get set } 59 | 60 | /// Active indicator size 61 | var activeSize: CGSize { get set } 62 | 63 | /// Sets the size of all indicators 64 | var indicatorSize: CGSize { get set } 65 | 66 | /// Column spacing 67 | var columnSpacing: CGFloat { get set } 68 | 69 | /// Content location 70 | var contentAlignment: JXPageControlAlignment { get set } 71 | 72 | /// The content location of the system UIView 73 | var contentMode: UIView.ContentMode { get set } 74 | 75 | /// Inactive hollow figure 76 | var isInactiveHollow: Bool { get set } 77 | 78 | /// Active hollow figure 79 | var isActiveHollow: Bool { get set } 80 | 81 | /// Refresh the data and UI again 82 | func reload() 83 | } 84 | 85 | 86 | 87 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2019 bboyXFX <jaixiang.tan@net263.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | JXPageControl 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/JXPageControl/Demo/JumpVC.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JumpVC.swift 3 | // JXPageControl_Example 4 | // 5 | // Created by 谭家祥 on 2019/7/12. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import JXPageControl 11 | 12 | class JumpVC: UIViewController { 13 | 14 | @IBOutlet weak var scrollView: UIScrollView! 15 | 16 | @IBOutlet weak var `default`: JXPageControlJump! 17 | @IBOutlet weak var NoFlexble: JXPageControlJump! 18 | @IBOutlet weak var NoAnimation: JXPageControlJump! 19 | @IBOutlet weak var NoAnimationAndFlexble: JXPageControlJump! 20 | 21 | @IBOutlet weak var inactiveHollow: JXPageControlJump! 22 | @IBOutlet weak var activeHollow: JXPageControlJump! 23 | @IBOutlet weak var allHollow: JXPageControlJump! 24 | 25 | @IBOutlet weak var smallActive: JXPageControlJump! 26 | @IBOutlet weak var line: JXPageControlJump! 27 | @IBOutlet weak var boldLine: JXPageControlJump! 28 | @IBOutlet weak var ellipse: JXPageControlJump! 29 | 30 | 31 | override func viewDidLoad() { 32 | super.viewDidLoad() 33 | 34 | self.automaticallyAdjustsScrollViewInsets = false 35 | scrollView.delegate = self 36 | } 37 | 38 | deinit { 39 | print("\(#function ) --> \(#file)") 40 | } 41 | 42 | } 43 | 44 | extension JumpVC: UIScrollViewDelegate { 45 | func scrollViewDidScroll(_ scrollView: UIScrollView) { 46 | let progress = scrollView.contentOffset.x / scrollView.bounds.width 47 | let currentPage = Int(round(progress)) 48 | 49 | // 方式一 50 | `default`.progress = progress 51 | NoFlexble.progress = progress 52 | NoAnimation.progress = progress 53 | NoAnimationAndFlexble.progress = progress 54 | inactiveHollow.progress = progress 55 | activeHollow.progress = progress 56 | allHollow.progress = progress 57 | smallActive.progress = progress 58 | line.progress = progress 59 | boldLine.progress = progress 60 | ellipse.progress = progress 61 | 62 | // 方式二 63 | // `default`.currentPage = currentPage 64 | // NoFlexble.currentPage = currentPage 65 | // NoAnimation.currentPage = currentPage 66 | // NoAnimationAndFlexble.currentPage = currentPage 67 | // inactiveHollow.currentPage = currentPage 68 | // activeHollow.currentPage = currentPage 69 | // allHollow.currentPage = currentPage 70 | // smallActive.currentPage = currentPage 71 | // line.currentPage = currentPage 72 | // boldLine.currentPage = currentPage 73 | // ellipse.currentPage = currentPage 74 | 75 | 76 | 77 | } 78 | 79 | } 80 | -------------------------------------------------------------------------------- /JXPageControl/Classes/Common/JXPageControlTool.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JXPageControlTool.swift 3 | // JXPageControl_Example 4 | // 5 | // Created by 谭家祥 on 2019/7/3. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | extension UIColor { 12 | 13 | private static func rgbArray(color: UIColor) -> [CGFloat] { 14 | 15 | var r: CGFloat = 0.0 16 | var g: CGFloat = 0.0 17 | var b: CGFloat = 0.0 18 | var a: CGFloat = 0.0 19 | 20 | if self.responds(to: #selector(getRed(_:green:blue:alpha:))) { 21 | color.getRed(&r, green: &g, blue: &b, alpha: &a) 22 | }else { 23 | 24 | if let components = color.cgColor.components { 25 | if components.count == 2 { 26 | r = components[0] 27 | g = components[0] 28 | b = components[0] 29 | a = components[1] 30 | }else if components.count == 4 { 31 | r = components[0] 32 | g = components[1] 33 | b = components[2] 34 | a = components[3] 35 | }else { 36 | print("获取颜色RGB失败") 37 | } 38 | } 39 | } 40 | 41 | return [r, g ,b , a] 42 | } 43 | 44 | private static func difference(originColor: UIColor, 45 | targetColor: UIColor) -> [CGFloat] { 46 | let originArr = self.rgbArray(color: originColor) 47 | let targetArr = self.rgbArray(color: targetColor) 48 | return [targetArr[0] - originArr[0], 49 | targetArr[1] - originArr[1], 50 | targetArr[2] - originArr[2], 51 | targetArr[3] - originArr[3]] 52 | } 53 | 54 | /** 55 | * Pass in two colors and proportions 56 | * 57 | * @param originColor Original color 58 | * @param targetColor Target color 59 | * @param proportion Between 0 and 1 60 | * 61 | * @return UIColor 62 | */ 63 | static func transform(originColor: UIColor, 64 | targetColor: UIColor, 65 | proportion: CGFloat) -> UIColor { 66 | let originArr = self.rgbArray(color: originColor) 67 | let differenceArr = self.difference(originColor: originColor, 68 | targetColor: targetColor) 69 | return UIColor(red: originArr[0] + proportion * differenceArr[0] , 70 | green: originArr[1] + proportion * differenceArr[1], 71 | blue: originArr[2] + proportion * differenceArr[2], 72 | alpha: originArr[3] + proportion * differenceArr[3]) 73 | } 74 | } 75 | 76 | -------------------------------------------------------------------------------- /Example/JXPageControl/Demo/ChamelonVC.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ChamelonVC.swift 3 | // JXPageControl_Example 4 | // 5 | // Created by 谭家祥 on 2019/7/13. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import JXPageControl 11 | 12 | class ChamelonVC: UIViewController { 13 | 14 | @IBOutlet weak var scrollView: UIScrollView! 15 | 16 | @IBOutlet weak var `default`: JXPageControlChameleon! 17 | @IBOutlet weak var inactivehollow: JXPageControlChameleon! 18 | 19 | lazy var codePageControl: JXPageControlJump = { 20 | let pageControl = JXPageControlJump(frame: CGRect(x: 0, 21 | y: 0, 22 | width: UIScreen.main.bounds.width, 23 | height: 30)) 24 | pageControl.numberOfPages = 4 25 | 26 | // JXPageControlType: default property 27 | // pageControl.currentPage = 0 28 | // pageControl.progress = 0.0 29 | // pageControl.hidesForSinglePage = false 30 | // pageControl.inactiveColor = UIColor.white.withAlphaComponent(0.5) 31 | // pageControl.activeColor = UIColor.white 32 | // pageControl.inactiveSize = CGSize(width: 10, height: 10) 33 | // pageControl.activeSize = CGSize(width: 10, height: 10) 34 | // pageControl.inactiveSize = CGSize(width: 10, height: 10) 35 | // pageControl.columnSpacing = 10 36 | // pageControl.contentAlignment = JXPageControlAlignment(.center, 37 | // .center) 38 | // pageControl.contentMode = .center 39 | // pageControl.isInactiveHollow = false 40 | // pageControl.isActiveHollow = false 41 | 42 | // JXPageControlJump: default "custom property" 43 | pageControl.isAnimation = true 44 | 45 | return pageControl 46 | }() 47 | 48 | override func viewDidLoad() { 49 | super.viewDidLoad() 50 | 51 | view.addSubview(codePageControl) 52 | scrollView.delegate = self 53 | } 54 | 55 | override func viewDidLayoutSubviews() { 56 | super.viewDidLayoutSubviews() 57 | codePageControl.center = view.center 58 | } 59 | 60 | deinit { 61 | print("\(#function ) --> \(#file)") 62 | } 63 | 64 | } 65 | 66 | extension ChamelonVC: UIScrollViewDelegate { 67 | func scrollViewDidScroll(_ scrollView: UIScrollView) { 68 | let progress = scrollView.contentOffset.x / scrollView.bounds.width 69 | let currentPage = Int(round(progress)) 70 | 71 | // 方式一 72 | `default`.progress = progress 73 | inactivehollow.progress = progress 74 | codePageControl.progress = progress 75 | 76 | // 方式二 77 | // `default`.currentPage = currentPage 78 | // inactivehollow.currentPage = currentPage 79 | // codePageControl.currentPagev = currentPage 80 | 81 | 82 | } 83 | 84 | } 85 | 86 | 87 | -------------------------------------------------------------------------------- /Example/JXPageControl/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/JXPageControl.xcodeproj/xcshareddata/xcschemes/JXPageControl-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JXPageControl 2 | 3 | [![CI Status](https://img.shields.io/travis/bboyXFX/JXPageControl.svg?style=flat)](https://travis-ci.org/bboyXFX/JXPageControl) 4 | [![Version](https://img.shields.io/cocoapods/v/JXPageControl.svg?style=flat)](https://cocoapods.org/pods/JXPageControl) 5 | [![License](https://img.shields.io/cocoapods/l/JXPageControl.svg?style=flat)](https://cocoapods.org/pods/JXPageControl) 6 | [![Platform](https://img.shields.io/cocoapods/p/JXPageControl.svg?style=flat)](https://cocoapods.org/pods/JXPageControl) 7 | 8 | 9 | ##### (JXPageControl supports multiple animation transformations, content layout transformations, and Xib layouts ) 10 | 11 | --- 12 | 13 | ##### 14 | 15 | * Development environment: Xcode 7 16 | * Running condition: iOS(8.0+) 17 | * Open source framework :[github地址](https://github.com/Code-TanJX/JXPageControl) 18 | * [ Chinese is introduced [ 中文介绍 ]](https://blog.csdn.net/TanJiaXiang/article/details/95796616) 19 | 20 |   21 | 22 | (If there is any problem, you can leave a message, welcome to study together, welcome star ) 23 | 24 | --- 25 | ### Installation 26 | To install, simply add the following code to your Podfile : 27 | 28 | ```ruby 29 | 30 | platform :ios, '8.0' 31 | 32 | target 'TargetName' do 33 | pod 'JXPageControl' 34 | end 35 | 36 | ``` 37 | 38 | --- 39 | 40 | ### The UI effect 41 | 42 | JXPageControlChameleon | JXPageControlExchange | JXPageControlFill 43 | :-: | :-: | :-: 44 | | | 45 | 46 | 47 |   48 | 49 | JXPageControlJump | JXPageControlScale 50 | :-: | :-: 51 | | 52 | 53 | --- 54 | 55 | ### Frame set 56 | * Common Framework common class files 57 | * Jump - Jump animation effects class file 58 | * Transform - Transition animation class file 59 | 60 | --- 61 | 62 | --- 63 | 64 | #### JXPageControl introduction [ JXPageControl 介绍 ] 65 | 66 | JXPageControl ADAPTS to Swift and objective-c 67 | 68 |   69 | 70 | * JXPageControlBase - Base class for all pageControl 71 | * JXPageControlType - All pageControl protocols, it provides a number of custom apis for developers to use 72 | 73 |   74 | 75 | ###### JXPageControlType - provides - API 76 | 77 |   78 | 79 | * numberOfPages ---> Number of indicators. 80 | * currentPage ---> Current indicator page number. 81 | * progress ---> Current indicator page numbering process. 82 | * hidesForSinglePage ---> Whether to hide when there is only one indicator. 83 | * inactiveColor ---> Inactive indicator color 84 | * activeColor ---> Active indicator color 85 | * inactiveSize ---> Inactive indicator size 86 | * activeSize ---> Active indicator size 87 | * indicatorSize ---> All indicator sizes 88 | * columnSpacing ---> Horizontal distance between indicators 89 | * contentAlignment ---> Content layout location (note that this property is easy to use!!!!! ) 90 | * contentMode ---> Content layout location, and support for transformation in Xib, real-time view of location changes (note that this property is very useful!!!!! ) 91 | * isInactiveHollow ---> Whether the inactive indicator is a hollow pattern 92 | * isActiveHollow ---> Whether the active indicator is a hollow pattern 93 | * reload() ---> Refresh data/UI 94 | 95 | ###### Be careful : 96 | JXPageControl also provides some APIs for non-JXPageControlType. You can view it in the specific classes you use 97 | 98 |   99 | 100 | --- 101 | #### JXPageControl uses : 102 | 103 |   104 | 105 | ### Example 1 106 | 107 | * Use (xib, storyboard for properties and layout Settings!!! ) 108 | * Note that the module should select JXPageControl, otherwise it will not show up and the call will report an error. 109 | * ContentMode can be set in View to change content location 110 | 111 |   112 | 113 | 114 | 115 | 116 | --- 117 | 118 | 119 | 120 | 121 | ### Example 2 122 | 123 | * Write it in pure code 124 | 125 | ``` 126 | 127 | import JXPageControl 128 | 129 | class ChamelonVC: UIViewController { 130 | 131 | lazy var codePageControl: JXPageControlJump = { 132 | let pageControl = JXPageControlJump(frame: CGRect(x: 0, 133 | y: 0, 134 | width: UIScreen.main.bounds.width, 135 | height: 30)) 136 | pageControl.numberOfPages = 4 137 | 138 | // JXPageControlType: default property 139 | // pageControl.currentPage = 0 140 | // pageControl.progress = 0.0 141 | // pageControl.hidesForSinglePage = false 142 | // pageControl.inactiveColor = UIColor.white.withAlphaComponent(0.5) 143 | // pageControl.activeColor = UIColor.white 144 | // pageControl.inactiveSize = CGSize(width: 10, height: 10) 145 | // pageControl.activeSize = CGSize(width: 10, height: 10) 146 | // pageControl.inactiveSize = CGSize(width: 10, height: 10) 147 | // pageControl.columnSpacing = 10 148 | // pageControl.contentAlignment = JXPageControlAlignment(.center, 149 | // .center) 150 | // pageControl.contentMode = .center 151 | // pageControl.isInactiveHollow = false 152 | // pageControl.isActiveHollow = false 153 | 154 | // JXPageControlJump: default "custom property" 155 | pageControl.isAnimation = true 156 | pageControl.isFlexible = true 157 | 158 | return pageControl 159 | }() 160 | 161 | override func viewDidLoad() { 162 | super.viewDidLoad() 163 | view.addSubview(codePageControl) 164 | } 165 | 166 | } 167 | 168 | extension ChamelonVC: UIScrollViewDelegate { 169 | func scrollViewDidScroll(_ scrollView: UIScrollView) { 170 | let progress = scrollView.contentOffset.x / scrollView.bounds.width 171 | let currentPage = Int(round(progress)) 172 | 173 | // Mode one 174 | codePageControl.progress = progress 175 | 176 | // Mode two 177 | // codePageControl.currentPagev = currentPage 178 | 179 | } 180 | 181 | } 182 | 183 | ``` 184 | 185 | ``` 186 | 187 | 188 | ``` 189 | 190 | ### Example 2 and so on ... 191 | 192 | ``` 193 | 194 | import JXPageControl 195 | ... 196 | 197 | ``` 198 | 199 | ### [The Demo address](https://github.com/Code-TanJX/JXPageControl) 200 | 201 | ## Author 202 | 203 | Code-TanJX, Code_TanJX@163.com 204 | 205 | ## License 206 | 207 | JXPageControl is available under the MIT license. See the LICENSE file for more info. 208 | -------------------------------------------------------------------------------- /JXPageControl/Classes/Jump/JXPageControlJump.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JXPageControlJump.swift 3 | // JXPageControl 4 | // 5 | // Created by 谭家祥 on 2019/6/7. 6 | // 7 | 8 | import UIKit 9 | 10 | @IBDesignable open class JXPageControlJump: JXPageControlBase { 11 | 12 | override open func setBase() { 13 | super.setBase() 14 | } 15 | 16 | // MARK: - -------------------------- Custom property list -------------------------- 17 | 18 | @IBInspectable public var isAnimation: Bool = true 19 | 20 | 21 | // MARK: - -------------------------- Update tht data -------------------------- 22 | override func updateProgress(_ progress: CGFloat) { 23 | guard progress >= 0 , 24 | progress <= CGFloat(numberOfPages - 1), 25 | let activeLayer = activeLayer 26 | else { return } 27 | 28 | CATransaction.setDisableActions(!isAnimation) 29 | CATransaction.begin() 30 | 31 | let marginX = (maxIndicatorSize.width - activeSize.width) * 0.5 32 | let marginyY = (maxIndicatorSize.height - activeSize.height) * 0.5 33 | let marginW = (maxIndicatorSize.width - minIndicatorSize.width) * 0.5 34 | let x = progress * (maxIndicatorSize.width + columnSpacing) + marginX 35 | 36 | switch isAnimation { 37 | case true: 38 | let width = activeSize.width 39 | + (columnSpacing + marginW) * (abs(round(progress) - progress) * 2) 40 | let newFrame = CGRect(x: x, 41 | y: marginyY, 42 | width: width, 43 | height: activeSize.height) 44 | activeLayer.frame = newFrame 45 | case false: 46 | activeLayer.frame.origin.x = x 47 | } 48 | 49 | currentIndex = Int(progress) 50 | CATransaction.commit() 51 | } 52 | 53 | override func updateCurrentPage(_ pageIndex: Int) { 54 | guard pageIndex >= 0 , 55 | pageIndex <= numberOfPages - 1, 56 | pageIndex != currentIndex, 57 | let activeLayer = activeLayer 58 | else { return } 59 | 60 | let marginX = (maxIndicatorSize.width - activeSize.width) * 0.5 61 | let activeLayerX = CGFloat(pageIndex) * (maxIndicatorSize.width + columnSpacing) + marginX 62 | let marginW = (maxIndicatorSize.width - minIndicatorSize.width) * 0.5 63 | 64 | if isAnimation { 65 | CATransaction.begin() 66 | CATransaction.setCompletionBlock {[weak self] in 67 | guard let strongSelf = self else { return } 68 | activeLayer.frame.size.width = strongSelf.activeSize.width 69 | activeLayer.frame.origin.x = activeLayerX 70 | 71 | } 72 | 73 | if pageIndex < currentIndex { 74 | activeLayer.frame.origin.x = activeLayer.frame.origin.x - columnSpacing - marginW 75 | } 76 | 77 | CATransaction.begin() 78 | let width = activeSize.width + columnSpacing + marginW 79 | activeLayer.frame.size.width = width 80 | CATransaction.commit() 81 | 82 | CATransaction.commit() 83 | 84 | }else { 85 | CATransaction.begin() 86 | CATransaction.setCompletionBlock {[weak self] in 87 | guard let strongSelf = self else { return } 88 | activeLayer.frame.size.width = strongSelf.activeSize.width 89 | activeLayer.frame.origin.x = activeLayerX 90 | } 91 | activeLayer.frame.origin.x = activeLayer.frame.origin.x - 0.1 92 | CATransaction.begin() 93 | let width = activeSize.width 94 | activeLayer.frame.size.width = width 95 | CATransaction.commit() 96 | CATransaction.commit() 97 | } 98 | currentIndex = pageIndex 99 | } 100 | 101 | override func inactiveHollowLayout() { 102 | if isInactiveHollow { 103 | inactiveLayer.forEach { (layer) in 104 | layer.backgroundColor = UIColor.clear.cgColor 105 | layer.borderColor = inactiveColor.cgColor 106 | layer.borderWidth = 1 107 | } 108 | }else { 109 | inactiveLayer.forEach { (layer) in 110 | layer.backgroundColor = inactiveColor.cgColor 111 | layer.borderWidth = 0 112 | } 113 | } 114 | } 115 | 116 | 117 | override func activeHollowLayout() { 118 | if isActiveHollow { 119 | activeLayer?.backgroundColor = UIColor.clear.cgColor 120 | activeLayer?.borderColor = activeColor.cgColor 121 | activeLayer?.borderWidth = 1 122 | }else { 123 | activeLayer?.backgroundColor = activeColor.cgColor 124 | activeLayer?.borderWidth = 0 125 | } 126 | } 127 | 128 | // MARK: - -------------------------- Reset -------------------------- 129 | 130 | override func resetActiveLayer() { 131 | activeLayer?.removeFromSuperlayer() 132 | activeLayer = CALayer() 133 | contentView.layer.addSublayer(activeLayer!) 134 | } 135 | 136 | // MARK: - -------------------------- Layout -------------------------- 137 | override func layoutActiveIndicator() { 138 | 139 | if let activeLayer = activeLayer { 140 | 141 | let x = (maxIndicatorSize.width - activeSize.width) * 0.5 142 | let y = (maxIndicatorSize.height - activeSize.height) * 0.5 143 | activeLayer.frame = CGRect(x: x, 144 | y: y, 145 | width: activeSize.width, 146 | height: activeSize.height) 147 | if activeLayer.frame.width > activeLayer.frame.height { 148 | activeLayer.cornerRadius = activeLayer.frame.height*0.5 149 | }else { 150 | activeLayer.cornerRadius = activeLayer.frame.width*0.5 151 | } 152 | activeHollowLayout() 153 | } 154 | } 155 | 156 | override func layoutInactiveIndicators() { 157 | let x = (maxIndicatorSize.width - inactiveSize.width) * 0.5 158 | let y = (maxIndicatorSize.height - inactiveSize.height) * 0.5 159 | var layerFrame = CGRect(x: x, 160 | y: y, 161 | width: inactiveSize.width, 162 | height: inactiveSize.height) 163 | inactiveLayer.forEach() { layer in 164 | layer.frame = layerFrame 165 | /// Set cornerRadius 166 | if layer.frame.width > layer.frame.height { 167 | layer.cornerRadius = layer.frame.height*0.5 168 | }else { 169 | layer.cornerRadius = layer.frame.width*0.5 170 | } 171 | layerFrame.origin.x += maxIndicatorSize.width + columnSpacing 172 | } 173 | inactiveHollowLayout() 174 | } 175 | } 176 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | 23 | # Used as a return value for each invocation of `strip_invalid_archs` function. 24 | STRIP_BINARY_RETVAL=0 25 | 26 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 27 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 28 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 29 | 30 | # Copies and strips a vendored framework 31 | install_framework() 32 | { 33 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 34 | local source="${BUILT_PRODUCTS_DIR}/$1" 35 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 36 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 37 | elif [ -r "$1" ]; then 38 | local source="$1" 39 | fi 40 | 41 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 42 | 43 | if [ -L "${source}" ]; then 44 | echo "Symlinked..." 45 | source="$(readlink "${source}")" 46 | fi 47 | 48 | # Use filter instead of exclude so missing patterns don't throw errors. 49 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 50 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 51 | 52 | local basename 53 | basename="$(basename -s .framework "$1")" 54 | binary="${destination}/${basename}.framework/${basename}" 55 | 56 | if ! [ -r "$binary" ]; then 57 | binary="${destination}/${basename}" 58 | elif [ -L "${binary}" ]; then 59 | echo "Destination binary is symlinked..." 60 | dirname="$(dirname "${binary}")" 61 | binary="${dirname}/$(readlink "${binary}")" 62 | fi 63 | 64 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 65 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 66 | strip_invalid_archs "$binary" 67 | fi 68 | 69 | # Resign the code if required by the build settings to avoid unstable apps 70 | code_sign_if_enabled "${destination}/$(basename "$1")" 71 | 72 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 73 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 74 | local swift_runtime_libs 75 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 76 | for lib in $swift_runtime_libs; do 77 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 78 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 79 | code_sign_if_enabled "${destination}/${lib}" 80 | done 81 | fi 82 | } 83 | 84 | # Copies and strips a vendored dSYM 85 | install_dsym() { 86 | local source="$1" 87 | if [ -r "$source" ]; then 88 | # Copy the dSYM into a the targets temp dir. 89 | 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}\"" 90 | 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}" 91 | 92 | local basename 93 | basename="$(basename -s .framework.dSYM "$source")" 94 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 95 | 96 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 97 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 98 | strip_invalid_archs "$binary" 99 | fi 100 | 101 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 102 | # Move the stripped file into its final destination. 103 | 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}\"" 104 | 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}" 105 | else 106 | # 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. 107 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 108 | fi 109 | fi 110 | } 111 | 112 | # Signs a framework with the provided identity 113 | code_sign_if_enabled() { 114 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 115 | # Use the current code_sign_identity 116 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 117 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 118 | 119 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 120 | code_sign_cmd="$code_sign_cmd &" 121 | fi 122 | echo "$code_sign_cmd" 123 | eval "$code_sign_cmd" 124 | fi 125 | } 126 | 127 | # Strip invalid architectures 128 | strip_invalid_archs() { 129 | binary="$1" 130 | # Get architectures for current target binary 131 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 132 | # Intersect them with the architectures we are building for 133 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 134 | # If there are no archs supported by this binary then warn the user 135 | if [[ -z "$intersected_archs" ]]; then 136 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 137 | STRIP_BINARY_RETVAL=0 138 | return 139 | fi 140 | stripped="" 141 | for arch in $binary_archs; do 142 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 143 | # Strip non-valid architectures in-place 144 | lipo -remove "$arch" -output "$binary" "$binary" 145 | stripped="$stripped $arch" 146 | fi 147 | done 148 | if [[ "$stripped" ]]; then 149 | echo "Stripped $binary of architectures:$stripped" 150 | fi 151 | STRIP_BINARY_RETVAL=1 152 | } 153 | 154 | 155 | if [[ "$CONFIGURATION" == "Debug" ]]; then 156 | install_framework "${BUILT_PRODUCTS_DIR}/JXPageControl/JXPageControl.framework" 157 | fi 158 | if [[ "$CONFIGURATION" == "Release" ]]; then 159 | install_framework "${BUILT_PRODUCTS_DIR}/JXPageControl/JXPageControl.framework" 160 | fi 161 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 162 | wait 163 | fi 164 | -------------------------------------------------------------------------------- /JXPageControl/Classes/Transform/JXPageControlChameleon.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JXPageControlChameleon.swift 3 | // JXPageControl_Example 4 | // 5 | // Created by 谭家祥 on 2019/7/4. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @IBDesignable open class JXPageControlChameleon: JXPageControlBase { 12 | 13 | 14 | // MARK: - -------------------------- JXPageControlType -------------------------- 15 | 16 | /// Please use the property "indicatorSize" 17 | override public var activeSize: CGSize { 18 | get { return CGSize(width: actualIndicatorSize.width, 19 | height: actualIndicatorSize.height) } 20 | set {} 21 | } 22 | 23 | /// Please use the property "indicatorSize" 24 | override public var inactiveSize: CGSize { 25 | get { return CGSize(width: actualIndicatorSize.width, 26 | height: actualIndicatorSize.height) } 27 | set {} 28 | } 29 | 30 | var actualIndicatorSize: CGSize = CGSize(width: 10, height: 10) 31 | override public var indicatorSize: CGSize { 32 | get { return actualIndicatorSize } 33 | set { 34 | actualIndicatorSize = CGSize( 35 | width: newValue.width > minIndicatorSize.width ? 36 | newValue.width : minIndicatorSize.width , 37 | height: newValue.height > minIndicatorSize.height ? 38 | newValue.height : minIndicatorSize.height ) 39 | reloadLayout() 40 | updateProgress(CGFloat(currentIndex)) 41 | } 42 | } 43 | 44 | // MARK: - -------------------------- Custom property list -------------------------- 45 | 46 | /// When isAnimation is false, the animation time is shorter; 47 | /// when isAnimation is true, the animation time is longer. 48 | @IBInspectable public var isAnimation: Bool = true 49 | 50 | // MARK: - -------------------------- Update tht data -------------------------- 51 | 52 | 53 | override func updateProgress(_ progress: CGFloat) { 54 | guard progress >= 0 , 55 | progress <= CGFloat(numberOfPages - 1) 56 | else { return } 57 | 58 | let leftIndex = Int(floor(progress)) 59 | let rightIndex = leftIndex + 1 > numberOfPages - 1 ? leftIndex : leftIndex + 1 60 | 61 | if leftIndex == rightIndex { 62 | for index in 0 ..< numberOfPages { 63 | let layer = inactiveLayer[index] 64 | if index != leftIndex{ 65 | hollowLayout(layer: layer, isActive: false) 66 | 67 | }else { 68 | hollowLayout(layer: layer, isActive: true) 69 | } 70 | } 71 | }else { 72 | 73 | let leftLayer = inactiveLayer[leftIndex] 74 | let rightLayer = inactiveLayer[rightIndex] 75 | let rightScare = progress - floor(progress) 76 | let leftScare = 1 - rightScare 77 | 78 | CATransaction.begin() 79 | CATransaction.setDisableActions(!isAnimation) 80 | CATransaction.setAnimationDuration(0.2) 81 | 82 | let tempInactiveColor = isInactiveHollow ? UIColor.clear : inactiveColor 83 | leftLayer.backgroundColor = UIColor.transform(originColor: tempInactiveColor, 84 | targetColor: activeColor, 85 | proportion: leftScare).cgColor 86 | rightLayer.backgroundColor = UIColor.transform(originColor: tempInactiveColor, 87 | targetColor: activeColor, 88 | proportion: rightScare).cgColor 89 | for index in 0 ..< numberOfPages { 90 | if index != leftIndex, 91 | index != rightIndex { 92 | let layer = inactiveLayer[index] 93 | hollowLayout(layer: layer, isActive: false) 94 | } 95 | } 96 | CATransaction.commit() 97 | } 98 | currentIndex = Int(progress) 99 | } 100 | 101 | override func updateCurrentPage(_ pageIndex: Int) { 102 | guard pageIndex >= 0 , 103 | pageIndex <= numberOfPages - 1, 104 | pageIndex != currentIndex 105 | else { return } 106 | 107 | for index in 0 ..< numberOfPages { 108 | if index == currentIndex { 109 | CATransaction.begin() 110 | CATransaction.setDisableActions(!isAnimation) 111 | CATransaction.setAnimationDuration(0.7) 112 | let layer = inactiveLayer[index] 113 | hollowLayout(layer: layer, isActive: false) 114 | CATransaction.commit() 115 | }else if index == pageIndex { 116 | let layer = inactiveLayer[index] 117 | CATransaction.begin() 118 | CATransaction.setDisableActions(!isAnimation) 119 | CATransaction.setAnimationDuration(0.7) 120 | hollowLayout(layer: layer, isActive: true) 121 | CATransaction.commit() 122 | } 123 | } 124 | currentIndex = pageIndex 125 | } 126 | 127 | override func inactiveHollowLayout() { 128 | hollowLayout() 129 | } 130 | 131 | override func activeHollowLayout() { 132 | hollowLayout() 133 | } 134 | 135 | // MARK: - -------------------------- Layout -------------------------- 136 | 137 | override func layoutInactiveIndicators() { 138 | var layerFrame = CGRect(x: 0, 139 | y: 0, 140 | width: actualIndicatorSize.width , 141 | height: actualIndicatorSize.height) 142 | inactiveLayer.forEach() { layer in 143 | layer.frame = layerFrame 144 | if actualIndicatorSize.width > actualIndicatorSize.height { 145 | layer.cornerRadius = actualIndicatorSize.height*0.5 146 | }else { 147 | layer.cornerRadius = actualIndicatorSize.width*0.5 148 | } 149 | layerFrame.origin.x += actualIndicatorSize.width + columnSpacing 150 | } 151 | hollowLayout() 152 | } 153 | } 154 | 155 | extension JXPageControlChameleon { 156 | 157 | private func hollowLayout() { 158 | if isInactiveHollow { 159 | for (index, layer) in inactiveLayer.enumerated() { 160 | if index == currentIndex, !isActiveHollow { 161 | layer.backgroundColor = activeColor.cgColor 162 | }else { 163 | layer.backgroundColor = UIColor.clear.cgColor 164 | layer.borderColor = activeColor.cgColor 165 | } 166 | layer.borderColor = activeColor.cgColor 167 | layer.borderWidth = 1 168 | } 169 | } 170 | else { 171 | for (index, layer) in inactiveLayer.enumerated() { 172 | if index == currentIndex { 173 | layer.backgroundColor = activeColor.cgColor 174 | }else { 175 | layer.backgroundColor = inactiveColor.cgColor 176 | } 177 | layer.borderWidth = 0 178 | } 179 | 180 | } 181 | } 182 | 183 | private func hollowLayout(layer: CALayer, isActive: Bool) { 184 | /// Set backgroundcolor 185 | if isInactiveHollow { 186 | if isActive, 187 | !isActiveHollow { 188 | layer.backgroundColor = activeColor.cgColor 189 | }else { 190 | layer.backgroundColor = UIColor.clear.cgColor 191 | layer.borderColor = activeColor.cgColor 192 | } 193 | }else { 194 | if isActive { 195 | layer.backgroundColor = activeColor.cgColor 196 | }else { 197 | layer.backgroundColor = inactiveColor.cgColor 198 | } 199 | } 200 | } 201 | } 202 | -------------------------------------------------------------------------------- /JXPageControl/Classes/Transform/JXPageControlExchange.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JXPageControlExchange.swift 3 | // JXPageControl_Example 4 | // 5 | // Created by 谭家祥 on 2019/7/3. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | @IBDesignable open class JXPageControlExchange: JXPageControlBase { 13 | 14 | // MARK: - -------------------------- Custom property list -------------------------- 15 | 16 | private var inactiveOriginFrame: [CGRect] = [] 17 | 18 | 19 | // MARK: - -------------------------- Update tht data -------------------------- 20 | 21 | override func updateProgress(_ progress: CGFloat) { 22 | guard progress >= 0 , 23 | progress <= CGFloat(numberOfPages - 1) 24 | else { return } 25 | 26 | let leftIndex = Int(floor(progress)) 27 | let rightIndex = leftIndex + 1 > numberOfPages - 1 ? leftIndex : leftIndex + 1 28 | 29 | if leftIndex == rightIndex { 30 | 31 | CATransaction.setDisableActions(true) 32 | CATransaction.begin() 33 | 34 | let marginX: CGFloat = maxIndicatorSize.width + columnSpacing 35 | 36 | // 活跃点布局 37 | let activeLayerX = (maxIndicatorSize.width - activeSize.width) * 0.5 + floor(progress) * marginX 38 | activeLayer?.frame = CGRect(x: activeLayerX, 39 | y: activeLayer?.frame.minY ?? 0, 40 | width: activeSize.width, 41 | height: activeSize.height) 42 | 43 | // 不活跃点布局 44 | for index in 0 ..< numberOfPages - 1 { 45 | 46 | var layerFrame: CGRect = inactiveOriginFrame[index] 47 | let layer = inactiveLayer[index] 48 | 49 | if index < Int(progress) { 50 | layerFrame.origin.x -= marginX 51 | layer.frame = layerFrame 52 | }else if index > Int(progress) { 53 | layer.frame = layerFrame 54 | } 55 | } 56 | 57 | CATransaction.commit() 58 | 59 | 60 | }else { 61 | 62 | CATransaction.setDisableActions(true) 63 | CATransaction.begin() 64 | 65 | let marginX: CGFloat = maxIndicatorSize.width + columnSpacing 66 | 67 | // 活跃点布局 68 | let activeLayerX = (maxIndicatorSize.width - activeSize.width) * 0.5 + progress * marginX 69 | activeLayer?.frame = CGRect(x: activeLayerX, 70 | y: activeLayer?.frame.minY ?? 0, 71 | width: activeSize.width, 72 | height: activeSize.height) 73 | 74 | // 不活跃点布局 75 | for index in 0 ..< numberOfPages - 1 { 76 | 77 | var layerFrame: CGRect = inactiveOriginFrame[index] 78 | let layer = inactiveLayer[index] 79 | 80 | if index < Int(progress) { 81 | layerFrame.origin.x -= marginX 82 | layer.frame = layerFrame 83 | }else if index > Int(progress) { 84 | layer.frame = layerFrame 85 | }else { 86 | let leftScare = progress - floor(progress) 87 | layerFrame.origin.x = layerFrame.origin.x - leftScare * marginX 88 | layer.frame = layerFrame 89 | } 90 | } 91 | 92 | CATransaction.commit() 93 | } 94 | } 95 | 96 | override func updateCurrentPage(_ pageIndex: Int) { 97 | guard pageIndex >= 0 , 98 | pageIndex <= numberOfPages - 1, 99 | pageIndex != currentIndex 100 | else { return } 101 | 102 | let marginX: CGFloat = maxIndicatorSize.width + columnSpacing 103 | 104 | // 活跃点布局 105 | let activeLayerX = (maxIndicatorSize.width - activeSize.width) * 0.5 + CGFloat(pageIndex) * marginX 106 | activeLayer?.frame = CGRect(x: activeLayerX, 107 | y: activeLayer?.frame.minY ?? 0, 108 | width: activeSize.width, 109 | height: activeSize.height) 110 | 111 | // 不活跃点布局 112 | for index in 0 ..< numberOfPages - 1 { 113 | 114 | var layerFrame: CGRect = inactiveOriginFrame[index] 115 | let layer = inactiveLayer[index] 116 | 117 | if index < pageIndex { 118 | layerFrame.origin.x -= marginX 119 | layer.frame = layerFrame 120 | }else if index >= pageIndex { 121 | layer.frame = layerFrame 122 | } 123 | } 124 | 125 | 126 | 127 | currentIndex = pageIndex 128 | } 129 | 130 | override func inactiveHollowLayout() { 131 | if isInactiveHollow { 132 | inactiveLayer.forEach { (layer) in 133 | layer.backgroundColor = UIColor.clear.cgColor 134 | layer.borderColor = inactiveColor.cgColor 135 | layer.borderWidth = 1 136 | } 137 | }else { 138 | inactiveLayer.forEach { (layer) in 139 | layer.backgroundColor = inactiveColor.cgColor 140 | layer.borderWidth = 0 141 | } 142 | } 143 | } 144 | 145 | override func activeHollowLayout() { 146 | if isActiveHollow { 147 | activeLayer?.backgroundColor = UIColor.clear.cgColor 148 | activeLayer?.borderColor = activeColor.cgColor 149 | activeLayer?.borderWidth = 1 150 | }else { 151 | activeLayer?.backgroundColor = activeColor.cgColor 152 | activeLayer?.borderWidth = 0 153 | } 154 | } 155 | 156 | // MARK: - -------------------------- Reset -------------------------- 157 | 158 | override func resetInactiveLayer() { 159 | // clear data 160 | inactiveLayer.forEach() { $0.removeFromSuperlayer() } 161 | inactiveLayer = [CALayer]() 162 | inactiveOriginFrame = [] 163 | // set new layers 164 | for _ in 0 ..< numberOfPages - 1 { 165 | let layer = CALayer() 166 | contentView.layer.addSublayer(layer) 167 | inactiveLayer.append(layer) 168 | } 169 | } 170 | 171 | override func resetActiveLayer() { 172 | 173 | activeLayer?.removeFromSuperlayer() 174 | activeLayer = CALayer() 175 | contentView.layer.addSublayer(activeLayer!) 176 | } 177 | 178 | // MARK: - -------------------------- Layout -------------------------- 179 | 180 | 181 | override func layoutActiveIndicator() { 182 | if let activeLayer = activeLayer { 183 | let x = (maxIndicatorSize.width - activeSize.width) * 0.5 184 | let y = (maxIndicatorSize.height - activeSize.height) * 0.5 185 | activeLayer.frame = CGRect(x: x, 186 | y: y, 187 | width: activeSize.width, 188 | height: activeSize.height) 189 | if activeLayer.frame.width > activeLayer.frame.height { 190 | activeLayer.cornerRadius = activeLayer.frame.height*0.5 191 | }else { 192 | activeLayer.cornerRadius = activeLayer.frame.width*0.5 193 | } 194 | activeHollowLayout() 195 | } 196 | 197 | } 198 | 199 | override func layoutInactiveIndicators() { 200 | inactiveOriginFrame = [] 201 | let x = (maxIndicatorSize.width - inactiveSize.width) * 0.5 202 | let y = (maxIndicatorSize.height - inactiveSize.height) * 0.5 203 | var layerFrame = CGRect(x: x + maxIndicatorSize.width + columnSpacing, 204 | y: y, 205 | width: inactiveSize.width, 206 | height: inactiveSize.height) 207 | inactiveLayer.forEach() { layer in 208 | layer.frame = layerFrame 209 | inactiveOriginFrame.append(layerFrame) 210 | if layer.frame.width > layer.frame.height { 211 | layer.cornerRadius = layer.frame.height*0.5 212 | }else { 213 | layer.cornerRadius = layer.frame.width*0.5 214 | } 215 | layerFrame.origin.x += maxIndicatorSize.width + columnSpacing 216 | } 217 | inactiveHollowLayout() 218 | } 219 | } 220 | -------------------------------------------------------------------------------- /JXPageControl/Classes/Transform/JXPageControlFill.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JXPageControlFill.swift 3 | // JXPageControl_Example 4 | // 5 | // Created by 谭家祥 on 2019/6/10. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CoreGraphics 11 | 12 | @IBDesignable open class JXPageControlFill: JXPageControlBase { 13 | 14 | 15 | /// Please use the property "diameter" 16 | override public var activeSize: CGSize { 17 | get { return CGSize(width: actualDiameter, height: actualDiameter) } 18 | set {} 19 | } 20 | 21 | /// Please use the property "diameter" 22 | override public var inactiveSize: CGSize { 23 | get { return CGSize(width: actualDiameter, height: actualDiameter) } 24 | set {} 25 | } 26 | 27 | /// Please use the property "diameter" 28 | override public var indicatorSize: CGSize { 29 | get { return CGSize(width: actualDiameter, height: actualDiameter) } 30 | set {} 31 | } 32 | 33 | // MARK: - -------------------------- Custom property list -------------------------- 34 | 35 | /// Indicator diameter 36 | var actualDiameter: CGFloat = 10.0 37 | @IBInspectable var diameter: CGFloat { 38 | set { 39 | actualDiameter = newValue > minIndicatorSize.width ? 40 | newValue : minIndicatorSize.width 41 | reloadLayout() 42 | updateProgress(CGFloat(currentIndex)) 43 | } 44 | get { return actualDiameter } 45 | } 46 | 47 | /// Indicator ring borderWidth 48 | @IBInspectable var borderWidth: CGFloat = 1.0 { 49 | didSet { 50 | reloadLayout() 51 | updateProgress(CGFloat(currentIndex)) 52 | } 53 | } 54 | 55 | // MARK: - -------------------------- Update tht data -------------------------- 56 | 57 | override func updateProgress(_ progress: CGFloat) { 58 | guard progress >= 0 , 59 | progress <= CGFloat(numberOfPages - 1) 60 | else { return } 61 | 62 | let borderW: CGFloat = isInactiveHollow ? borderWidth : 0 63 | let insetRect = CGRect(x: 0, 64 | y: 0, 65 | width: actualDiameter, 66 | height: actualDiameter).insetBy(dx: borderW, dy: borderW) 67 | 68 | let left = floor(progress) 69 | let page = Int(progress) 70 | let move = insetRect.width / 2 71 | 72 | let rightInset = move * CGFloat(progress - left) 73 | let rightRect = insetRect.insetBy(dx: rightInset, dy: rightInset) 74 | 75 | let leftInset = (1 - CGFloat(progress - left)) * move 76 | let leftRect = insetRect.insetBy(dx: leftInset, dy: leftInset) 77 | 78 | for (index, layer) in inactiveLayer.enumerated() { 79 | switch index { 80 | case page: 81 | hollowLayout(layer: layer, 82 | insetRect: leftRect) 83 | case page + 1: 84 | hollowLayout(layer: layer, 85 | insetRect: rightRect) 86 | break 87 | default: 88 | hollowLayout(layer: layer, 89 | insetRect: insetRect) 90 | break 91 | } 92 | } 93 | currentIndex = Int(progress) 94 | } 95 | 96 | override func updateCurrentPage(_ pageIndex: Int) { 97 | guard pageIndex >= 0 , 98 | pageIndex <= numberOfPages - 1, 99 | pageIndex != currentIndex 100 | else { return } 101 | 102 | 103 | let borderW: CGFloat = isInactiveHollow ? borderWidth : 0 104 | let insetRect = CGRect(x: 0, 105 | y: 0, 106 | width: actualDiameter, 107 | height: actualDiameter).insetBy(dx: borderW, dy: borderW) 108 | let maxW = insetRect.width / 2 109 | 110 | 111 | for (index, layer) in inactiveLayer.enumerated() { 112 | if index == currentIndex { 113 | hollowLayout(layer: layer, 114 | insetRect: insetRect, 115 | coefficient: maxW, 116 | maxW: nil) 117 | 118 | }else if index == pageIndex { 119 | hollowLayout(layer: layer, 120 | insetRect: insetRect, 121 | coefficient: 1, 122 | maxW: maxW) 123 | } 124 | } 125 | currentIndex = pageIndex 126 | } 127 | 128 | override func inactiveHollowLayout() { 129 | updateProgress(CGFloat(currentIndex)) 130 | } 131 | 132 | override func activeHollowLayout() { 133 | updateProgress(CGFloat(currentIndex)) 134 | } 135 | 136 | // MARK: - -------------------------- Layout -------------------------- 137 | override func layoutContentView() { 138 | 139 | var x: CGFloat = 0 140 | var y: CGFloat = 0 141 | let width = CGFloat(numberOfPages) * (actualDiameter + columnSpacing) - columnSpacing 142 | let height = actualDiameter 143 | 144 | // Horizon layout 145 | switch contentAlignment.horizon { 146 | case .left: 147 | x = 0 148 | case .right: 149 | x = (frame.width - width) 150 | case .center: 151 | x = (frame.width - width) * 0.5 152 | } 153 | 154 | // Vertical layout 155 | switch contentAlignment.vertical { 156 | case .top: 157 | y = 0 158 | case .bottom: 159 | y = frame.height - height 160 | case .center: 161 | y = (frame.height - height) * 0.5 162 | } 163 | contentView.frame = CGRect(x: x, 164 | y: y, 165 | width: width, 166 | height: height) 167 | } 168 | 169 | override func layoutInactiveIndicators() { 170 | 171 | var layerFrame = CGRect(x: 0, 172 | y: 0, 173 | width: actualDiameter, 174 | height: actualDiameter) 175 | inactiveLayer.forEach() { layer in 176 | layer.cornerRadius = actualDiameter * 0.5 177 | layer.frame = layerFrame 178 | layerFrame.origin.x += actualDiameter + columnSpacing 179 | } 180 | } 181 | } 182 | 183 | extension JXPageControlFill { 184 | 185 | private func hollowLayout(layer: CALayer, 186 | insetRect: CGRect, 187 | coefficient: CGFloat, 188 | maxW: CGFloat?) { 189 | 190 | CATransaction.begin() 191 | CATransaction.setAnimationDuration(0.03) 192 | CATransaction.setCompletionBlock { [weak self] in 193 | guard let strongSelf = self else { return } 194 | 195 | 196 | if let maxW = maxW { 197 | let tempCoefficient = coefficient + 1 198 | if tempCoefficient <= maxW { 199 | strongSelf.hollowLayout(layer: layer, 200 | insetRect: insetRect, 201 | coefficient: tempCoefficient, 202 | maxW: maxW) 203 | } 204 | }else { 205 | let tempCoefficient = coefficient - 1 206 | if tempCoefficient >= 0 { 207 | strongSelf.hollowLayout(layer: layer, 208 | insetRect: insetRect, 209 | coefficient: tempCoefficient, 210 | maxW: nil) 211 | } 212 | } 213 | 214 | } 215 | 216 | let tempInsetRect = insetRect.insetBy(dx: coefficient, 217 | dy: coefficient) 218 | hollowLayout(layer: layer, insetRect: tempInsetRect) 219 | CATransaction.commit() 220 | } 221 | 222 | private func hollowLayout(layer: CALayer, insetRect: CGRect) { 223 | 224 | layer.sublayers?.forEach({ (sublayer) in 225 | sublayer.removeFromSuperlayer() 226 | }) 227 | 228 | let mask = CAShapeLayer() 229 | mask.fillRule = CAShapeLayerFillRule.evenOdd 230 | let bounds = UIBezierPath(rect: layer.bounds) 231 | bounds.append(UIBezierPath(ovalIn: insetRect)) 232 | mask.path = bounds.cgPath 233 | 234 | if !isInactiveHollow { 235 | layer.backgroundColor = inactiveColor.cgColor 236 | let backgroundLayer = CALayer() 237 | backgroundLayer.frame = layer.bounds 238 | backgroundLayer.backgroundColor = activeColor.cgColor 239 | backgroundLayer.cornerRadius = actualDiameter * 0.5 240 | layer.addSublayer(backgroundLayer) 241 | backgroundLayer.mask = mask 242 | }else { 243 | layer.backgroundColor = activeColor.cgColor 244 | layer.mask = mask 245 | } 246 | } 247 | } 248 | -------------------------------------------------------------------------------- /JXPageControl/Classes/Common/JXPageControlBase.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JXPageControlBase.swift 3 | // JXPageControl_Example 4 | // 5 | // Created by 谭家祥 on 2019/7/10. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @IBDesignable open class JXPageControlBase: UIView, JXPageControlType { 12 | 13 | public override init(frame: CGRect) { 14 | super.init(frame: frame) 15 | setBase() 16 | } 17 | 18 | public required init?(coder aDecoder: NSCoder) { 19 | super.init(coder: aDecoder) 20 | setBase() 21 | } 22 | 23 | open func setBase() { 24 | addSubview(contentView) 25 | } 26 | 27 | open override var contentMode: UIView.ContentMode { 28 | didSet { 29 | switch contentMode { 30 | 31 | case .center: 32 | contentAlignment = JXPageControlAlignment(.center, .center) 33 | case .left: 34 | contentAlignment = JXPageControlAlignment(.left, .center) 35 | case .right: 36 | contentAlignment = JXPageControlAlignment(.right, .center) 37 | 38 | case .bottom: 39 | contentAlignment = JXPageControlAlignment(.center, .bottom) 40 | case .bottomLeft: 41 | contentAlignment = JXPageControlAlignment(.left, .bottom) 42 | case .bottomRight: 43 | contentAlignment = JXPageControlAlignment(.right, .bottom) 44 | 45 | case .top: 46 | contentAlignment = JXPageControlAlignment(.center, .top) 47 | case .topLeft: 48 | contentAlignment = JXPageControlAlignment(.left, .top) 49 | case .topRight: 50 | contentAlignment = JXPageControlAlignment(.right, .top) 51 | 52 | default: 53 | contentAlignment = JXPageControlAlignment(.center, .center) 54 | } 55 | } 56 | } 57 | 58 | open override func layoutSubviews() { 59 | super.layoutSubviews() 60 | layoutContentView() 61 | } 62 | 63 | // MARK: --------------------------- JXPageControlType -------------------------- 64 | 65 | /// Default is 0 66 | @IBInspectable public var numberOfPages: Int = 0 { 67 | didSet { reloadData() } 68 | } 69 | 70 | var currentIndex: Int = 0 71 | public var currentPage: Int { 72 | set { updateCurrentPage(newValue) } 73 | get { return currentIndex } 74 | } 75 | 76 | /// Default is 0.0. value pinned to 0.0..numberOfPages-1 77 | @IBInspectable public var progress: CGFloat = 0.0 { 78 | didSet { updateProgress(progress) } 79 | } 80 | 81 | /// Hide the the indicator if there is only one page. default is NO 82 | @IBInspectable public var hidesForSinglePage: Bool = false { 83 | didSet { resetHidden() } 84 | } 85 | 86 | /// Inactive item tint color 87 | @IBInspectable public var inactiveColor: UIColor = 88 | UIColor.groupTableViewBackground.withAlphaComponent(0.5) { 89 | didSet { inactiveHollowLayout() } 90 | } 91 | 92 | /// Active item ting color 93 | @IBInspectable public var activeColor: UIColor = 94 | UIColor.white { 95 | didSet { activeHollowLayout() } 96 | } 97 | 98 | /// Inactive item size 99 | @IBInspectable public var inactiveSize: CGSize = 100 | CGSize(width: 10, 101 | height: 10){ 102 | didSet { 103 | reloadLayout() 104 | updateProgress(CGFloat(currentIndex)) 105 | } 106 | } 107 | 108 | /// Active item size 109 | @IBInspectable public var activeSize: CGSize = 110 | CGSize(width: 10, 111 | height: 10){ 112 | didSet { 113 | reloadLayout() 114 | updateProgress(CGFloat(currentIndex)) 115 | } 116 | } 117 | 118 | /// Sets the color of all indicators 119 | @IBInspectable public var indicatorSize: CGSize = 120 | CGSize(width: 10, 121 | height: 10) { 122 | didSet { 123 | inactiveSize = indicatorSize 124 | activeSize = indicatorSize 125 | } 126 | } 127 | 128 | /// Column spacing 129 | @IBInspectable public var columnSpacing: CGFloat = 10.0 { 130 | didSet { 131 | reloadLayout() 132 | updateProgress(CGFloat(currentIndex)) 133 | } 134 | } 135 | 136 | /// Inactive hollow figure 137 | @IBInspectable public var isInactiveHollow: Bool = false { 138 | didSet { inactiveHollowLayout() } 139 | } 140 | 141 | /// Active hollow figure 142 | @IBInspectable public var isActiveHollow: Bool = false { 143 | didSet { activeHollowLayout() } 144 | } 145 | 146 | /// Content location 147 | public var contentAlignment: JXPageControlAlignment = 148 | JXPageControlAlignment(.center, 149 | .center) { 150 | didSet { reloadLayout() 151 | updateProgress(CGFloat(currentIndex)) } 152 | } 153 | 154 | /// Refresh the data and UI again 155 | public func reload() { 156 | reloadData() 157 | } 158 | 159 | // MARK: - -------------------------- Internal property list -------------------------- 160 | let contentView: UIView = UIView() 161 | 162 | var maxIndicatorSize: CGSize = CGSize(width: 2, height: 2) 163 | 164 | var minIndicatorSize: CGSize = CGSize(width: 2, height: 2) 165 | 166 | var inactiveLayer: [CALayer] = [] 167 | 168 | var activeLayer: CALayer? 169 | 170 | // MARK: - -------------------------- Update tht data -------------------------- 171 | func reloadData() { 172 | resetInactiveLayer() 173 | resetActiveLayer() 174 | resetHidden() 175 | reloadLayout() 176 | progress = 0.0 177 | } 178 | 179 | func reloadLayout() { 180 | layoutContentView() 181 | layoutInactiveIndicators() 182 | layoutActiveIndicator() 183 | } 184 | 185 | func updateProgress(_ progress: CGFloat) {} 186 | 187 | func updateCurrentPage(_ pageIndex: Int) {} 188 | 189 | func inactiveHollowLayout() {} 190 | 191 | 192 | func activeHollowLayout() {} 193 | 194 | // MARK: - -------------------------- Reset -------------------------- 195 | func resetHidden() { 196 | if hidesForSinglePage, 197 | numberOfPages == 1 { 198 | contentView.isHidden = true 199 | }else if numberOfPages == 0 { 200 | contentView.isHidden = true 201 | }else { 202 | contentView.isHidden = false 203 | } 204 | } 205 | 206 | func resetInactiveLayer() { 207 | // clear data 208 | inactiveLayer.forEach() { $0.removeFromSuperlayer() } 209 | inactiveLayer = [CALayer]() 210 | // set new layers 211 | for _ in 0..= inactiveSize.width, 230 | activeSize.width > kMinItemWidth{ 231 | itemWidth = activeSize.width 232 | minIndicatorSize.width = inactiveSize.width 233 | } else if inactiveSize.width > activeSize.width, 234 | inactiveSize.width > kMinItemWidth{ 235 | itemWidth = inactiveSize.width 236 | minIndicatorSize.width = activeSize.width 237 | } 238 | 239 | if activeSize.height >= inactiveSize.height, 240 | activeSize.height > kMinItemHeight{ 241 | itemHeight = activeSize.height 242 | minIndicatorSize.height = inactiveSize.height 243 | } else if inactiveSize.height > activeSize.height, 244 | inactiveSize.height > kMinItemHeight{ 245 | itemHeight = inactiveSize.height 246 | minIndicatorSize.height = activeSize.height 247 | } 248 | maxIndicatorSize.height = itemHeight 249 | maxIndicatorSize.width = itemWidth 250 | 251 | // Content Size and frame 252 | var x: CGFloat = 0 253 | var y: CGFloat = 0 254 | let width = CGFloat(numberOfPages) * (itemWidth + columnSpacing) - columnSpacing 255 | let height = itemHeight 256 | 257 | // Horizon layout 258 | switch contentAlignment.horizon { 259 | case .left: 260 | x = 0 261 | case .right: 262 | x = (frame.width - width) 263 | case .center: 264 | x = (frame.width - width) * 0.5 265 | } 266 | 267 | // Vertical layout 268 | switch contentAlignment.vertical { 269 | case .top: 270 | y = 0 271 | case .bottom: 272 | y = frame.height - height 273 | case .center: 274 | y = (frame.height - height) * 0.5 275 | } 276 | 277 | contentView.frame = CGRect(x: x, 278 | y: y, 279 | width: width, 280 | height: height) 281 | } 282 | 283 | func layoutActiveIndicator() {} 284 | 285 | func layoutInactiveIndicators() {} 286 | } 287 | -------------------------------------------------------------------------------- /JXPageControl/Classes/Transform/JXPageControlScale.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JXPageControlScale.swift 3 | // JXPageControl_Example 4 | // 5 | // Created by 谭家祥 on 2019/6/12. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @IBDesignable open class JXPageControlScale: JXPageControlBase { 12 | 13 | open override func setBase() { 14 | super.setBase() 15 | activeSize = CGSize(width: 15, 16 | height: 15) 17 | } 18 | 19 | // MARK: - -------------------------- Custom property list -------------------------- 20 | 21 | /// When isAnimation is false, the animation time is shorter; 22 | /// when isAnimation is true, the animation time is longer; 23 | /// IsAnimation only applies "set currentPage", 24 | /// while "set progress" does not work 25 | @IBInspectable public var isAnimation: Bool = true 26 | 27 | private var inactiveOriginFrame: [CGRect] = [] 28 | 29 | // MARK: - -------------------------- Update tht data -------------------------- 30 | 31 | override func updateProgress(_ progress: CGFloat) { 32 | guard progress >= 0 , 33 | progress <= CGFloat(numberOfPages - 1) 34 | else { return } 35 | 36 | 37 | 38 | 39 | let leftIndex = Int(floor(progress)) 40 | let rightIndex = leftIndex + 1 > numberOfPages - 1 ? leftIndex : leftIndex + 1 41 | 42 | if leftIndex == rightIndex { 43 | for index in 0 ..< numberOfPages { 44 | if index != leftIndex{ 45 | let layer = inactiveLayer[index] 46 | layer.frame = inactiveOriginFrame[index] 47 | hollowLayout(layer: layer, isActive: false) 48 | }else { 49 | let layer = inactiveLayer[index] 50 | let frame = inactiveOriginFrame[index] 51 | layer.frame = CGRect(x: frame.origin.x - (activeSize.width - inactiveSize.width) * 0.5, 52 | y: (maxIndicatorSize.height - activeSize.height) * 0.5, 53 | width: activeSize.width, 54 | height: activeSize.height) 55 | hollowLayout(layer: layer, isActive: true) 56 | } 57 | } 58 | }else { 59 | let leftLayer = inactiveLayer[leftIndex] 60 | let rightLayer = inactiveLayer[rightIndex] 61 | 62 | let rightScare = progress - floor(progress) 63 | let leftScare = 1 - rightScare 64 | 65 | 66 | CATransaction.setDisableActions(true) 67 | CATransaction.begin() 68 | 69 | let tempInactiveColor = isInactiveHollow ? UIColor.clear : inactiveColor 70 | let tempActiveColor = (isInactiveHollow && isActiveHollow) ? UIColor.clear : activeColor 71 | 72 | leftLayer.backgroundColor = UIColor.transform(originColor: tempInactiveColor, 73 | targetColor: tempActiveColor, 74 | proportion: leftScare).cgColor 75 | rightLayer.backgroundColor = UIColor.transform(originColor: tempInactiveColor, 76 | targetColor: tempActiveColor, 77 | proportion: rightScare).cgColor 78 | 79 | let activeWidth = activeSize.width > kMinItemWidth ? activeSize.width : kMinItemWidth 80 | let activeHeight = activeSize.height > kMinItemHeight ? activeSize.height : kMinItemHeight 81 | let inactiveWidth = inactiveSize.width > kMinItemWidth ? inactiveSize.width : kMinItemWidth 82 | let inactiveHeight = inactiveSize.height > kMinItemHeight ? inactiveSize.height : kMinItemHeight 83 | 84 | let marginWidth = activeWidth - inactiveWidth 85 | let marginHeight = activeHeight - inactiveHeight 86 | 87 | let leftWidth = inactiveWidth + marginWidth * leftScare 88 | let rightWidth = inactiveWidth + marginWidth * rightScare 89 | let leftHeight = inactiveHeight + marginHeight * leftScare 90 | let rightHeight = inactiveHeight + marginHeight * rightScare 91 | 92 | 93 | let leftX = (maxIndicatorSize.width - leftWidth) * 0.5 + (maxIndicatorSize.width + columnSpacing) * CGFloat(leftIndex) 94 | let rightX = (maxIndicatorSize.width - rightWidth) * 0.5 + (maxIndicatorSize.width + columnSpacing) * CGFloat(rightIndex) 95 | 96 | leftLayer.frame = CGRect(x: leftX, 97 | y: (maxIndicatorSize.height - leftHeight) * 0.5, 98 | width: leftWidth, 99 | height: leftHeight) 100 | 101 | 102 | 103 | rightLayer.frame = CGRect(x: rightX, 104 | y: (maxIndicatorSize.height - rightHeight) * 0.5, 105 | width: rightWidth, 106 | height: rightHeight) 107 | 108 | 109 | if leftWidth > leftHeight { 110 | leftLayer.cornerRadius = leftHeight*0.5 111 | }else { 112 | leftLayer.cornerRadius = leftWidth*0.5 113 | } 114 | if rightWidth > rightHeight { 115 | rightLayer.cornerRadius = rightHeight*0.5 116 | }else { 117 | rightLayer.cornerRadius = rightWidth*0.5 118 | } 119 | 120 | 121 | 122 | for index in 0 ..< numberOfPages { 123 | if index != leftIndex, 124 | index != rightIndex { 125 | let layer = inactiveLayer[index] 126 | layer.frame = inactiveOriginFrame[index] 127 | hollowLayout(layer: layer, isActive: false) 128 | } 129 | } 130 | CATransaction.commit() 131 | } 132 | currentIndex = Int(progress) 133 | } 134 | 135 | override func updateCurrentPage(_ pageIndex: Int) { 136 | guard pageIndex >= 0 , 137 | pageIndex <= numberOfPages - 1, 138 | pageIndex != currentIndex 139 | else { return } 140 | 141 | let duration: CFTimeInterval = isAnimation ? 0.6 : 0.3 142 | 143 | for index in 0 ..< numberOfPages { 144 | if index == currentIndex { 145 | CATransaction.begin() 146 | CATransaction.setAnimationDuration(duration) 147 | let layer = inactiveLayer[index] 148 | layer.frame = inactiveOriginFrame[index] 149 | hollowLayout(layer: layer, isActive: false) 150 | CATransaction.commit() 151 | }else if index == pageIndex { 152 | let layer = inactiveLayer[index] 153 | let frame = inactiveOriginFrame[index] 154 | 155 | CATransaction.begin() 156 | CATransaction.setAnimationDuration(duration) 157 | layer.frame = CGRect(x: frame.origin.x - (self.activeSize.width - self.inactiveSize.width) * 0.5, 158 | y: (self.maxIndicatorSize.height - self.activeSize.height) * 0.5, 159 | width: self.activeSize.width, 160 | height: self.activeSize.height) 161 | hollowLayout(layer: layer, isActive: true) 162 | CATransaction.commit() 163 | } 164 | } 165 | currentIndex = pageIndex 166 | } 167 | 168 | override func inactiveHollowLayout() { 169 | hollowLayout() 170 | } 171 | 172 | override func activeHollowLayout() { 173 | hollowLayout() 174 | } 175 | 176 | // MARK: - -------------------------- Layout -------------------------- 177 | override func layoutInactiveIndicators() { 178 | inactiveOriginFrame = [] 179 | let x = (maxIndicatorSize.width - inactiveSize.width) * 0.5 180 | let y = (maxIndicatorSize.height - inactiveSize.height) * 0.5 181 | let inactiveWidth = inactiveSize.width > kMinItemWidth ? inactiveSize.width : kMinItemWidth 182 | let inactiveHeight = inactiveSize.height > kMinItemHeight ? inactiveSize.height : kMinItemHeight 183 | var layerFrame = CGRect(x: x, 184 | y: y, 185 | width: inactiveWidth , 186 | height: inactiveHeight) 187 | inactiveLayer.forEach() { layer in 188 | layer.frame = layerFrame 189 | inactiveOriginFrame.append(layerFrame) 190 | layerFrame.origin.x += maxIndicatorSize.width + columnSpacing 191 | } 192 | hollowLayout() 193 | } 194 | } 195 | 196 | extension JXPageControlScale { 197 | 198 | private func hollowLayout() { 199 | if isInactiveHollow { 200 | for (index, layer) in inactiveLayer.enumerated() { 201 | if index == currentIndex, !isActiveHollow { 202 | layer.backgroundColor = activeColor.cgColor 203 | }else { 204 | layer.backgroundColor = UIColor.clear.cgColor 205 | layer.borderColor = activeColor.cgColor 206 | } 207 | layer.borderColor = activeColor.cgColor 208 | layer.borderWidth = 1 209 | } 210 | } 211 | else { 212 | for (index, layer) in inactiveLayer.enumerated() { 213 | if index == currentIndex { 214 | layer.backgroundColor = activeColor.cgColor 215 | }else { 216 | layer.backgroundColor = inactiveColor.cgColor 217 | } 218 | layer.borderWidth = 0 219 | } 220 | 221 | } 222 | } 223 | 224 | private func hollowLayout(layer: CALayer, isActive: Bool) { 225 | /// Set backgroundcolor 226 | if isInactiveHollow { 227 | if isActive, 228 | !isActiveHollow { 229 | layer.backgroundColor = activeColor.cgColor 230 | }else { 231 | layer.backgroundColor = UIColor.clear.cgColor 232 | layer.borderColor = activeColor.cgColor 233 | } 234 | }else { 235 | if isActive { 236 | layer.backgroundColor = activeColor.cgColor 237 | }else { 238 | layer.backgroundColor = inactiveColor.cgColor 239 | } 240 | } 241 | 242 | /// Set cornerRadius 243 | if layer.frame.width > layer.frame.height { 244 | layer.cornerRadius = layer.frame.height*0.5 245 | }else { 246 | layer.cornerRadius = layer.frame.width*0.5 247 | } 248 | } 249 | 250 | } 251 | -------------------------------------------------------------------------------- /Example/JXPageControl.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1F2E425222D828AC002604B9 /* JumpVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1F2E425122D828AC002604B9 /* JumpVC.swift */; }; 11 | 1F2E425422D871CB002604B9 /* ScareVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1F2E425322D871CB002604B9 /* ScareVC.swift */; }; 12 | 1F3A411822D9A04300797834 /* FillVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1F3A411722D9A04300797834 /* FillVC.swift */; }; 13 | 1F3A411A22D9A05800797834 /* ExchangeVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1F3A411922D9A05800797834 /* ExchangeVC.swift */; }; 14 | 1F3A411C22D9A06B00797834 /* ChamelonVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1F3A411B22D9A06B00797834 /* ChamelonVC.swift */; }; 15 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 16 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 17 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 18 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 19 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 20 | 67429F55855D77F92FC1DAAC /* Pods_JXPageControl_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DE732A85388ABCEB27F1779D /* Pods_JXPageControl_Example.framework */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXContainerItemProxy section */ 24 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 27 | proxyType = 1; 28 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 29 | remoteInfo = JXPageControl; 30 | }; 31 | /* End PBXContainerItemProxy section */ 32 | 33 | /* Begin PBXFileReference section */ 34 | 1F244DE422CC592200D95502 /* JXPageControl_Example-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "JXPageControl_Example-Bridging-Header.h"; sourceTree = ""; }; 35 | 1F2E425122D828AC002604B9 /* JumpVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JumpVC.swift; sourceTree = ""; }; 36 | 1F2E425322D871CB002604B9 /* ScareVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScareVC.swift; sourceTree = ""; }; 37 | 1F3A411722D9A04300797834 /* FillVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FillVC.swift; sourceTree = ""; }; 38 | 1F3A411922D9A05800797834 /* ExchangeVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExchangeVC.swift; sourceTree = ""; }; 39 | 1F3A411B22D9A06B00797834 /* ChamelonVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChamelonVC.swift; sourceTree = ""; }; 40 | 2022475EB28DA4F7E79ECD61 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 41 | 43B346F57B28778FC3D9EDB8 /* JXPageControl.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = JXPageControl.podspec; path = ../JXPageControl.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 42 | 607FACD01AFB9204008FA782 /* JXPageControl_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JXPageControl_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 45 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 46 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 47 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 48 | 607FACE51AFB9204008FA782 /* JXPageControl_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = JXPageControl_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 51 | 6E77405A26D77C380010175C /* ReleaseNote.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = ReleaseNote.md; path = ../ReleaseNote.md; sourceTree = ""; }; 52 | A8CB0AF3FED8097793856774 /* Pods-JXPageControl_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-JXPageControl_Example.release.xcconfig"; path = "Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example.release.xcconfig"; sourceTree = ""; }; 53 | AC47C10AF61EDBD42216C3D7 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 54 | C7A289031C73B4FF5F3F6399 /* Pods-JXPageControl_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-JXPageControl_Example.debug.xcconfig"; path = "Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example.debug.xcconfig"; sourceTree = ""; }; 55 | DE732A85388ABCEB27F1779D /* Pods_JXPageControl_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_JXPageControl_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | 67429F55855D77F92FC1DAAC /* Pods_JXPageControl_Example.framework in Frameworks */, 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | /* End PBXFrameworksBuildPhase section */ 75 | 76 | /* Begin PBXGroup section */ 77 | 1F3A411D22D9AED800797834 /* Demo */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 1F2E425122D828AC002604B9 /* JumpVC.swift */, 81 | 1F2E425322D871CB002604B9 /* ScareVC.swift */, 82 | 1F3A411722D9A04300797834 /* FillVC.swift */, 83 | 1F3A411922D9A05800797834 /* ExchangeVC.swift */, 84 | 1F3A411B22D9A06B00797834 /* ChamelonVC.swift */, 85 | ); 86 | path = Demo; 87 | sourceTree = ""; 88 | }; 89 | 4FB7F95DA92E6371C2921764 /* Pods */ = { 90 | isa = PBXGroup; 91 | children = ( 92 | C7A289031C73B4FF5F3F6399 /* Pods-JXPageControl_Example.debug.xcconfig */, 93 | A8CB0AF3FED8097793856774 /* Pods-JXPageControl_Example.release.xcconfig */, 94 | ); 95 | path = Pods; 96 | sourceTree = ""; 97 | }; 98 | 607FACC71AFB9204008FA782 = { 99 | isa = PBXGroup; 100 | children = ( 101 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 102 | 607FACD21AFB9204008FA782 /* Example for JXPageControl */, 103 | 607FACE81AFB9204008FA782 /* Tests */, 104 | 607FACD11AFB9204008FA782 /* Products */, 105 | 4FB7F95DA92E6371C2921764 /* Pods */, 106 | D89FF32A6D4DEC3DF2E0680D /* Frameworks */, 107 | ); 108 | sourceTree = ""; 109 | }; 110 | 607FACD11AFB9204008FA782 /* Products */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 607FACD01AFB9204008FA782 /* JXPageControl_Example.app */, 114 | 607FACE51AFB9204008FA782 /* JXPageControl_Tests.xctest */, 115 | ); 116 | name = Products; 117 | sourceTree = ""; 118 | }; 119 | 607FACD21AFB9204008FA782 /* Example for JXPageControl */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | 1F3A411D22D9AED800797834 /* Demo */, 123 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 124 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 125 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 126 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 127 | 607FACD31AFB9204008FA782 /* Supporting Files */, 128 | 1F244DE422CC592200D95502 /* JXPageControl_Example-Bridging-Header.h */, 129 | ); 130 | name = "Example for JXPageControl"; 131 | path = JXPageControl; 132 | sourceTree = ""; 133 | }; 134 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | 607FACD41AFB9204008FA782 /* Info.plist */, 138 | ); 139 | name = "Supporting Files"; 140 | sourceTree = ""; 141 | }; 142 | 607FACE81AFB9204008FA782 /* Tests */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 146 | 607FACE91AFB9204008FA782 /* Supporting Files */, 147 | ); 148 | path = Tests; 149 | sourceTree = ""; 150 | }; 151 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 607FACEA1AFB9204008FA782 /* Info.plist */, 155 | ); 156 | name = "Supporting Files"; 157 | sourceTree = ""; 158 | }; 159 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 160 | isa = PBXGroup; 161 | children = ( 162 | 43B346F57B28778FC3D9EDB8 /* JXPageControl.podspec */, 163 | AC47C10AF61EDBD42216C3D7 /* README.md */, 164 | 6E77405A26D77C380010175C /* ReleaseNote.md */, 165 | 2022475EB28DA4F7E79ECD61 /* LICENSE */, 166 | ); 167 | name = "Podspec Metadata"; 168 | sourceTree = ""; 169 | }; 170 | D89FF32A6D4DEC3DF2E0680D /* Frameworks */ = { 171 | isa = PBXGroup; 172 | children = ( 173 | DE732A85388ABCEB27F1779D /* Pods_JXPageControl_Example.framework */, 174 | ); 175 | name = Frameworks; 176 | sourceTree = ""; 177 | }; 178 | /* End PBXGroup section */ 179 | 180 | /* Begin PBXNativeTarget section */ 181 | 607FACCF1AFB9204008FA782 /* JXPageControl_Example */ = { 182 | isa = PBXNativeTarget; 183 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "JXPageControl_Example" */; 184 | buildPhases = ( 185 | 0CE3A2A43F7105E3344DE41B /* [CP] Check Pods Manifest.lock */, 186 | 607FACCC1AFB9204008FA782 /* Sources */, 187 | 607FACCD1AFB9204008FA782 /* Frameworks */, 188 | 607FACCE1AFB9204008FA782 /* Resources */, 189 | A61366E26C90924FB62A9D74 /* [CP] Embed Pods Frameworks */, 190 | ); 191 | buildRules = ( 192 | ); 193 | dependencies = ( 194 | ); 195 | name = JXPageControl_Example; 196 | productName = JXPageControl; 197 | productReference = 607FACD01AFB9204008FA782 /* JXPageControl_Example.app */; 198 | productType = "com.apple.product-type.application"; 199 | }; 200 | 607FACE41AFB9204008FA782 /* JXPageControl_Tests */ = { 201 | isa = PBXNativeTarget; 202 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "JXPageControl_Tests" */; 203 | buildPhases = ( 204 | 607FACE11AFB9204008FA782 /* Sources */, 205 | 607FACE21AFB9204008FA782 /* Frameworks */, 206 | 607FACE31AFB9204008FA782 /* Resources */, 207 | ); 208 | buildRules = ( 209 | ); 210 | dependencies = ( 211 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 212 | ); 213 | name = JXPageControl_Tests; 214 | productName = Tests; 215 | productReference = 607FACE51AFB9204008FA782 /* JXPageControl_Tests.xctest */; 216 | productType = "com.apple.product-type.bundle.unit-test"; 217 | }; 218 | /* End PBXNativeTarget section */ 219 | 220 | /* Begin PBXProject section */ 221 | 607FACC81AFB9204008FA782 /* Project object */ = { 222 | isa = PBXProject; 223 | attributes = { 224 | LastSwiftUpdateCheck = 0830; 225 | LastUpgradeCheck = 1010; 226 | ORGANIZATIONNAME = CocoaPods; 227 | TargetAttributes = { 228 | 607FACCF1AFB9204008FA782 = { 229 | CreatedOnToolsVersion = 6.3.1; 230 | DevelopmentTeam = ATRZR4BSXQ; 231 | LastSwiftMigration = 1020; 232 | }; 233 | 607FACE41AFB9204008FA782 = { 234 | CreatedOnToolsVersion = 6.3.1; 235 | LastSwiftMigration = 0900; 236 | TestTargetID = 607FACCF1AFB9204008FA782; 237 | }; 238 | }; 239 | }; 240 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "JXPageControl" */; 241 | compatibilityVersion = "Xcode 3.2"; 242 | developmentRegion = English; 243 | hasScannedForEncodings = 0; 244 | knownRegions = ( 245 | English, 246 | en, 247 | Base, 248 | ); 249 | mainGroup = 607FACC71AFB9204008FA782; 250 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 251 | projectDirPath = ""; 252 | projectRoot = ""; 253 | targets = ( 254 | 607FACCF1AFB9204008FA782 /* JXPageControl_Example */, 255 | 607FACE41AFB9204008FA782 /* JXPageControl_Tests */, 256 | ); 257 | }; 258 | /* End PBXProject section */ 259 | 260 | /* Begin PBXResourcesBuildPhase section */ 261 | 607FACCE1AFB9204008FA782 /* Resources */ = { 262 | isa = PBXResourcesBuildPhase; 263 | buildActionMask = 2147483647; 264 | files = ( 265 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 266 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 267 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | }; 271 | 607FACE31AFB9204008FA782 /* Resources */ = { 272 | isa = PBXResourcesBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | ); 276 | runOnlyForDeploymentPostprocessing = 0; 277 | }; 278 | /* End PBXResourcesBuildPhase section */ 279 | 280 | /* Begin PBXShellScriptBuildPhase section */ 281 | 0CE3A2A43F7105E3344DE41B /* [CP] Check Pods Manifest.lock */ = { 282 | isa = PBXShellScriptBuildPhase; 283 | buildActionMask = 2147483647; 284 | files = ( 285 | ); 286 | inputFileListPaths = ( 287 | ); 288 | inputPaths = ( 289 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 290 | "${PODS_ROOT}/Manifest.lock", 291 | ); 292 | name = "[CP] Check Pods Manifest.lock"; 293 | outputFileListPaths = ( 294 | ); 295 | outputPaths = ( 296 | "$(DERIVED_FILE_DIR)/Pods-JXPageControl_Example-checkManifestLockResult.txt", 297 | ); 298 | runOnlyForDeploymentPostprocessing = 0; 299 | shellPath = /bin/sh; 300 | 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"; 301 | showEnvVarsInLog = 0; 302 | }; 303 | A61366E26C90924FB62A9D74 /* [CP] Embed Pods Frameworks */ = { 304 | isa = PBXShellScriptBuildPhase; 305 | buildActionMask = 2147483647; 306 | files = ( 307 | ); 308 | inputFileListPaths = ( 309 | ); 310 | inputPaths = ( 311 | "${PODS_ROOT}/Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example-frameworks.sh", 312 | "${BUILT_PRODUCTS_DIR}/JXPageControl/JXPageControl.framework", 313 | ); 314 | name = "[CP] Embed Pods Frameworks"; 315 | outputFileListPaths = ( 316 | ); 317 | outputPaths = ( 318 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/JXPageControl.framework", 319 | ); 320 | runOnlyForDeploymentPostprocessing = 0; 321 | shellPath = /bin/sh; 322 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example-frameworks.sh\"\n"; 323 | showEnvVarsInLog = 0; 324 | }; 325 | /* End PBXShellScriptBuildPhase section */ 326 | 327 | /* Begin PBXSourcesBuildPhase section */ 328 | 607FACCC1AFB9204008FA782 /* Sources */ = { 329 | isa = PBXSourcesBuildPhase; 330 | buildActionMask = 2147483647; 331 | files = ( 332 | 1F3A411C22D9A06B00797834 /* ChamelonVC.swift in Sources */, 333 | 1F2E425422D871CB002604B9 /* ScareVC.swift in Sources */, 334 | 1F3A411822D9A04300797834 /* FillVC.swift in Sources */, 335 | 1F3A411A22D9A05800797834 /* ExchangeVC.swift in Sources */, 336 | 1F2E425222D828AC002604B9 /* JumpVC.swift in Sources */, 337 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 338 | ); 339 | runOnlyForDeploymentPostprocessing = 0; 340 | }; 341 | 607FACE11AFB9204008FA782 /* Sources */ = { 342 | isa = PBXSourcesBuildPhase; 343 | buildActionMask = 2147483647; 344 | files = ( 345 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 346 | ); 347 | runOnlyForDeploymentPostprocessing = 0; 348 | }; 349 | /* End PBXSourcesBuildPhase section */ 350 | 351 | /* Begin PBXTargetDependency section */ 352 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 353 | isa = PBXTargetDependency; 354 | target = 607FACCF1AFB9204008FA782 /* JXPageControl_Example */; 355 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 356 | }; 357 | /* End PBXTargetDependency section */ 358 | 359 | /* Begin PBXVariantGroup section */ 360 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 361 | isa = PBXVariantGroup; 362 | children = ( 363 | 607FACDA1AFB9204008FA782 /* Base */, 364 | ); 365 | name = Main.storyboard; 366 | sourceTree = ""; 367 | }; 368 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 369 | isa = PBXVariantGroup; 370 | children = ( 371 | 607FACDF1AFB9204008FA782 /* Base */, 372 | ); 373 | name = LaunchScreen.xib; 374 | sourceTree = ""; 375 | }; 376 | /* End PBXVariantGroup section */ 377 | 378 | /* Begin XCBuildConfiguration section */ 379 | 607FACED1AFB9204008FA782 /* Debug */ = { 380 | isa = XCBuildConfiguration; 381 | buildSettings = { 382 | ALWAYS_SEARCH_USER_PATHS = NO; 383 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 384 | CLANG_CXX_LIBRARY = "libc++"; 385 | CLANG_ENABLE_MODULES = YES; 386 | CLANG_ENABLE_OBJC_ARC = YES; 387 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 388 | CLANG_WARN_BOOL_CONVERSION = YES; 389 | CLANG_WARN_COMMA = YES; 390 | CLANG_WARN_CONSTANT_CONVERSION = YES; 391 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 392 | CLANG_WARN_EMPTY_BODY = YES; 393 | CLANG_WARN_ENUM_CONVERSION = YES; 394 | CLANG_WARN_INFINITE_RECURSION = YES; 395 | CLANG_WARN_INT_CONVERSION = YES; 396 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 397 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 398 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 399 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 400 | CLANG_WARN_STRICT_PROTOTYPES = YES; 401 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 402 | CLANG_WARN_UNREACHABLE_CODE = YES; 403 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 404 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 405 | COPY_PHASE_STRIP = NO; 406 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 407 | ENABLE_STRICT_OBJC_MSGSEND = YES; 408 | ENABLE_TESTABILITY = YES; 409 | GCC_C_LANGUAGE_STANDARD = gnu99; 410 | GCC_DYNAMIC_NO_PIC = NO; 411 | GCC_NO_COMMON_BLOCKS = YES; 412 | GCC_OPTIMIZATION_LEVEL = 0; 413 | GCC_PREPROCESSOR_DEFINITIONS = ( 414 | "DEBUG=1", 415 | "$(inherited)", 416 | ); 417 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 418 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 419 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 420 | GCC_WARN_UNDECLARED_SELECTOR = YES; 421 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 422 | GCC_WARN_UNUSED_FUNCTION = YES; 423 | GCC_WARN_UNUSED_VARIABLE = YES; 424 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 425 | MTL_ENABLE_DEBUG_INFO = YES; 426 | ONLY_ACTIVE_ARCH = YES; 427 | SDKROOT = iphoneos; 428 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 429 | }; 430 | name = Debug; 431 | }; 432 | 607FACEE1AFB9204008FA782 /* Release */ = { 433 | isa = XCBuildConfiguration; 434 | buildSettings = { 435 | ALWAYS_SEARCH_USER_PATHS = NO; 436 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 437 | CLANG_CXX_LIBRARY = "libc++"; 438 | CLANG_ENABLE_MODULES = YES; 439 | CLANG_ENABLE_OBJC_ARC = YES; 440 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 441 | CLANG_WARN_BOOL_CONVERSION = YES; 442 | CLANG_WARN_COMMA = YES; 443 | CLANG_WARN_CONSTANT_CONVERSION = YES; 444 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 445 | CLANG_WARN_EMPTY_BODY = YES; 446 | CLANG_WARN_ENUM_CONVERSION = YES; 447 | CLANG_WARN_INFINITE_RECURSION = YES; 448 | CLANG_WARN_INT_CONVERSION = YES; 449 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 450 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 451 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 452 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 453 | CLANG_WARN_STRICT_PROTOTYPES = YES; 454 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 455 | CLANG_WARN_UNREACHABLE_CODE = YES; 456 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 457 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 458 | COPY_PHASE_STRIP = NO; 459 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 460 | ENABLE_NS_ASSERTIONS = NO; 461 | ENABLE_STRICT_OBJC_MSGSEND = YES; 462 | GCC_C_LANGUAGE_STANDARD = gnu99; 463 | GCC_NO_COMMON_BLOCKS = YES; 464 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 465 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 466 | GCC_WARN_UNDECLARED_SELECTOR = YES; 467 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 468 | GCC_WARN_UNUSED_FUNCTION = YES; 469 | GCC_WARN_UNUSED_VARIABLE = YES; 470 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 471 | MTL_ENABLE_DEBUG_INFO = NO; 472 | SDKROOT = iphoneos; 473 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 474 | VALIDATE_PRODUCT = YES; 475 | }; 476 | name = Release; 477 | }; 478 | 607FACF01AFB9204008FA782 /* Debug */ = { 479 | isa = XCBuildConfiguration; 480 | baseConfigurationReference = C7A289031C73B4FF5F3F6399 /* Pods-JXPageControl_Example.debug.xcconfig */; 481 | buildSettings = { 482 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 483 | CLANG_ENABLE_MODULES = YES; 484 | DEVELOPMENT_TEAM = ATRZR4BSXQ; 485 | INFOPLIST_FILE = JXPageControl/Info.plist; 486 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 487 | MODULE_NAME = ExampleApp; 488 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 489 | PRODUCT_NAME = "$(TARGET_NAME)"; 490 | SWIFT_OBJC_BRIDGING_HEADER = "JXPageControl/JXPageControl_Example-Bridging-Header.h"; 491 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 492 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 493 | SWIFT_VERSION = 5.0; 494 | }; 495 | name = Debug; 496 | }; 497 | 607FACF11AFB9204008FA782 /* Release */ = { 498 | isa = XCBuildConfiguration; 499 | baseConfigurationReference = A8CB0AF3FED8097793856774 /* Pods-JXPageControl_Example.release.xcconfig */; 500 | buildSettings = { 501 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 502 | CLANG_ENABLE_MODULES = YES; 503 | DEVELOPMENT_TEAM = ATRZR4BSXQ; 504 | INFOPLIST_FILE = JXPageControl/Info.plist; 505 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 506 | MODULE_NAME = ExampleApp; 507 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 508 | PRODUCT_NAME = "$(TARGET_NAME)"; 509 | SWIFT_OBJC_BRIDGING_HEADER = "JXPageControl/JXPageControl_Example-Bridging-Header.h"; 510 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 511 | SWIFT_VERSION = 5.0; 512 | }; 513 | name = Release; 514 | }; 515 | 607FACF31AFB9204008FA782 /* Debug */ = { 516 | isa = XCBuildConfiguration; 517 | buildSettings = { 518 | FRAMEWORK_SEARCH_PATHS = ( 519 | "$(SDKROOT)/Developer/Library/Frameworks", 520 | "$(inherited)", 521 | ); 522 | GCC_PREPROCESSOR_DEFINITIONS = ( 523 | "DEBUG=1", 524 | "$(inherited)", 525 | ); 526 | INFOPLIST_FILE = Tests/Info.plist; 527 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 528 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 529 | PRODUCT_NAME = "$(TARGET_NAME)"; 530 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 531 | SWIFT_VERSION = 4.0; 532 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JXPageControl_Example.app/JXPageControl_Example"; 533 | }; 534 | name = Debug; 535 | }; 536 | 607FACF41AFB9204008FA782 /* Release */ = { 537 | isa = XCBuildConfiguration; 538 | buildSettings = { 539 | FRAMEWORK_SEARCH_PATHS = ( 540 | "$(SDKROOT)/Developer/Library/Frameworks", 541 | "$(inherited)", 542 | ); 543 | INFOPLIST_FILE = Tests/Info.plist; 544 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 545 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 546 | PRODUCT_NAME = "$(TARGET_NAME)"; 547 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 548 | SWIFT_VERSION = 4.0; 549 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JXPageControl_Example.app/JXPageControl_Example"; 550 | }; 551 | name = Release; 552 | }; 553 | /* End XCBuildConfiguration section */ 554 | 555 | /* Begin XCConfigurationList section */ 556 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "JXPageControl" */ = { 557 | isa = XCConfigurationList; 558 | buildConfigurations = ( 559 | 607FACED1AFB9204008FA782 /* Debug */, 560 | 607FACEE1AFB9204008FA782 /* Release */, 561 | ); 562 | defaultConfigurationIsVisible = 0; 563 | defaultConfigurationName = Release; 564 | }; 565 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "JXPageControl_Example" */ = { 566 | isa = XCConfigurationList; 567 | buildConfigurations = ( 568 | 607FACF01AFB9204008FA782 /* Debug */, 569 | 607FACF11AFB9204008FA782 /* Release */, 570 | ); 571 | defaultConfigurationIsVisible = 0; 572 | defaultConfigurationName = Release; 573 | }; 574 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "JXPageControl_Tests" */ = { 575 | isa = XCConfigurationList; 576 | buildConfigurations = ( 577 | 607FACF31AFB9204008FA782 /* Debug */, 578 | 607FACF41AFB9204008FA782 /* Release */, 579 | ); 580 | defaultConfigurationIsVisible = 0; 581 | defaultConfigurationName = Release; 582 | }; 583 | /* End XCConfigurationList section */ 584 | }; 585 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 586 | } 587 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 13E9BE9CF5D405C33B87CBD9741E47BC /* JXPageControlFill.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8B7EF03A674413E76B380264648EA4B /* JXPageControlFill.swift */; }; 11 | 2A710515CC2249EE3B10311DA5C7887F /* JXPageControlExchange.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24BC9E499720109F6A122A04D7E20228 /* JXPageControlExchange.swift */; }; 12 | 37954452FD6439E6DB352EAA3D1F99C8 /* JXPageControl-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AC0DF01F7431F4786CC1C7BF3AD22BF /* JXPageControl-dummy.m */; }; 13 | 4065A8901F15D88AAB3D9E88D8F8D94F /* Pods-JXPageControl_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 89799B21FBFF0E01F7731C5B45D7E601 /* Pods-JXPageControl_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | 58BA38C6C2C2A89473121DAAC1A82816 /* JXPageControlType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 77A02B1A903C6C43BB1BE5888BBE48AD /* JXPageControlType.swift */; }; 15 | 698606E36B4CB83B70CDBF2B14F75F93 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CB4607EFCA7C5F75397649E792E2AFCB /* Foundation.framework */; }; 16 | 6A47A5EBB8C9A5EDB8E4954129C5AD13 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CB4607EFCA7C5F75397649E792E2AFCB /* Foundation.framework */; }; 17 | 6B6AB6A5D303A372E60E1F1F6407C1F2 /* JXPageControlEllipse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96D531A05927E6AAF9F468622F774F1B /* JXPageControlEllipse.swift */; }; 18 | 729A20288F278246EB5AC7FD634719F1 /* JXPageControlBoldLine.swift in Sources */ = {isa = PBXBuildFile; fileRef = D528B352BD6284B4A714F8EF620E42BC /* JXPageControlBoldLine.swift */; }; 19 | 7D0C1E4068AAC8004E118C4631B1217E /* JXPageControl-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 9DDE021A055C4F87DDBAB035927577F4 /* JXPageControl-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | A3ECA8427B508D46B32F5D432056C66A /* JXPageControlScale.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FBA4576830559FFABC491F02C1EC028 /* JXPageControlScale.swift */; }; 21 | AAE5BE5C107C5F6F71DF21CCA4CA7BD1 /* JXPageControlChameleon.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4D47670EB4DB44F55C5EF22CB6FB4446 /* JXPageControlChameleon.swift */; }; 22 | ACBE9C966E9603E8FA3695C26C992911 /* Pods-JXPageControl_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7CBA77E5E8EAAC067A6B0F5E9E4DF739 /* Pods-JXPageControl_Example-dummy.m */; }; 23 | B1FD041CB7FF5828582DB419A79CD256 /* JXPageControlJump.swift in Sources */ = {isa = PBXBuildFile; fileRef = 579A12092994104CB15E80FCA63EFB46 /* JXPageControlJump.swift */; }; 24 | D23A1A0131BB2E344B6A9BB49684C070 /* JXPageControlTool.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2FAE696ADD386608E55ADF8989E802E /* JXPageControlTool.swift */; }; 25 | D31AEC5768A9E007F31FC0452CBC84B6 /* JXPageControlBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4730A7F7F96687AF1A0D022F307661C7 /* JXPageControlBase.swift */; }; 26 | EF6123669E69639EC6E4E64118897959 /* JXPageControlLine.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04180408197080588EB95A3B64720BAB /* JXPageControlLine.swift */; }; 27 | /* End PBXBuildFile section */ 28 | 29 | /* Begin PBXContainerItemProxy section */ 30 | 76B5F3A59AE5B0F6AE412678ED770417 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = 945BACFC7D3DCFBC19B8DD28FAF9EB92; 35 | remoteInfo = JXPageControl; 36 | }; 37 | /* End PBXContainerItemProxy section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 039D1A6635669D130C0C91105CA516E8 /* Pods-JXPageControl_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-JXPageControl_Example-acknowledgements.plist"; sourceTree = ""; }; 41 | 04180408197080588EB95A3B64720BAB /* JXPageControlLine.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = JXPageControlLine.swift; path = JXPageControl/Classes/Jump/JXPageControlLine.swift; sourceTree = ""; }; 42 | 0FA0B517308DFECFD621E39311692706 /* Pods_JXPageControl_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_JXPageControl_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 1D4DE65261F7A6311EF1E742E96956F0 /* Pods-JXPageControl_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-JXPageControl_Example.debug.xcconfig"; sourceTree = ""; }; 44 | 24BC9E499720109F6A122A04D7E20228 /* JXPageControlExchange.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = JXPageControlExchange.swift; path = JXPageControl/Classes/Transform/JXPageControlExchange.swift; sourceTree = ""; }; 45 | 27FB68BE271459AD4C24807793983846 /* JXPageControl.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = JXPageControl.modulemap; sourceTree = ""; }; 46 | 32FD2DE5B32E6D832A1C30F5075B191A /* Pods-JXPageControl_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-JXPageControl_Example-Info.plist"; sourceTree = ""; }; 47 | 40A581A44018FAC2D7174CC9E4482AE6 /* JXPageControl.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = JXPageControl.xcconfig; sourceTree = ""; }; 48 | 4730A7F7F96687AF1A0D022F307661C7 /* JXPageControlBase.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = JXPageControlBase.swift; path = JXPageControl/Classes/Common/JXPageControlBase.swift; sourceTree = ""; }; 49 | 4D47670EB4DB44F55C5EF22CB6FB4446 /* JXPageControlChameleon.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = JXPageControlChameleon.swift; path = JXPageControl/Classes/Transform/JXPageControlChameleon.swift; sourceTree = ""; }; 50 | 575EB8184AFCA63CEB1334BE5A127B40 /* Pods-JXPageControl_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-JXPageControl_Example-frameworks.sh"; sourceTree = ""; }; 51 | 579A12092994104CB15E80FCA63EFB46 /* JXPageControlJump.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = JXPageControlJump.swift; path = JXPageControl/Classes/Jump/JXPageControlJump.swift; sourceTree = ""; }; 52 | 7179E9CC0C4875DCACAF3808ED76AD9E /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 53 | 77A02B1A903C6C43BB1BE5888BBE48AD /* JXPageControlType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = JXPageControlType.swift; path = JXPageControl/Classes/Common/JXPageControlType.swift; sourceTree = ""; }; 54 | 7AC0DF01F7431F4786CC1C7BF3AD22BF /* JXPageControl-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "JXPageControl-dummy.m"; sourceTree = ""; }; 55 | 7CBA77E5E8EAAC067A6B0F5E9E4DF739 /* Pods-JXPageControl_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-JXPageControl_Example-dummy.m"; sourceTree = ""; }; 56 | 89799B21FBFF0E01F7731C5B45D7E601 /* Pods-JXPageControl_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-JXPageControl_Example-umbrella.h"; sourceTree = ""; }; 57 | 96D531A05927E6AAF9F468622F774F1B /* JXPageControlEllipse.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = JXPageControlEllipse.swift; path = JXPageControl/Classes/Jump/JXPageControlEllipse.swift; sourceTree = ""; }; 58 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 59 | 9DDE021A055C4F87DDBAB035927577F4 /* JXPageControl-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "JXPageControl-umbrella.h"; sourceTree = ""; }; 60 | 9FBA4576830559FFABC491F02C1EC028 /* JXPageControlScale.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = JXPageControlScale.swift; path = JXPageControl/Classes/Transform/JXPageControlScale.swift; sourceTree = ""; }; 61 | A1E316767A8D5343F1CF03FFBB7F86F0 /* JXPageControl-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "JXPageControl-prefix.pch"; sourceTree = ""; }; 62 | A8B7EF03A674413E76B380264648EA4B /* JXPageControlFill.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = JXPageControlFill.swift; path = JXPageControl/Classes/Transform/JXPageControlFill.swift; sourceTree = ""; }; 63 | BB6FE697B48965154FA66001A7694B6A /* Pods-JXPageControl_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-JXPageControl_Example-acknowledgements.markdown"; sourceTree = ""; }; 64 | BB7A89F430590310D92146270182B421 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 65 | CB4607EFCA7C5F75397649E792E2AFCB /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 66 | D528B352BD6284B4A714F8EF620E42BC /* JXPageControlBoldLine.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = JXPageControlBoldLine.swift; path = JXPageControl/Classes/Jump/JXPageControlBoldLine.swift; sourceTree = ""; }; 67 | DB9DB1240578F217D9B7A098A8B2A4B4 /* Pods-JXPageControl_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-JXPageControl_Example.release.xcconfig"; sourceTree = ""; }; 68 | E2FAE696ADD386608E55ADF8989E802E /* JXPageControlTool.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = JXPageControlTool.swift; path = JXPageControl/Classes/Common/JXPageControlTool.swift; sourceTree = ""; }; 69 | ED53437A67A5EEB1F366E2A55F0F8BDA /* JXPageControl-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "JXPageControl-Info.plist"; sourceTree = ""; }; 70 | F21A0D1265304BD2C36DEAD816538724 /* JXPageControl.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = JXPageControl.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 71 | F38288281DBF5FBD8E38FABCB3E2FC1D /* JXPageControl.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = JXPageControl.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 72 | F97188DD25DE858BAF601DB910C02DFE /* Pods-JXPageControl_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-JXPageControl_Example.modulemap"; sourceTree = ""; }; 73 | /* End PBXFileReference section */ 74 | 75 | /* Begin PBXFrameworksBuildPhase section */ 76 | 1BE6EEB148DEFAAE390A5AE7CDD92226 /* Frameworks */ = { 77 | isa = PBXFrameworksBuildPhase; 78 | buildActionMask = 2147483647; 79 | files = ( 80 | 6A47A5EBB8C9A5EDB8E4954129C5AD13 /* Foundation.framework in Frameworks */, 81 | ); 82 | runOnlyForDeploymentPostprocessing = 0; 83 | }; 84 | 270620BC9D4B24371AF8F02F537E49D5 /* Frameworks */ = { 85 | isa = PBXFrameworksBuildPhase; 86 | buildActionMask = 2147483647; 87 | files = ( 88 | 698606E36B4CB83B70CDBF2B14F75F93 /* Foundation.framework in Frameworks */, 89 | ); 90 | runOnlyForDeploymentPostprocessing = 0; 91 | }; 92 | /* End PBXFrameworksBuildPhase section */ 93 | 94 | /* Begin PBXGroup section */ 95 | 14EB280A0C3C73CCC0F5B267E2174D61 /* Support Files */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 27FB68BE271459AD4C24807793983846 /* JXPageControl.modulemap */, 99 | 40A581A44018FAC2D7174CC9E4482AE6 /* JXPageControl.xcconfig */, 100 | 7AC0DF01F7431F4786CC1C7BF3AD22BF /* JXPageControl-dummy.m */, 101 | ED53437A67A5EEB1F366E2A55F0F8BDA /* JXPageControl-Info.plist */, 102 | A1E316767A8D5343F1CF03FFBB7F86F0 /* JXPageControl-prefix.pch */, 103 | 9DDE021A055C4F87DDBAB035927577F4 /* JXPageControl-umbrella.h */, 104 | ); 105 | name = "Support Files"; 106 | path = "Example/Pods/Target Support Files/JXPageControl"; 107 | sourceTree = ""; 108 | }; 109 | 3BB9E926297EEAD7D615189D57091509 /* Jump */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | D528B352BD6284B4A714F8EF620E42BC /* JXPageControlBoldLine.swift */, 113 | 96D531A05927E6AAF9F468622F774F1B /* JXPageControlEllipse.swift */, 114 | 579A12092994104CB15E80FCA63EFB46 /* JXPageControlJump.swift */, 115 | 04180408197080588EB95A3B64720BAB /* JXPageControlLine.swift */, 116 | ); 117 | name = Jump; 118 | sourceTree = ""; 119 | }; 120 | 5C410231D06753B3BA29A152843C6CB2 /* Common */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 4730A7F7F96687AF1A0D022F307661C7 /* JXPageControlBase.swift */, 124 | E2FAE696ADD386608E55ADF8989E802E /* JXPageControlTool.swift */, 125 | 77A02B1A903C6C43BB1BE5888BBE48AD /* JXPageControlType.swift */, 126 | ); 127 | name = Common; 128 | sourceTree = ""; 129 | }; 130 | 6BC82CDA59EF35E6AC1EB21D80B99EE1 /* Transform */ = { 131 | isa = PBXGroup; 132 | children = ( 133 | 4D47670EB4DB44F55C5EF22CB6FB4446 /* JXPageControlChameleon.swift */, 134 | 24BC9E499720109F6A122A04D7E20228 /* JXPageControlExchange.swift */, 135 | A8B7EF03A674413E76B380264648EA4B /* JXPageControlFill.swift */, 136 | 9FBA4576830559FFABC491F02C1EC028 /* JXPageControlScale.swift */, 137 | ); 138 | name = Transform; 139 | sourceTree = ""; 140 | }; 141 | 9B055D0CFEA43187E72B03DED11F5662 /* iOS */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | CB4607EFCA7C5F75397649E792E2AFCB /* Foundation.framework */, 145 | ); 146 | name = iOS; 147 | sourceTree = ""; 148 | }; 149 | 9EABB9A46EDE91CA4F3A1EDB43C42E40 /* Development Pods */ = { 150 | isa = PBXGroup; 151 | children = ( 152 | F19660A684B51FE1111B75E56B807E9C /* JXPageControl */, 153 | ); 154 | name = "Development Pods"; 155 | sourceTree = ""; 156 | }; 157 | A642874274C5243F6B26848B373D947D /* Products */ = { 158 | isa = PBXGroup; 159 | children = ( 160 | F21A0D1265304BD2C36DEAD816538724 /* JXPageControl.framework */, 161 | 0FA0B517308DFECFD621E39311692706 /* Pods_JXPageControl_Example.framework */, 162 | ); 163 | name = Products; 164 | sourceTree = ""; 165 | }; 166 | C57AE0F4CF838646A5F0A63E0F66C752 /* Pods-JXPageControl_Example */ = { 167 | isa = PBXGroup; 168 | children = ( 169 | F97188DD25DE858BAF601DB910C02DFE /* Pods-JXPageControl_Example.modulemap */, 170 | BB6FE697B48965154FA66001A7694B6A /* Pods-JXPageControl_Example-acknowledgements.markdown */, 171 | 039D1A6635669D130C0C91105CA516E8 /* Pods-JXPageControl_Example-acknowledgements.plist */, 172 | 7CBA77E5E8EAAC067A6B0F5E9E4DF739 /* Pods-JXPageControl_Example-dummy.m */, 173 | 575EB8184AFCA63CEB1334BE5A127B40 /* Pods-JXPageControl_Example-frameworks.sh */, 174 | 32FD2DE5B32E6D832A1C30F5075B191A /* Pods-JXPageControl_Example-Info.plist */, 175 | 89799B21FBFF0E01F7731C5B45D7E601 /* Pods-JXPageControl_Example-umbrella.h */, 176 | 1D4DE65261F7A6311EF1E742E96956F0 /* Pods-JXPageControl_Example.debug.xcconfig */, 177 | DB9DB1240578F217D9B7A098A8B2A4B4 /* Pods-JXPageControl_Example.release.xcconfig */, 178 | ); 179 | name = "Pods-JXPageControl_Example"; 180 | path = "Target Support Files/Pods-JXPageControl_Example"; 181 | sourceTree = ""; 182 | }; 183 | C99EFF0B56853529B0927490B6D16F0A /* Targets Support Files */ = { 184 | isa = PBXGroup; 185 | children = ( 186 | C57AE0F4CF838646A5F0A63E0F66C752 /* Pods-JXPageControl_Example */, 187 | ); 188 | name = "Targets Support Files"; 189 | sourceTree = ""; 190 | }; 191 | CF1408CF629C7361332E53B88F7BD30C = { 192 | isa = PBXGroup; 193 | children = ( 194 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 195 | 9EABB9A46EDE91CA4F3A1EDB43C42E40 /* Development Pods */, 196 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 197 | A642874274C5243F6B26848B373D947D /* Products */, 198 | C99EFF0B56853529B0927490B6D16F0A /* Targets Support Files */, 199 | ); 200 | sourceTree = ""; 201 | }; 202 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 203 | isa = PBXGroup; 204 | children = ( 205 | 9B055D0CFEA43187E72B03DED11F5662 /* iOS */, 206 | ); 207 | name = Frameworks; 208 | sourceTree = ""; 209 | }; 210 | F19660A684B51FE1111B75E56B807E9C /* JXPageControl */ = { 211 | isa = PBXGroup; 212 | children = ( 213 | 5C410231D06753B3BA29A152843C6CB2 /* Common */, 214 | 3BB9E926297EEAD7D615189D57091509 /* Jump */, 215 | F41364FBD5954139F86084617FA05FE7 /* Pod */, 216 | 14EB280A0C3C73CCC0F5B267E2174D61 /* Support Files */, 217 | 6BC82CDA59EF35E6AC1EB21D80B99EE1 /* Transform */, 218 | ); 219 | name = JXPageControl; 220 | path = ../..; 221 | sourceTree = ""; 222 | }; 223 | F41364FBD5954139F86084617FA05FE7 /* Pod */ = { 224 | isa = PBXGroup; 225 | children = ( 226 | F38288281DBF5FBD8E38FABCB3E2FC1D /* JXPageControl.podspec */, 227 | BB7A89F430590310D92146270182B421 /* LICENSE */, 228 | 7179E9CC0C4875DCACAF3808ED76AD9E /* README.md */, 229 | ); 230 | name = Pod; 231 | sourceTree = ""; 232 | }; 233 | /* End PBXGroup section */ 234 | 235 | /* Begin PBXHeadersBuildPhase section */ 236 | 69EA82B13E8EC3347A2CC60D61217E34 /* Headers */ = { 237 | isa = PBXHeadersBuildPhase; 238 | buildActionMask = 2147483647; 239 | files = ( 240 | 7D0C1E4068AAC8004E118C4631B1217E /* JXPageControl-umbrella.h in Headers */, 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | }; 244 | BC962E230ECF8EB6BF5BA10C8DCA9C43 /* Headers */ = { 245 | isa = PBXHeadersBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | 4065A8901F15D88AAB3D9E88D8F8D94F /* Pods-JXPageControl_Example-umbrella.h in Headers */, 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | }; 252 | /* End PBXHeadersBuildPhase section */ 253 | 254 | /* Begin PBXNativeTarget section */ 255 | 3262A8452603E99EBB75DBC5CDA43F70 /* Pods-JXPageControl_Example */ = { 256 | isa = PBXNativeTarget; 257 | buildConfigurationList = 0A5B923645142230D2287DDE90FA53BF /* Build configuration list for PBXNativeTarget "Pods-JXPageControl_Example" */; 258 | buildPhases = ( 259 | BC962E230ECF8EB6BF5BA10C8DCA9C43 /* Headers */, 260 | 148F951FEB4E5317DCC4E8A24387C728 /* Sources */, 261 | 1BE6EEB148DEFAAE390A5AE7CDD92226 /* Frameworks */, 262 | 9267D5CDCDC23DE16ED891F3AC3A508E /* Resources */, 263 | ); 264 | buildRules = ( 265 | ); 266 | dependencies = ( 267 | B004F4CFFFA084D413684E219B1D5513 /* PBXTargetDependency */, 268 | ); 269 | name = "Pods-JXPageControl_Example"; 270 | productName = "Pods-JXPageControl_Example"; 271 | productReference = 0FA0B517308DFECFD621E39311692706 /* Pods_JXPageControl_Example.framework */; 272 | productType = "com.apple.product-type.framework"; 273 | }; 274 | 945BACFC7D3DCFBC19B8DD28FAF9EB92 /* JXPageControl */ = { 275 | isa = PBXNativeTarget; 276 | buildConfigurationList = 16C22985B7865E7F59BA71183A4A0BCC /* Build configuration list for PBXNativeTarget "JXPageControl" */; 277 | buildPhases = ( 278 | 69EA82B13E8EC3347A2CC60D61217E34 /* Headers */, 279 | 39CF5DABA9F806D9C20F69465E8F2295 /* Sources */, 280 | 270620BC9D4B24371AF8F02F537E49D5 /* Frameworks */, 281 | 6ABC1A454B11099B45E828221927CC8A /* Resources */, 282 | ); 283 | buildRules = ( 284 | ); 285 | dependencies = ( 286 | ); 287 | name = JXPageControl; 288 | productName = JXPageControl; 289 | productReference = F21A0D1265304BD2C36DEAD816538724 /* JXPageControl.framework */; 290 | productType = "com.apple.product-type.framework"; 291 | }; 292 | /* End PBXNativeTarget section */ 293 | 294 | /* Begin PBXProject section */ 295 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 296 | isa = PBXProject; 297 | attributes = { 298 | LastSwiftUpdateCheck = 0930; 299 | LastUpgradeCheck = 0930; 300 | }; 301 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 302 | compatibilityVersion = "Xcode 3.2"; 303 | developmentRegion = English; 304 | hasScannedForEncodings = 0; 305 | knownRegions = ( 306 | English, 307 | en, 308 | ); 309 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 310 | productRefGroup = A642874274C5243F6B26848B373D947D /* Products */; 311 | projectDirPath = ""; 312 | projectRoot = ""; 313 | targets = ( 314 | 945BACFC7D3DCFBC19B8DD28FAF9EB92 /* JXPageControl */, 315 | 3262A8452603E99EBB75DBC5CDA43F70 /* Pods-JXPageControl_Example */, 316 | ); 317 | }; 318 | /* End PBXProject section */ 319 | 320 | /* Begin PBXResourcesBuildPhase section */ 321 | 6ABC1A454B11099B45E828221927CC8A /* Resources */ = { 322 | isa = PBXResourcesBuildPhase; 323 | buildActionMask = 2147483647; 324 | files = ( 325 | ); 326 | runOnlyForDeploymentPostprocessing = 0; 327 | }; 328 | 9267D5CDCDC23DE16ED891F3AC3A508E /* Resources */ = { 329 | isa = PBXResourcesBuildPhase; 330 | buildActionMask = 2147483647; 331 | files = ( 332 | ); 333 | runOnlyForDeploymentPostprocessing = 0; 334 | }; 335 | /* End PBXResourcesBuildPhase section */ 336 | 337 | /* Begin PBXSourcesBuildPhase section */ 338 | 148F951FEB4E5317DCC4E8A24387C728 /* Sources */ = { 339 | isa = PBXSourcesBuildPhase; 340 | buildActionMask = 2147483647; 341 | files = ( 342 | ACBE9C966E9603E8FA3695C26C992911 /* Pods-JXPageControl_Example-dummy.m in Sources */, 343 | ); 344 | runOnlyForDeploymentPostprocessing = 0; 345 | }; 346 | 39CF5DABA9F806D9C20F69465E8F2295 /* Sources */ = { 347 | isa = PBXSourcesBuildPhase; 348 | buildActionMask = 2147483647; 349 | files = ( 350 | 37954452FD6439E6DB352EAA3D1F99C8 /* JXPageControl-dummy.m in Sources */, 351 | D31AEC5768A9E007F31FC0452CBC84B6 /* JXPageControlBase.swift in Sources */, 352 | 729A20288F278246EB5AC7FD634719F1 /* JXPageControlBoldLine.swift in Sources */, 353 | AAE5BE5C107C5F6F71DF21CCA4CA7BD1 /* JXPageControlChameleon.swift in Sources */, 354 | 6B6AB6A5D303A372E60E1F1F6407C1F2 /* JXPageControlEllipse.swift in Sources */, 355 | 2A710515CC2249EE3B10311DA5C7887F /* JXPageControlExchange.swift in Sources */, 356 | 13E9BE9CF5D405C33B87CBD9741E47BC /* JXPageControlFill.swift in Sources */, 357 | B1FD041CB7FF5828582DB419A79CD256 /* JXPageControlJump.swift in Sources */, 358 | EF6123669E69639EC6E4E64118897959 /* JXPageControlLine.swift in Sources */, 359 | A3ECA8427B508D46B32F5D432056C66A /* JXPageControlScale.swift in Sources */, 360 | D23A1A0131BB2E344B6A9BB49684C070 /* JXPageControlTool.swift in Sources */, 361 | 58BA38C6C2C2A89473121DAAC1A82816 /* JXPageControlType.swift in Sources */, 362 | ); 363 | runOnlyForDeploymentPostprocessing = 0; 364 | }; 365 | /* End PBXSourcesBuildPhase section */ 366 | 367 | /* Begin PBXTargetDependency section */ 368 | B004F4CFFFA084D413684E219B1D5513 /* PBXTargetDependency */ = { 369 | isa = PBXTargetDependency; 370 | name = JXPageControl; 371 | target = 945BACFC7D3DCFBC19B8DD28FAF9EB92 /* JXPageControl */; 372 | targetProxy = 76B5F3A59AE5B0F6AE412678ED770417 /* PBXContainerItemProxy */; 373 | }; 374 | /* End PBXTargetDependency section */ 375 | 376 | /* Begin XCBuildConfiguration section */ 377 | 16886FDCD5FD9FAE8E8D1F894C97716C /* Debug */ = { 378 | isa = XCBuildConfiguration; 379 | baseConfigurationReference = 40A581A44018FAC2D7174CC9E4482AE6 /* JXPageControl.xcconfig */; 380 | buildSettings = { 381 | CODE_SIGN_IDENTITY = ""; 382 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 383 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 384 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 385 | CURRENT_PROJECT_VERSION = 1; 386 | DEFINES_MODULE = YES; 387 | DYLIB_COMPATIBILITY_VERSION = 1; 388 | DYLIB_CURRENT_VERSION = 1; 389 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 390 | GCC_PREFIX_HEADER = "Target Support Files/JXPageControl/JXPageControl-prefix.pch"; 391 | INFOPLIST_FILE = "Target Support Files/JXPageControl/JXPageControl-Info.plist"; 392 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 393 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 394 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 395 | MODULEMAP_FILE = "Target Support Files/JXPageControl/JXPageControl.modulemap"; 396 | PRODUCT_MODULE_NAME = JXPageControl; 397 | PRODUCT_NAME = JXPageControl; 398 | SDKROOT = iphoneos; 399 | SKIP_INSTALL = YES; 400 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 401 | SWIFT_VERSION = 5.0; 402 | TARGETED_DEVICE_FAMILY = "1,2"; 403 | VERSIONING_SYSTEM = "apple-generic"; 404 | VERSION_INFO_PREFIX = ""; 405 | }; 406 | name = Debug; 407 | }; 408 | A203E4C28660B98043324C5990D62E8B /* Debug */ = { 409 | isa = XCBuildConfiguration; 410 | baseConfigurationReference = 1D4DE65261F7A6311EF1E742E96956F0 /* Pods-JXPageControl_Example.debug.xcconfig */; 411 | buildSettings = { 412 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 413 | CODE_SIGN_IDENTITY = ""; 414 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 415 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 416 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 417 | CURRENT_PROJECT_VERSION = 1; 418 | DEFINES_MODULE = YES; 419 | DYLIB_COMPATIBILITY_VERSION = 1; 420 | DYLIB_CURRENT_VERSION = 1; 421 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 422 | INFOPLIST_FILE = "Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example-Info.plist"; 423 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 424 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 425 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 426 | MACH_O_TYPE = staticlib; 427 | MODULEMAP_FILE = "Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example.modulemap"; 428 | OTHER_LDFLAGS = ""; 429 | OTHER_LIBTOOLFLAGS = ""; 430 | PODS_ROOT = "$(SRCROOT)"; 431 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 432 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 433 | SDKROOT = iphoneos; 434 | SKIP_INSTALL = YES; 435 | TARGETED_DEVICE_FAMILY = "1,2"; 436 | VERSIONING_SYSTEM = "apple-generic"; 437 | VERSION_INFO_PREFIX = ""; 438 | }; 439 | name = Debug; 440 | }; 441 | AB4D69770D8ACE3A05E80BB3502666F6 /* Debug */ = { 442 | isa = XCBuildConfiguration; 443 | buildSettings = { 444 | ALWAYS_SEARCH_USER_PATHS = NO; 445 | CLANG_ANALYZER_NONNULL = YES; 446 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 447 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 448 | CLANG_CXX_LIBRARY = "libc++"; 449 | CLANG_ENABLE_MODULES = YES; 450 | CLANG_ENABLE_OBJC_ARC = YES; 451 | CLANG_ENABLE_OBJC_WEAK = YES; 452 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 453 | CLANG_WARN_BOOL_CONVERSION = YES; 454 | CLANG_WARN_COMMA = YES; 455 | CLANG_WARN_CONSTANT_CONVERSION = YES; 456 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 457 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 458 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 459 | CLANG_WARN_EMPTY_BODY = YES; 460 | CLANG_WARN_ENUM_CONVERSION = YES; 461 | CLANG_WARN_INFINITE_RECURSION = YES; 462 | CLANG_WARN_INT_CONVERSION = YES; 463 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 464 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 465 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 466 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 467 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 468 | CLANG_WARN_STRICT_PROTOTYPES = YES; 469 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 470 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 471 | CLANG_WARN_UNREACHABLE_CODE = YES; 472 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 473 | COPY_PHASE_STRIP = NO; 474 | DEBUG_INFORMATION_FORMAT = dwarf; 475 | ENABLE_STRICT_OBJC_MSGSEND = YES; 476 | ENABLE_TESTABILITY = YES; 477 | GCC_C_LANGUAGE_STANDARD = gnu11; 478 | GCC_DYNAMIC_NO_PIC = NO; 479 | GCC_NO_COMMON_BLOCKS = YES; 480 | GCC_OPTIMIZATION_LEVEL = 0; 481 | GCC_PREPROCESSOR_DEFINITIONS = ( 482 | "POD_CONFIGURATION_DEBUG=1", 483 | "DEBUG=1", 484 | "$(inherited)", 485 | ); 486 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 487 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 488 | GCC_WARN_UNDECLARED_SELECTOR = YES; 489 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 490 | GCC_WARN_UNUSED_FUNCTION = YES; 491 | GCC_WARN_UNUSED_VARIABLE = YES; 492 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 493 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 494 | MTL_FAST_MATH = YES; 495 | ONLY_ACTIVE_ARCH = YES; 496 | PRODUCT_NAME = "$(TARGET_NAME)"; 497 | STRIP_INSTALLED_PRODUCT = NO; 498 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 499 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 500 | SWIFT_VERSION = 4.2; 501 | SYMROOT = "${SRCROOT}/../build"; 502 | }; 503 | name = Debug; 504 | }; 505 | EBAE4867D8AD2B64266E19DEF6030E35 /* Release */ = { 506 | isa = XCBuildConfiguration; 507 | baseConfigurationReference = DB9DB1240578F217D9B7A098A8B2A4B4 /* Pods-JXPageControl_Example.release.xcconfig */; 508 | buildSettings = { 509 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 510 | CODE_SIGN_IDENTITY = ""; 511 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 512 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 513 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 514 | CURRENT_PROJECT_VERSION = 1; 515 | DEFINES_MODULE = YES; 516 | DYLIB_COMPATIBILITY_VERSION = 1; 517 | DYLIB_CURRENT_VERSION = 1; 518 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 519 | INFOPLIST_FILE = "Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example-Info.plist"; 520 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 521 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 522 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 523 | MACH_O_TYPE = staticlib; 524 | MODULEMAP_FILE = "Target Support Files/Pods-JXPageControl_Example/Pods-JXPageControl_Example.modulemap"; 525 | OTHER_LDFLAGS = ""; 526 | OTHER_LIBTOOLFLAGS = ""; 527 | PODS_ROOT = "$(SRCROOT)"; 528 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 529 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 530 | SDKROOT = iphoneos; 531 | SKIP_INSTALL = YES; 532 | TARGETED_DEVICE_FAMILY = "1,2"; 533 | VALIDATE_PRODUCT = YES; 534 | VERSIONING_SYSTEM = "apple-generic"; 535 | VERSION_INFO_PREFIX = ""; 536 | }; 537 | name = Release; 538 | }; 539 | F232B5ECA11A71BFA199A229B323F454 /* Release */ = { 540 | isa = XCBuildConfiguration; 541 | buildSettings = { 542 | ALWAYS_SEARCH_USER_PATHS = NO; 543 | CLANG_ANALYZER_NONNULL = YES; 544 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 545 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 546 | CLANG_CXX_LIBRARY = "libc++"; 547 | CLANG_ENABLE_MODULES = YES; 548 | CLANG_ENABLE_OBJC_ARC = YES; 549 | CLANG_ENABLE_OBJC_WEAK = YES; 550 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 551 | CLANG_WARN_BOOL_CONVERSION = YES; 552 | CLANG_WARN_COMMA = YES; 553 | CLANG_WARN_CONSTANT_CONVERSION = YES; 554 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 555 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 556 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 557 | CLANG_WARN_EMPTY_BODY = YES; 558 | CLANG_WARN_ENUM_CONVERSION = YES; 559 | CLANG_WARN_INFINITE_RECURSION = YES; 560 | CLANG_WARN_INT_CONVERSION = YES; 561 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 562 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 563 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 564 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 565 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 566 | CLANG_WARN_STRICT_PROTOTYPES = YES; 567 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 568 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 569 | CLANG_WARN_UNREACHABLE_CODE = YES; 570 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 571 | COPY_PHASE_STRIP = NO; 572 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 573 | ENABLE_NS_ASSERTIONS = NO; 574 | ENABLE_STRICT_OBJC_MSGSEND = YES; 575 | GCC_C_LANGUAGE_STANDARD = gnu11; 576 | GCC_NO_COMMON_BLOCKS = YES; 577 | GCC_PREPROCESSOR_DEFINITIONS = ( 578 | "POD_CONFIGURATION_RELEASE=1", 579 | "$(inherited)", 580 | ); 581 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 582 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 583 | GCC_WARN_UNDECLARED_SELECTOR = YES; 584 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 585 | GCC_WARN_UNUSED_FUNCTION = YES; 586 | GCC_WARN_UNUSED_VARIABLE = YES; 587 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 588 | MTL_ENABLE_DEBUG_INFO = NO; 589 | MTL_FAST_MATH = YES; 590 | PRODUCT_NAME = "$(TARGET_NAME)"; 591 | STRIP_INSTALLED_PRODUCT = NO; 592 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 593 | SWIFT_VERSION = 4.2; 594 | SYMROOT = "${SRCROOT}/../build"; 595 | }; 596 | name = Release; 597 | }; 598 | F8E0D0EDDF7693EDA709B685A5A24BAE /* Release */ = { 599 | isa = XCBuildConfiguration; 600 | baseConfigurationReference = 40A581A44018FAC2D7174CC9E4482AE6 /* JXPageControl.xcconfig */; 601 | buildSettings = { 602 | CODE_SIGN_IDENTITY = ""; 603 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 604 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 605 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 606 | CURRENT_PROJECT_VERSION = 1; 607 | DEFINES_MODULE = YES; 608 | DYLIB_COMPATIBILITY_VERSION = 1; 609 | DYLIB_CURRENT_VERSION = 1; 610 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 611 | GCC_PREFIX_HEADER = "Target Support Files/JXPageControl/JXPageControl-prefix.pch"; 612 | INFOPLIST_FILE = "Target Support Files/JXPageControl/JXPageControl-Info.plist"; 613 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 614 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 615 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 616 | MODULEMAP_FILE = "Target Support Files/JXPageControl/JXPageControl.modulemap"; 617 | PRODUCT_MODULE_NAME = JXPageControl; 618 | PRODUCT_NAME = JXPageControl; 619 | SDKROOT = iphoneos; 620 | SKIP_INSTALL = YES; 621 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 622 | SWIFT_VERSION = 5.0; 623 | TARGETED_DEVICE_FAMILY = "1,2"; 624 | VALIDATE_PRODUCT = YES; 625 | VERSIONING_SYSTEM = "apple-generic"; 626 | VERSION_INFO_PREFIX = ""; 627 | }; 628 | name = Release; 629 | }; 630 | /* End XCBuildConfiguration section */ 631 | 632 | /* Begin XCConfigurationList section */ 633 | 0A5B923645142230D2287DDE90FA53BF /* Build configuration list for PBXNativeTarget "Pods-JXPageControl_Example" */ = { 634 | isa = XCConfigurationList; 635 | buildConfigurations = ( 636 | A203E4C28660B98043324C5990D62E8B /* Debug */, 637 | EBAE4867D8AD2B64266E19DEF6030E35 /* Release */, 638 | ); 639 | defaultConfigurationIsVisible = 0; 640 | defaultConfigurationName = Release; 641 | }; 642 | 16C22985B7865E7F59BA71183A4A0BCC /* Build configuration list for PBXNativeTarget "JXPageControl" */ = { 643 | isa = XCConfigurationList; 644 | buildConfigurations = ( 645 | 16886FDCD5FD9FAE8E8D1F894C97716C /* Debug */, 646 | F8E0D0EDDF7693EDA709B685A5A24BAE /* Release */, 647 | ); 648 | defaultConfigurationIsVisible = 0; 649 | defaultConfigurationName = Release; 650 | }; 651 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 652 | isa = XCConfigurationList; 653 | buildConfigurations = ( 654 | AB4D69770D8ACE3A05E80BB3502666F6 /* Debug */, 655 | F232B5ECA11A71BFA199A229B323F454 /* Release */, 656 | ); 657 | defaultConfigurationIsVisible = 0; 658 | defaultConfigurationName = Release; 659 | }; 660 | /* End XCConfigurationList section */ 661 | }; 662 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 663 | } 664 | --------------------------------------------------------------------------------