├── Pod ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── NSTimer+Closure.swift │ └── ANLongTapButton.swift ├── _Pods.xcodeproj ├── Screenshots ├── example01.gif └── example02.gif ├── Example ├── ANLongTapButton │ ├── Images.xcassets │ │ ├── Contents.json │ │ ├── video_record.imageset │ │ │ ├── video_record@2x.png │ │ │ ├── video_record@3x.png │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── HomeViewController.swift │ ├── RecordViewController.swift │ ├── Info.plist │ ├── AppDelegate.swift │ ├── PayNowViewController.swift │ └── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard ├── Pods │ ├── Target Support Files │ │ ├── ANLongTapButton │ │ │ ├── ANLongTapButton-prefix.pch │ │ │ ├── ANLongTapButton.modulemap │ │ │ ├── ANLongTapButton-dummy.m │ │ │ ├── ANLongTapButton-umbrella.h │ │ │ ├── ANLongTapButton.xcconfig │ │ │ └── Info.plist │ │ └── Pods-ANLongTapButton_Example │ │ │ ├── Pods-ANLongTapButton_Example.modulemap │ │ │ ├── Pods-ANLongTapButton_Example-dummy.m │ │ │ ├── Pods-ANLongTapButton_Example-umbrella.h │ │ │ ├── Pods-ANLongTapButton_Example.debug.xcconfig │ │ │ ├── Pods-ANLongTapButton_Example.release.xcconfig │ │ │ ├── Info.plist │ │ │ ├── Pods-ANLongTapButton_Example-acknowledgements.markdown │ │ │ ├── Pods-ANLongTapButton_Example-acknowledgements.plist │ │ │ ├── Pods-ANLongTapButton_Example-frameworks.sh │ │ │ └── Pods-ANLongTapButton_Example-resources.sh │ ├── Manifest.lock │ ├── Local Podspecs │ │ └── ANLongTapButton.podspec.json │ └── Pods.xcodeproj │ │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── ANLongTapButton.xcscheme │ │ └── project.pbxproj ├── Podfile ├── ANLongTapButton.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── ANLongTapButton-Example.xcscheme │ └── project.pbxproj ├── Podfile.lock └── ANLongTapButton.xcworkspace │ └── contents.xcworkspacedata ├── .travis.yml ├── .gitignore ├── ANLongTapButton.podspec ├── LICENSE └── README.md /Pod/Assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Pod/Classes/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /Screenshots/example01.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antrix1989/ANLongTapButton/HEAD/Screenshots/example01.gif -------------------------------------------------------------------------------- /Screenshots/example02.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antrix1989/ANLongTapButton/HEAD/Screenshots/example02.gif -------------------------------------------------------------------------------- /Example/ANLongTapButton/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ANLongTapButton/ANLongTapButton-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | use_frameworks! 3 | 4 | target 'ANLongTapButton_Example', :exclusive => true do 5 | pod "ANLongTapButton", :path => "../" 6 | end 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ANLongTapButton/ANLongTapButton.modulemap: -------------------------------------------------------------------------------- 1 | framework module ANLongTapButton { 2 | umbrella header "ANLongTapButton-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/ANLongTapButton/Images.xcassets/video_record.imageset/video_record@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antrix1989/ANLongTapButton/HEAD/Example/ANLongTapButton/Images.xcassets/video_record.imageset/video_record@2x.png -------------------------------------------------------------------------------- /Example/ANLongTapButton/Images.xcassets/video_record.imageset/video_record@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antrix1989/ANLongTapButton/HEAD/Example/ANLongTapButton/Images.xcassets/video_record.imageset/video_record@3x.png -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ANLongTapButton/ANLongTapButton-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_ANLongTapButton : NSObject 3 | @end 4 | @implementation PodsDummy_ANLongTapButton 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ANLongTapButton/ANLongTapButton-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double ANLongTapButtonVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char ANLongTapButtonVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/ANLongTapButton.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ANLongTapButton_Example/Pods-ANLongTapButton_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_ANLongTapButton_Example { 2 | umbrella header "Pods-ANLongTapButton_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ANLongTapButton_Example/Pods-ANLongTapButton_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ANLongTapButton_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ANLongTapButton_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ANLongTapButton_Example/Pods-ANLongTapButton_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_ANLongTapButton_ExampleVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_ANLongTapButton_ExampleVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ANLongTapButton (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - ANLongTapButton (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | ANLongTapButton: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | ANLongTapButton: 454bdfc8eaec248a4df52b3fe27728b990e2ad99 13 | 14 | COCOAPODS: 0.39.0.rc.1 15 | -------------------------------------------------------------------------------- /Example/ANLongTapButton/HomeViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HomeViewController.swift 3 | // ANLongTapButton 4 | // 5 | // Created by Sergey Demchenko on 7/8/16. 6 | // Copyright © 2016 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class HomeViewController: UITableViewController 12 | { 13 | } 14 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ANLongTapButton (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - ANLongTapButton (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | ANLongTapButton: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | ANLongTapButton: 454bdfc8eaec248a4df52b3fe27728b990e2ad99 13 | 14 | COCOAPODS: 0.39.0.rc.1 15 | -------------------------------------------------------------------------------- /Example/ANLongTapButton.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ANLongTapButton/ANLongTapButton.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/ANLongTapButton" "${PODS_ROOT}/Headers/Public" 3 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 4 | PODS_ROOT = ${SRCROOT} 5 | SKIP_INSTALL = YES -------------------------------------------------------------------------------- /Example/ANLongTapButton/Images.xcassets/video_record.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "video_record@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "video_record@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | language: objective-c 6 | # cache: cocoapods 7 | # podfile: Example/Podfile 8 | # before_install: 9 | # - gem install cocoapods # Since Travis is not always on latest version 10 | # - pod install --project-directory=Example 11 | script: 12 | - set -o pipefail && xcodebuild test -workspace Example/ANLongTapButton.xcworkspace -scheme ANLongTapButton-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty 13 | - pod lib lint 14 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ANLongTapButton_Example/Pods-ANLongTapButton_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/ANLongTapButton.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "ANLongTapButton" 6 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 7 | PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-ANLongTapButton_Example 8 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ANLongTapButton_Example/Pods-ANLongTapButton_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/ANLongTapButton.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "ANLongTapButton" 6 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 7 | PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-ANLongTapButton_Example 8 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/ANLongTapButton.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ANLongTapButton", 3 | "version": "0.1.0", 4 | "summary": "A short description of ANLongTapButton.", 5 | "description": "", 6 | "homepage": "https://github.com//ANLongTapButton", 7 | "license": "MIT", 8 | "authors": { 9 | "Sergey Demchenko": "antrix1989@gmail.com" 10 | }, 11 | "source": { 12 | "git": "https://github.com//ANLongTapButton.git", 13 | "tag": "0.1.0" 14 | }, 15 | "platforms": { 16 | "ios": "8.0" 17 | }, 18 | "requires_arc": true, 19 | "source_files": "Pod/Classes/**/*", 20 | "resource_bundles": { 21 | "ANLongTapButton": [ 22 | "Pod/Assets/*.png" 23 | ] 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /Example/ANLongTapButton/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ANLongTapButton/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-ANLongTapButton_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 | -------------------------------------------------------------------------------- /ANLongTapButton.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint ANLongTapButton.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = "ANLongTapButton" 11 | s.version = "5.1.0" 12 | s.summary = "Long tap button with animated progress bar." 13 | s.homepage = "https://github.com/antrix1989/ANLongTapButton" 14 | s.license = 'MIT' 15 | s.author = { "Sergey Demchenko" => "antrix1989@gmail.com" } 16 | s.source = { :git => "https://github.com/antrix1989/ANLongTapButton.git", :tag => s.version.to_s } 17 | s.platform = :ios, '10.0' 18 | s.requires_arc = true 19 | 20 | s.source_files = 'Pod/Classes/**/*' 21 | s.resource_bundles = { 22 | 'ANLongTapButton' => ['Pod/Assets/*.png'] 23 | } 24 | 25 | s.frameworks = 'UIKit' 26 | end 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Sergey Demchenko 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/ANLongTapButton/RecordViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RecordViewController.swift 3 | // ANLongTapButton 4 | // 5 | // Created by Sergey Demchenko on 7/8/16. 6 | // Copyright © 2016 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import ANLongTapButton 11 | 12 | class RecordViewController: UIViewController 13 | { 14 | @IBOutlet var recordButton: ANLongTapButton! 15 | 16 | override func viewDidLoad() 17 | { 18 | super.viewDidLoad() 19 | 20 | recordButton.timePeriod = 5 21 | } 22 | 23 | // MARK: - IBAction 24 | 25 | // Note: Touch Down Event, NOT Touch Up Inside. 26 | @IBAction func onRecordButtonTapped(_ recordButton: ANLongTapButton) 27 | { 28 | recordButton.didFinishBlock = { [weak self] () -> Void in 29 | let alert = UIAlertController(title: "Video Recording", message: "Recording has been done.", preferredStyle: UIAlertController.Style.alert) 30 | alert.addAction(UIAlertAction(title: "OK", style: UIAlertAction.Style.default, handler: nil)) 31 | self?.present(alert, animated: true, completion: nil) 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Example/ANLongTapButton/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-ANLongTapButton_Example/Pods-ANLongTapButton_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## ANLongTapButton 5 | 6 | Copyright (c) 2015 Sergey Demchenko 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 - http://cocoapods.org 27 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ANLongTapButton 2 | ======================== 3 | 4 | [![Cocoapods Compatible](https://img.shields.io/cocoapods/v/ANLongTapButton.svg?style=flat)](http://cocoadocs.org/docsets/ANLongTapButton) 5 | [![Swift 4.2](https://img.shields.io/badge/Swift-5.0-orange.svg?style=flat)](https://developer.apple.com/swift/) 6 | 7 | Long tap button with animated progress bar. 8 | 9 | 10 | 11 | 12 | ## Requirements 13 | - iOS 8.0+ 14 | - Swift 4.2 15 | - ARC 16 | 17 | ##Installation 18 | 19 | ####CocoaPods 20 | Available on CocoaPods. Just add the following to your project Podfile: 21 | ``` 22 | pod 'ANLongTapButton' 23 | use_frameworks! 24 | ``` 25 | 26 | ## Usage 27 | 28 | - In IB add UIButton to your view. 29 | - In IB set class of UIButton to ANLongTapButton. 30 | - In IB set module name of UIButton to ANLongTapButton. 31 | - In IB drag action to your controller with Touch Down Event (NOT Touch Up Inside!). 32 | - In your action method add implement didTimePeriodElapseBlock. 33 | 34 | ```swift 35 | @IBAction func onPayNowButtonTapped(longTapButton: ANLongTapButton) 36 | { 37 | longTapButton.didTimePeriodElapseBlock = { () -> Void in 38 | let alert = UIAlertController(title: "Payment", message: "Payment has been made.", preferredStyle: UIAlertControllerStyle.Alert) 39 | alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil)) 40 | self.presentViewController(alert, animated: true, completion: nil) 41 | } 42 | } 43 | 44 | ``` 45 | 46 | See example project for more details. 47 | 48 | ## Author 49 | 50 | Sergey Demchenko, antrix1989@gmail.com 51 | 52 | ## License 53 | 54 | ANLongTapButton is available under the MIT license. See the LICENSE file for more info. 55 | -------------------------------------------------------------------------------- /Pod/Classes/NSTimer+Closure.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSTimer+Closure.swift 3 | // 4 | // Created by Sergey Demchenko on 11/5/15. 5 | // Copyright © 2015 antrix1989. All rights reserved. 6 | // 7 | 8 | import Foundation 9 | 10 | extension Timer 11 | { 12 | /** 13 | Creates and schedules a one-time `NSTimer` instance. 14 | 15 | - parameter delay: The delay before execution. 16 | - parameter handler: A closure to execute after `delay`. 17 | 18 | - returns: The newly-created `NSTimer` instance. 19 | */ 20 | class func schedule(delay: TimeInterval, handler: @escaping (CFRunLoopTimer?) -> Void) -> Timer 21 | { 22 | let fireDate = delay + CFAbsoluteTimeGetCurrent() 23 | let timer = CFRunLoopTimerCreateWithHandler(kCFAllocatorDefault, fireDate, 0, 0, 0, handler) 24 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), timer, CFRunLoopMode.commonModes) 25 | return timer! 26 | } 27 | 28 | /** 29 | Creates and schedules a repeating `NSTimer` instance. 30 | 31 | - parameter repeatInterval: The interval between each execution of `handler`. Note that individual calls may be delayed; subsequent calls to `handler` will be based on the time the `NSTimer` was created. 32 | - parameter handler: A closure to execute after `delay`. 33 | 34 | - returns: The newly-created `NSTimer` instance. 35 | */ 36 | class func schedule(repeatInterval interval: TimeInterval, handler: @escaping (CFRunLoopTimer?) -> Void) -> Timer 37 | { 38 | let fireDate = interval + CFAbsoluteTimeGetCurrent() 39 | let timer = CFRunLoopTimerCreateWithHandler(kCFAllocatorDefault, fireDate, interval, 0, 0, handler) 40 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), timer, CFRunLoopMode.commonModes) 41 | return timer! 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Example/ANLongTapButton/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // ANLongTapButton 4 | // 5 | // Created by Sergey Demchenko on 11/07/2015. 6 | // Copyright (c) 2015 Sergey Demchenko. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ANLongTapButton_Example/Pods-ANLongTapButton_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) 2015 Sergey Demchenko <antrix1989@gmail.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 | Title 38 | ANLongTapButton 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - http://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/ANLongTapButton.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 66 | 67 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /Example/ANLongTapButton/PayNowViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PayNowViewController.swift 3 | // ANLongTapButton 4 | // 5 | // Created by Sergey Demchenko on 11/07/2015. 6 | // Copyright (c) 2015 Sergey Demchenko. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import ANLongTapButton 11 | 12 | class PayNowViewController: UIViewController 13 | { 14 | @IBOutlet var longTapButton: ANLongTapButton! 15 | @IBOutlet var animatedRollbackSwitch: UISwitch! 16 | 17 | override func viewDidLoad() 18 | { 19 | super.viewDidLoad() 20 | 21 | let titleString = "Pay Now\n\n" 22 | let hintString = "Press for 3 seconds to\nrelease payment to\nJohn Doe" 23 | 24 | let title = NSMutableAttributedString(string: titleString + hintString) 25 | let titleAttributes = [convertFromNSAttributedStringKey(NSAttributedString.Key.foregroundColor): UIColor.white, convertFromNSAttributedStringKey(NSAttributedString.Key.backgroundColor): UIColor.clear, convertFromNSAttributedStringKey(NSAttributedString.Key.font): UIFont(name: "HelveticaNeue-Light", size: 22)!] 26 | let hitAttributes = [convertFromNSAttributedStringKey(NSAttributedString.Key.foregroundColor): UIColor.white, convertFromNSAttributedStringKey(NSAttributedString.Key.backgroundColor): UIColor.clear, convertFromNSAttributedStringKey(NSAttributedString.Key.font): UIFont(name: "HelveticaNeue-Light", size: 12)!] 27 | title.setAttributes(convertToOptionalNSAttributedStringKeyDictionary(titleAttributes), range: NSMakeRange(0, titleString.count)) 28 | title.setAttributes(convertToOptionalNSAttributedStringKeyDictionary(hitAttributes), range: NSMakeRange(titleString.count, hintString.count)) 29 | 30 | longTapButton.titleLabel?.lineBreakMode = .byWordWrapping 31 | longTapButton.titleLabel?.textAlignment = .center 32 | longTapButton.setAttributedTitle(title, for: UIControl.State()) 33 | 34 | animatedRollbackSwitch.setOn(longTapButton.animatedRollback, animated: false) 35 | } 36 | 37 | // MARK: - IBAction 38 | 39 | // Note: Touch Down Event, NOT Touch Up Inside. 40 | @IBAction func onPayNowButtonTapped(_ longTapButton: ANLongTapButton) 41 | { 42 | longTapButton.didTimePeriodElapseBlock = { [weak self] () -> Void in 43 | let alert = UIAlertController(title: "Payment", message: "Payment has been made.", preferredStyle: UIAlertController.Style.alert) 44 | alert.addAction(UIAlertAction(title: "OK", style: UIAlertAction.Style.default, handler: nil)) 45 | self?.present(alert, animated: true, completion: nil) 46 | } 47 | } 48 | @IBAction func switchDidChangeValue(_ sender: UISwitch) 49 | { 50 | longTapButton.animatedRollback = sender.isOn 51 | } 52 | } 53 | 54 | 55 | // Helper function inserted by Swift 4.2 migrator. 56 | fileprivate func convertFromNSAttributedStringKey(_ input: NSAttributedString.Key) -> String { 57 | return input.rawValue 58 | } 59 | 60 | // Helper function inserted by Swift 4.2 migrator. 61 | fileprivate func convertToOptionalNSAttributedStringKeyDictionary(_ input: [String: Any]?) -> [NSAttributedString.Key: Any]? { 62 | guard let input = input else { return nil } 63 | return Dictionary(uniqueKeysWithValues: input.map { key, value in (NSAttributedString.Key(rawValue: key), value)}) 64 | } 65 | -------------------------------------------------------------------------------- /Example/ANLongTapButton/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ANLongTapButton_Example/Pods-ANLongTapButton_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | 86 | if [[ "$CONFIGURATION" == "Debug" ]]; then 87 | install_framework "Pods-ANLongTapButton_Example/ANLongTapButton.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "Pods-ANLongTapButton_Example/ANLongTapButton.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ANLongTapButton_Example/Pods-ANLongTapButton_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | realpath() { 12 | DIRECTORY="$(cd "${1%/*}" && pwd)" 13 | FILENAME="${1##*/}" 14 | echo "$DIRECTORY/$FILENAME" 15 | } 16 | 17 | install_resource() 18 | { 19 | case $1 in 20 | *.storyboard) 21 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 22 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 23 | ;; 24 | *.xib) 25 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 26 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 27 | ;; 28 | *.framework) 29 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 30 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 31 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 32 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 33 | ;; 34 | *.xcdatamodel) 35 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 36 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 37 | ;; 38 | *.xcdatamodeld) 39 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 40 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 41 | ;; 42 | *.xcmappingmodel) 43 | echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" 44 | xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" 45 | ;; 46 | *.xcassets) 47 | ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") 48 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 49 | ;; 50 | /*) 51 | echo "$1" 52 | echo "$1" >> "$RESOURCES_TO_COPY" 53 | ;; 54 | *) 55 | echo "${PODS_ROOT}/$1" 56 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 57 | ;; 58 | esac 59 | } 60 | 61 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 62 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 63 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 64 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 65 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 66 | fi 67 | rm -f "$RESOURCES_TO_COPY" 68 | 69 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 70 | then 71 | case "${TARGETED_DEVICE_FAMILY}" in 72 | 1,2) 73 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 74 | ;; 75 | 1) 76 | TARGET_DEVICE_ARGS="--target-device iphone" 77 | ;; 78 | 2) 79 | TARGET_DEVICE_ARGS="--target-device ipad" 80 | ;; 81 | *) 82 | TARGET_DEVICE_ARGS="--target-device mac" 83 | ;; 84 | esac 85 | 86 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 87 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 88 | while read line; do 89 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 90 | XCASSET_FILES+=("$line") 91 | fi 92 | done <<<"$OTHER_XCASSETS" 93 | 94 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 95 | fi 96 | -------------------------------------------------------------------------------- /Example/ANLongTapButton.xcodeproj/xcshareddata/xcschemes/ANLongTapButton-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 | -------------------------------------------------------------------------------- /Pod/Classes/ANLongTapButton.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ANLongTapButton.swift 3 | // 4 | // Created by Sergey Demchenko on 11/5/15. 5 | // Copyright © 2015 antrix1989. All rights reserved. 6 | // 7 | 8 | import UIKit 9 | 10 | @IBDesignable 11 | open class ANLongTapButton: UIButton, CAAnimationDelegate 12 | { 13 | @IBInspectable open var barWidth: CGFloat = 10 14 | @IBInspectable open var barColor: UIColor = UIColor.yellow 15 | @IBInspectable open var barTrackColor: UIColor = UIColor.gray 16 | @IBInspectable open var bgCircleColor: UIColor = UIColor.blue 17 | @IBInspectable open var startAngle: CGFloat = -90 18 | @IBInspectable open var timePeriod: TimeInterval = 3 19 | @IBInspectable open var reverseAnimationTimePeriod: TimeInterval = 0.5 20 | @IBInspectable open var animatedRollback: Bool = false 21 | 22 | /// Invokes when timePeriod has elapsed. 23 | open var didTimePeriodElapseBlock : (() -> Void) = { () -> Void in } 24 | 25 | /// Invokes when either time period has elapsed or when user cancels touch. 26 | open var didFinishBlock : (() -> Void) = { () -> Void in } 27 | 28 | /// Invokes when user started touch. 29 | open var didStartBlock : (() -> Void) = { () -> Void in } 30 | 31 | var timePeriodTimer: Timer? 32 | var circleLayer: CAShapeLayer? 33 | var isFinished = true 34 | 35 | // MARK: - Animation keys 36 | private var drawCircleAnimationKey: String { "drawCircleAnimation" } 37 | private var undrawCircleAnimationKey: String { "undrawCircleAnimation" } 38 | 39 | open override func prepareForInterfaceBuilder() 40 | { 41 | let center = self.center() 42 | let radius = self.radius() 43 | 44 | if let context = UIGraphicsGetCurrentContext() { 45 | drawBackground(context, center: center, radius: radius) 46 | drawBackgroundCircle(context, center: center, radius: radius) 47 | drawTrackBar(context, center: center, radius: radius) 48 | drawProgressBar(context, center: center, radius: radius) 49 | } 50 | } 51 | 52 | open override func awakeFromNib() 53 | { 54 | super.awakeFromNib() 55 | 56 | addTarget(self, action: #selector(start(_:forEvent:)), for: .touchDown) 57 | addTarget(self, action: #selector(cancel(_:forEvent:)), for: .touchUpInside) 58 | addTarget(self, action: #selector(cancel(_:forEvent:)), for: .touchCancel) 59 | addTarget(self, action: #selector(cancel(_:forEvent:)), for: .touchDragExit) 60 | addTarget(self, action: #selector(cancel(_:forEvent:)), for: .touchDragOutside) 61 | } 62 | 63 | open override func draw(_ rect: CGRect) 64 | { 65 | super.draw(rect) 66 | 67 | let center = self.center() 68 | let radius = self.radius() 69 | 70 | if let context = UIGraphicsGetCurrentContext() { 71 | context.clear(rect) 72 | drawBackground(context, center: center, radius: radius) 73 | drawBackgroundCircle(context, center: center, radius: radius) 74 | drawTrackBar(context, center: center, radius: radius) 75 | } 76 | } 77 | 78 | // MARK: - Internal 79 | 80 | @objc func start(_ sender: AnyObject, forEvent event: UIEvent) 81 | { 82 | isFinished = false 83 | reset() 84 | didStartBlock() 85 | 86 | timePeriodTimer = Timer.schedule(delay: timePeriod) { [weak self] (timer) -> Void in 87 | self?.timePeriodTimer?.invalidate() 88 | self?.timePeriodTimer = nil 89 | self?.isFinished = true 90 | self?.didFinishBlock() 91 | self?.didTimePeriodElapseBlock() 92 | } 93 | 94 | let center = self.center() 95 | var radius = self.radius() 96 | radius = radius - (barWidth / 2) 97 | 98 | circleLayer = CAShapeLayer() 99 | circleLayer!.path = UIBezierPath(arcCenter: center, radius: radius, startAngle: degreesToRadians(startAngle), endAngle: degreesToRadians(startAngle + 360), clockwise: true).cgPath 100 | circleLayer!.fillColor = UIColor.clear.cgColor 101 | circleLayer!.strokeColor = barColor.cgColor 102 | circleLayer!.lineWidth = barWidth 103 | 104 | let animation = strokeEndAnimation() 105 | circleLayer!.add(animation, forKey: drawCircleAnimationKey) 106 | self.layer.addSublayer(circleLayer!) 107 | } 108 | 109 | @objc func cancel(_ sender: AnyObject, forEvent event: UIEvent) 110 | { 111 | let isNotFinished = !isFinished 112 | if isNotFinished { 113 | isFinished = true 114 | didFinishBlock() 115 | } 116 | 117 | if let circleLayer = self.circleLayer, let currentStrokeValue = circleLayer.presentation()?.strokeEnd, animatedRollback, isNotFinished { 118 | resetTimer() 119 | 120 | let reverseAnimation = strokeReverseAnimation(fromValue: currentStrokeValue) 121 | reverseAnimation.delegate = self 122 | circleLayer.pauseAnimation() 123 | circleLayer.add(reverseAnimation, forKey: undrawCircleAnimationKey) 124 | circleLayer.removeAnimation(forKey: drawCircleAnimationKey) 125 | circleLayer.resumeAnimation() 126 | } else { 127 | reset() 128 | } 129 | } 130 | 131 | func reset() 132 | { 133 | resetTimer() 134 | resetCircleLayer() 135 | } 136 | 137 | private func resetTimer() 138 | { 139 | timePeriodTimer?.invalidate() 140 | timePeriodTimer = nil 141 | } 142 | 143 | private func resetCircleLayer() 144 | { 145 | circleLayer?.removeAllAnimations() 146 | circleLayer?.removeFromSuperlayer() 147 | circleLayer = nil 148 | } 149 | 150 | // MARK: - CAAnimationDelegate 151 | 152 | public func animationDidStop(_ anim: CAAnimation, finished flag: Bool) 153 | { 154 | resetCircleLayer() 155 | } 156 | 157 | private func drawBackground(_ context: CGContext, center: CGPoint, radius: CGFloat) 158 | { 159 | if let backgroundColor = self.backgroundColor { 160 | context.setFillColor(backgroundColor.cgColor); 161 | context.fill(bounds) 162 | } 163 | } 164 | 165 | private func drawBackgroundCircle(_ context: CGContext, center: CGPoint, radius: CGFloat) 166 | { 167 | context.setFillColor(bgCircleColor.cgColor) 168 | context.beginPath() 169 | context.addArc(center: center, radius: radius, startAngle: 0, endAngle: 360, clockwise: false) 170 | context.closePath() 171 | context.fillPath() 172 | } 173 | 174 | private func drawTrackBar(_ context: CGContext, center: CGPoint, radius: CGFloat) 175 | { 176 | if (barWidth > radius) { 177 | barWidth = radius; 178 | } 179 | 180 | context.setFillColor(barTrackColor.cgColor) 181 | context.beginPath() 182 | context.addArc(center: center, radius: radius, startAngle: degreesToRadians(startAngle), endAngle: degreesToRadians(startAngle + 360), clockwise: false) 183 | context.addArc(center: center, radius: radius - barWidth, startAngle: degreesToRadians(startAngle + 360), endAngle: degreesToRadians(startAngle), clockwise: true) 184 | context.closePath() 185 | context.fillPath() 186 | } 187 | 188 | private func drawProgressBar(_ context: CGContext, center: CGPoint, radius: CGFloat) 189 | { 190 | if (barWidth > radius) { 191 | barWidth = radius; 192 | } 193 | 194 | context.setFillColor(barColor.cgColor) 195 | context.beginPath() 196 | context.addArc(center: center, radius: radius, startAngle: degreesToRadians(startAngle), endAngle: degreesToRadians(startAngle + 90), clockwise: false) 197 | context.addArc(center: center, radius: radius - barWidth, startAngle: degreesToRadians(startAngle + 90), endAngle: degreesToRadians(startAngle), clockwise: true) 198 | context.closePath() 199 | context.fillPath() 200 | } 201 | 202 | // MARK: - Private 203 | 204 | private func strokeEndAnimation() -> CABasicAnimation 205 | { 206 | return strokeAnimation(fromValue: 0, toValue: 1, duration: timePeriod) 207 | } 208 | 209 | private func strokeReverseAnimation(fromValue: Any) -> CABasicAnimation 210 | { 211 | return strokeAnimation(fromValue: fromValue, toValue: 0, duration: reverseAnimationTimePeriod) 212 | } 213 | 214 | private func strokeAnimation(fromValue: Any, toValue: Any, duration: TimeInterval) -> CABasicAnimation { 215 | let animation = CABasicAnimation(keyPath: "strokeEnd") 216 | animation.duration = duration 217 | animation.isRemovedOnCompletion = true 218 | animation.fromValue = fromValue 219 | animation.toValue = toValue 220 | animation.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.linear) 221 | 222 | return animation 223 | } 224 | 225 | fileprivate func center() -> CGPoint 226 | { 227 | return CGPoint(x: bounds.size.width / 2, y: bounds.size.height / 2) 228 | } 229 | 230 | fileprivate func radius() -> CGFloat 231 | { 232 | let center = self.center() 233 | 234 | return min(center.x, center.y) 235 | } 236 | 237 | fileprivate func degreesToRadians (_ value: CGFloat) -> CGFloat { return value * CGFloat.pi / CGFloat(180.0) } 238 | } 239 | 240 | fileprivate extension CALayer 241 | { 242 | 243 | func pauseAnimation() 244 | { 245 | let pausedTime = convertTime(CACurrentMediaTime(), from: nil) 246 | speed = 0 247 | timeOffset = pausedTime 248 | } 249 | 250 | func resumeAnimation() 251 | { 252 | let pausedTime = timeOffset 253 | speed = 1 254 | timeOffset = 0 255 | beginTime = 0 256 | let timeSincePause = convertTime(CACurrentMediaTime(), from: nil) - pausedTime 257 | beginTime = timeSincePause 258 | } 259 | 260 | } 261 | -------------------------------------------------------------------------------- /Example/ANLongTapButton.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 235E855D1D302566004158C7 /* HomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 235E855C1D302566004158C7 /* HomeViewController.swift */; }; 11 | 235E855F1D3026FC004158C7 /* RecordViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 235E855E1D3026FC004158C7 /* RecordViewController.swift */; }; 12 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 13 | 607FACD81AFB9204008FA782 /* PayNowViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* PayNowViewController.swift */; }; 14 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 15 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 16 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 17 | DA4BAD1AC77AEE457CB9EA2A /* Pods_ANLongTapButton_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F357D3058F422D492AE0FE8B /* Pods_ANLongTapButton_Example.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXFileReference section */ 21 | 235E855C1D302566004158C7 /* HomeViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HomeViewController.swift; sourceTree = ""; }; 22 | 235E855E1D3026FC004158C7 /* RecordViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordViewController.swift; sourceTree = ""; }; 23 | 29D716BCD90A64EE8E5D832D /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 24 | 508FD030FB9124EEC2FC7CAF /* ANLongTapButton.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = ANLongTapButton.podspec; path = ../ANLongTapButton.podspec; sourceTree = ""; }; 25 | 607FACD01AFB9204008FA782 /* ANLongTapButton_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ANLongTapButton_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 26 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 27 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 28 | 607FACD71AFB9204008FA782 /* PayNowViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PayNowViewController.swift; sourceTree = ""; }; 29 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 30 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 31 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 32 | 68EADBE1BBA571D990473458 /* Pods-ANLongTapButton_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ANLongTapButton_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ANLongTapButton_Example/Pods-ANLongTapButton_Example.debug.xcconfig"; sourceTree = ""; }; 33 | 7E0FA8E604CC3A44AE6C4FEB /* Pods_ANLongTapButton_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ANLongTapButton_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 815C71F8002AA56685F400A2 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 35 | 87BF0C71F5B6AA51131DF7A4 /* Pods-ANLongTapButton_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ANLongTapButton_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-ANLongTapButton_Example/Pods-ANLongTapButton_Example.release.xcconfig"; sourceTree = ""; }; 36 | B889D7BB197CA5BF18024B24 /* Pods-ANLongTapButton_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ANLongTapButton_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ANLongTapButton_Tests/Pods-ANLongTapButton_Tests.debug.xcconfig"; sourceTree = ""; }; 37 | F357D3058F422D492AE0FE8B /* Pods_ANLongTapButton_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ANLongTapButton_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 38 | F957F44B9E8F28FFC178E6A8 /* Pods-ANLongTapButton_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ANLongTapButton_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-ANLongTapButton_Tests/Pods-ANLongTapButton_Tests.release.xcconfig"; sourceTree = ""; }; 39 | /* End PBXFileReference section */ 40 | 41 | /* Begin PBXFrameworksBuildPhase section */ 42 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 43 | isa = PBXFrameworksBuildPhase; 44 | buildActionMask = 2147483647; 45 | files = ( 46 | DA4BAD1AC77AEE457CB9EA2A /* Pods_ANLongTapButton_Example.framework in Frameworks */, 47 | ); 48 | runOnlyForDeploymentPostprocessing = 0; 49 | }; 50 | /* End PBXFrameworksBuildPhase section */ 51 | 52 | /* Begin PBXGroup section */ 53 | 28B338B6E6FD6909BA307341 /* Frameworks */ = { 54 | isa = PBXGroup; 55 | children = ( 56 | F357D3058F422D492AE0FE8B /* Pods_ANLongTapButton_Example.framework */, 57 | 7E0FA8E604CC3A44AE6C4FEB /* Pods_ANLongTapButton_Tests.framework */, 58 | ); 59 | name = Frameworks; 60 | sourceTree = ""; 61 | }; 62 | 607FACC71AFB9204008FA782 = { 63 | isa = PBXGroup; 64 | children = ( 65 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 66 | 607FACD21AFB9204008FA782 /* Example for ANLongTapButton */, 67 | 607FACD11AFB9204008FA782 /* Products */, 68 | F2C66BB02BB070478B260DD9 /* Pods */, 69 | 28B338B6E6FD6909BA307341 /* Frameworks */, 70 | ); 71 | sourceTree = ""; 72 | }; 73 | 607FACD11AFB9204008FA782 /* Products */ = { 74 | isa = PBXGroup; 75 | children = ( 76 | 607FACD01AFB9204008FA782 /* ANLongTapButton_Example.app */, 77 | ); 78 | name = Products; 79 | sourceTree = ""; 80 | }; 81 | 607FACD21AFB9204008FA782 /* Example for ANLongTapButton */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 85 | 235E855C1D302566004158C7 /* HomeViewController.swift */, 86 | 607FACD71AFB9204008FA782 /* PayNowViewController.swift */, 87 | 235E855E1D3026FC004158C7 /* RecordViewController.swift */, 88 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 89 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 90 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 91 | 607FACD31AFB9204008FA782 /* Supporting Files */, 92 | ); 93 | name = "Example for ANLongTapButton"; 94 | path = ANLongTapButton; 95 | sourceTree = ""; 96 | }; 97 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 607FACD41AFB9204008FA782 /* Info.plist */, 101 | ); 102 | name = "Supporting Files"; 103 | sourceTree = ""; 104 | }; 105 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 508FD030FB9124EEC2FC7CAF /* ANLongTapButton.podspec */, 109 | 29D716BCD90A64EE8E5D832D /* README.md */, 110 | 815C71F8002AA56685F400A2 /* LICENSE */, 111 | ); 112 | name = "Podspec Metadata"; 113 | sourceTree = ""; 114 | }; 115 | F2C66BB02BB070478B260DD9 /* Pods */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 68EADBE1BBA571D990473458 /* Pods-ANLongTapButton_Example.debug.xcconfig */, 119 | 87BF0C71F5B6AA51131DF7A4 /* Pods-ANLongTapButton_Example.release.xcconfig */, 120 | B889D7BB197CA5BF18024B24 /* Pods-ANLongTapButton_Tests.debug.xcconfig */, 121 | F957F44B9E8F28FFC178E6A8 /* Pods-ANLongTapButton_Tests.release.xcconfig */, 122 | ); 123 | name = Pods; 124 | sourceTree = ""; 125 | }; 126 | /* End PBXGroup section */ 127 | 128 | /* Begin PBXNativeTarget section */ 129 | 607FACCF1AFB9204008FA782 /* ANLongTapButton_Example */ = { 130 | isa = PBXNativeTarget; 131 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ANLongTapButton_Example" */; 132 | buildPhases = ( 133 | 28CFF9CB33F8B14DD5997109 /* Check Pods Manifest.lock */, 134 | 607FACCC1AFB9204008FA782 /* Sources */, 135 | 607FACCD1AFB9204008FA782 /* Frameworks */, 136 | 607FACCE1AFB9204008FA782 /* Resources */, 137 | 18EA1542387B556191AEB9BE /* Embed Pods Frameworks */, 138 | 34947255C19A639A6CC44F1F /* Copy Pods Resources */, 139 | ); 140 | buildRules = ( 141 | ); 142 | dependencies = ( 143 | ); 144 | name = ANLongTapButton_Example; 145 | productName = ANLongTapButton; 146 | productReference = 607FACD01AFB9204008FA782 /* ANLongTapButton_Example.app */; 147 | productType = "com.apple.product-type.application"; 148 | }; 149 | /* End PBXNativeTarget section */ 150 | 151 | /* Begin PBXProject section */ 152 | 607FACC81AFB9204008FA782 /* Project object */ = { 153 | isa = PBXProject; 154 | attributes = { 155 | LastSwiftUpdateCheck = 0710; 156 | LastUpgradeCheck = 0800; 157 | ORGANIZATIONNAME = CocoaPods; 158 | TargetAttributes = { 159 | 607FACCF1AFB9204008FA782 = { 160 | CreatedOnToolsVersion = 6.3.1; 161 | LastSwiftMigration = 1010; 162 | }; 163 | }; 164 | }; 165 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "ANLongTapButton" */; 166 | compatibilityVersion = "Xcode 3.2"; 167 | developmentRegion = English; 168 | hasScannedForEncodings = 0; 169 | knownRegions = ( 170 | en, 171 | Base, 172 | ); 173 | mainGroup = 607FACC71AFB9204008FA782; 174 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 175 | projectDirPath = ""; 176 | projectRoot = ""; 177 | targets = ( 178 | 607FACCF1AFB9204008FA782 /* ANLongTapButton_Example */, 179 | ); 180 | }; 181 | /* End PBXProject section */ 182 | 183 | /* Begin PBXResourcesBuildPhase section */ 184 | 607FACCE1AFB9204008FA782 /* Resources */ = { 185 | isa = PBXResourcesBuildPhase; 186 | buildActionMask = 2147483647; 187 | files = ( 188 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 189 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 190 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 191 | ); 192 | runOnlyForDeploymentPostprocessing = 0; 193 | }; 194 | /* End PBXResourcesBuildPhase section */ 195 | 196 | /* Begin PBXShellScriptBuildPhase section */ 197 | 18EA1542387B556191AEB9BE /* Embed Pods Frameworks */ = { 198 | isa = PBXShellScriptBuildPhase; 199 | buildActionMask = 2147483647; 200 | files = ( 201 | ); 202 | inputPaths = ( 203 | ); 204 | name = "Embed Pods Frameworks"; 205 | outputPaths = ( 206 | ); 207 | runOnlyForDeploymentPostprocessing = 0; 208 | shellPath = /bin/sh; 209 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ANLongTapButton_Example/Pods-ANLongTapButton_Example-frameworks.sh\"\n"; 210 | showEnvVarsInLog = 0; 211 | }; 212 | 28CFF9CB33F8B14DD5997109 /* Check Pods Manifest.lock */ = { 213 | isa = PBXShellScriptBuildPhase; 214 | buildActionMask = 2147483647; 215 | files = ( 216 | ); 217 | inputPaths = ( 218 | ); 219 | name = "Check Pods Manifest.lock"; 220 | outputPaths = ( 221 | ); 222 | runOnlyForDeploymentPostprocessing = 0; 223 | shellPath = /bin/sh; 224 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 225 | showEnvVarsInLog = 0; 226 | }; 227 | 34947255C19A639A6CC44F1F /* Copy Pods Resources */ = { 228 | isa = PBXShellScriptBuildPhase; 229 | buildActionMask = 2147483647; 230 | files = ( 231 | ); 232 | inputPaths = ( 233 | ); 234 | name = "Copy Pods Resources"; 235 | outputPaths = ( 236 | ); 237 | runOnlyForDeploymentPostprocessing = 0; 238 | shellPath = /bin/sh; 239 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ANLongTapButton_Example/Pods-ANLongTapButton_Example-resources.sh\"\n"; 240 | showEnvVarsInLog = 0; 241 | }; 242 | /* End PBXShellScriptBuildPhase section */ 243 | 244 | /* Begin PBXSourcesBuildPhase section */ 245 | 607FACCC1AFB9204008FA782 /* Sources */ = { 246 | isa = PBXSourcesBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 607FACD81AFB9204008FA782 /* PayNowViewController.swift in Sources */, 250 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 251 | 235E855D1D302566004158C7 /* HomeViewController.swift in Sources */, 252 | 235E855F1D3026FC004158C7 /* RecordViewController.swift in Sources */, 253 | ); 254 | runOnlyForDeploymentPostprocessing = 0; 255 | }; 256 | /* End PBXSourcesBuildPhase section */ 257 | 258 | /* Begin PBXVariantGroup section */ 259 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 260 | isa = PBXVariantGroup; 261 | children = ( 262 | 607FACDA1AFB9204008FA782 /* Base */, 263 | ); 264 | name = Main.storyboard; 265 | sourceTree = ""; 266 | }; 267 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 268 | isa = PBXVariantGroup; 269 | children = ( 270 | 607FACDF1AFB9204008FA782 /* Base */, 271 | ); 272 | name = LaunchScreen.xib; 273 | sourceTree = ""; 274 | }; 275 | /* End PBXVariantGroup section */ 276 | 277 | /* Begin XCBuildConfiguration section */ 278 | 607FACED1AFB9204008FA782 /* Debug */ = { 279 | isa = XCBuildConfiguration; 280 | buildSettings = { 281 | ALWAYS_SEARCH_USER_PATHS = NO; 282 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 283 | CLANG_CXX_LIBRARY = "libc++"; 284 | CLANG_ENABLE_MODULES = YES; 285 | CLANG_ENABLE_OBJC_ARC = YES; 286 | CLANG_WARN_BOOL_CONVERSION = YES; 287 | CLANG_WARN_CONSTANT_CONVERSION = YES; 288 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 289 | CLANG_WARN_EMPTY_BODY = YES; 290 | CLANG_WARN_ENUM_CONVERSION = YES; 291 | CLANG_WARN_INFINITE_RECURSION = YES; 292 | CLANG_WARN_INT_CONVERSION = YES; 293 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 294 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 295 | CLANG_WARN_UNREACHABLE_CODE = YES; 296 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 297 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 298 | COPY_PHASE_STRIP = NO; 299 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 300 | ENABLE_STRICT_OBJC_MSGSEND = YES; 301 | ENABLE_TESTABILITY = YES; 302 | GCC_C_LANGUAGE_STANDARD = gnu99; 303 | GCC_DYNAMIC_NO_PIC = NO; 304 | GCC_NO_COMMON_BLOCKS = YES; 305 | GCC_OPTIMIZATION_LEVEL = 0; 306 | GCC_PREPROCESSOR_DEFINITIONS = ( 307 | "DEBUG=1", 308 | "$(inherited)", 309 | ); 310 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 311 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 312 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 313 | GCC_WARN_UNDECLARED_SELECTOR = YES; 314 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 315 | GCC_WARN_UNUSED_FUNCTION = YES; 316 | GCC_WARN_UNUSED_VARIABLE = YES; 317 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 318 | MTL_ENABLE_DEBUG_INFO = YES; 319 | ONLY_ACTIVE_ARCH = YES; 320 | SDKROOT = iphoneos; 321 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 322 | }; 323 | name = Debug; 324 | }; 325 | 607FACEE1AFB9204008FA782 /* Release */ = { 326 | isa = XCBuildConfiguration; 327 | buildSettings = { 328 | ALWAYS_SEARCH_USER_PATHS = NO; 329 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 330 | CLANG_CXX_LIBRARY = "libc++"; 331 | CLANG_ENABLE_MODULES = YES; 332 | CLANG_ENABLE_OBJC_ARC = YES; 333 | CLANG_WARN_BOOL_CONVERSION = YES; 334 | CLANG_WARN_CONSTANT_CONVERSION = YES; 335 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 336 | CLANG_WARN_EMPTY_BODY = YES; 337 | CLANG_WARN_ENUM_CONVERSION = YES; 338 | CLANG_WARN_INFINITE_RECURSION = YES; 339 | CLANG_WARN_INT_CONVERSION = YES; 340 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 341 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 342 | CLANG_WARN_UNREACHABLE_CODE = YES; 343 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 344 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 345 | COPY_PHASE_STRIP = NO; 346 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 347 | ENABLE_NS_ASSERTIONS = NO; 348 | ENABLE_STRICT_OBJC_MSGSEND = YES; 349 | GCC_C_LANGUAGE_STANDARD = gnu99; 350 | GCC_NO_COMMON_BLOCKS = YES; 351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 353 | GCC_WARN_UNDECLARED_SELECTOR = YES; 354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 355 | GCC_WARN_UNUSED_FUNCTION = YES; 356 | GCC_WARN_UNUSED_VARIABLE = YES; 357 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 358 | MTL_ENABLE_DEBUG_INFO = NO; 359 | SDKROOT = iphoneos; 360 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 361 | VALIDATE_PRODUCT = YES; 362 | }; 363 | name = Release; 364 | }; 365 | 607FACF01AFB9204008FA782 /* Debug */ = { 366 | isa = XCBuildConfiguration; 367 | baseConfigurationReference = 68EADBE1BBA571D990473458 /* Pods-ANLongTapButton_Example.debug.xcconfig */; 368 | buildSettings = { 369 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 370 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 371 | INFOPLIST_FILE = ANLongTapButton/Info.plist; 372 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 373 | MODULE_NAME = ExampleApp; 374 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 375 | PRODUCT_NAME = "$(TARGET_NAME)"; 376 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 377 | SWIFT_VERSION = 5.0; 378 | }; 379 | name = Debug; 380 | }; 381 | 607FACF11AFB9204008FA782 /* Release */ = { 382 | isa = XCBuildConfiguration; 383 | baseConfigurationReference = 87BF0C71F5B6AA51131DF7A4 /* Pods-ANLongTapButton_Example.release.xcconfig */; 384 | buildSettings = { 385 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 386 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 387 | INFOPLIST_FILE = ANLongTapButton/Info.plist; 388 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 389 | MODULE_NAME = ExampleApp; 390 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 391 | PRODUCT_NAME = "$(TARGET_NAME)"; 392 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 393 | SWIFT_VERSION = 5.0; 394 | }; 395 | name = Release; 396 | }; 397 | /* End XCBuildConfiguration section */ 398 | 399 | /* Begin XCConfigurationList section */ 400 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "ANLongTapButton" */ = { 401 | isa = XCConfigurationList; 402 | buildConfigurations = ( 403 | 607FACED1AFB9204008FA782 /* Debug */, 404 | 607FACEE1AFB9204008FA782 /* Release */, 405 | ); 406 | defaultConfigurationIsVisible = 0; 407 | defaultConfigurationName = Release; 408 | }; 409 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ANLongTapButton_Example" */ = { 410 | isa = XCConfigurationList; 411 | buildConfigurations = ( 412 | 607FACF01AFB9204008FA782 /* Debug */, 413 | 607FACF11AFB9204008FA782 /* Release */, 414 | ); 415 | defaultConfigurationIsVisible = 0; 416 | defaultConfigurationName = Release; 417 | }; 418 | /* End XCConfigurationList section */ 419 | }; 420 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 421 | } 422 | -------------------------------------------------------------------------------- /Example/ANLongTapButton/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | -------------------------------------------------------------------------------- /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 | 35BC77234902953146BB300203D02D43 /* NSTimer+Closure.swift in Sources */ = {isa = PBXBuildFile; fileRef = 63C1B30C1D2E514229C49823101029D2 /* NSTimer+Closure.swift */; }; 11 | 4D89ACC3934377A77883DC5D461CB9DA /* Pods-ANLongTapButton_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = F43214B588045B56D6A1BE0F1F0B3E14 /* Pods-ANLongTapButton_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 787AB55E58A97D8F95C8E2801DE33498 /* ANLongTapButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 705D042D9426F78B6321A125BE025955 /* ANLongTapButton.swift */; }; 13 | 7E76F8970F226184FAE635B0217AC5F4 /* Pods-ANLongTapButton_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F4A3531CAF2702D9A304147181D684B /* Pods-ANLongTapButton_Example-dummy.m */; }; 14 | 7F57C751563A961D7DBE5CC5E2768A58 /* ANLongTapButton.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 8571B49DD88B5BBEDD82C7D8B20AB928 /* ANLongTapButton.bundle */; }; 15 | A8B23EE447E2511BC7CFE24E194F4516 /* ANLongTapButton-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 35CB66CEAC99AF94625C7FCD67882A78 /* ANLongTapButton-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 16 | DE0C27D1A08F115261A9D2A4CEFDF259 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */; }; 17 | EFFED6D5829858696316DE9BF9BD1FDA /* ANLongTapButton-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = AA396E6FC0895CB7964AADB789628777 /* ANLongTapButton-dummy.m */; }; 18 | FDC24EB9A6F00F20F522DF33C710F8CA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | 7103EBBA3FB1774121D6CBBB969B092A /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = 27D8AED3CF0174BD340A83C33792BF8A; 27 | remoteInfo = "ANLongTapButton-ANLongTapButton"; 28 | }; 29 | 9C5322DE34B4918DC2C8033A5F3902AC /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 65FB4A87AB8579FC8D658E20C7B50C87; 34 | remoteInfo = ANLongTapButton; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 19A8FBBCFE528F671CFF2FD3BA4F5278 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 40 | 2F4A3531CAF2702D9A304147181D684B /* Pods-ANLongTapButton_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-ANLongTapButton_Example-dummy.m"; sourceTree = ""; }; 41 | 32CE9B00BC1F06B1FDF814EF192AF3A4 /* Pods-ANLongTapButton_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-ANLongTapButton_Example-frameworks.sh"; sourceTree = ""; }; 42 | 35CB66CEAC99AF94625C7FCD67882A78 /* ANLongTapButton-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ANLongTapButton-umbrella.h"; sourceTree = ""; }; 43 | 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 44 | 503B9A90173B487FFC74778F1538EEE8 /* ANLongTapButton.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ANLongTapButton.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 52979FA11ADBF3A961D30C427F4D0C64 /* ANLongTapButton.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ANLongTapButton.xcconfig; sourceTree = ""; }; 46 | 63C1B30C1D2E514229C49823101029D2 /* NSTimer+Closure.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = "NSTimer+Closure.swift"; sourceTree = ""; }; 47 | 705D042D9426F78B6321A125BE025955 /* ANLongTapButton.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = ANLongTapButton.swift; sourceTree = ""; }; 48 | 7B49C883235A2BD1A9360BECAD955FA8 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 828923256EB73B940C498D260DDB1A02 /* Pods-ANLongTapButton_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-ANLongTapButton_Example-resources.sh"; sourceTree = ""; }; 50 | 8571B49DD88B5BBEDD82C7D8B20AB928 /* ANLongTapButton.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ANLongTapButton.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 8B4884293AEC21A82B035145344CCDB0 /* Pods-ANLongTapButton_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ANLongTapButton_Example.debug.xcconfig"; sourceTree = ""; }; 52 | 9A28CB9552EA507F1A360D6BEDF95EDA /* Pods_ANLongTapButton_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ANLongTapButton_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | A5B6A1FE3494204D990930977535D5BB /* Pods-ANLongTapButton_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-ANLongTapButton_Example-acknowledgements.markdown"; sourceTree = ""; }; 54 | AA396E6FC0895CB7964AADB789628777 /* ANLongTapButton-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "ANLongTapButton-dummy.m"; sourceTree = ""; }; 55 | AF0FCD3ED143C0F543F41BBC1DDF7D50 /* Pods-ANLongTapButton_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ANLongTapButton_Example.release.xcconfig"; sourceTree = ""; }; 56 | B5CD86C8331F035477A12FFD9A6741E3 /* ANLongTapButton.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = ANLongTapButton.modulemap; sourceTree = ""; }; 57 | BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 58 | D92C92CE0A10D347CAC9CA80B3E90EC9 /* Pods-ANLongTapButton_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-ANLongTapButton_Example.modulemap"; sourceTree = ""; }; 59 | E26D498B4B03548B88EF25D4F27CDDCE /* Pods-ANLongTapButton_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ANLongTapButton_Example-acknowledgements.plist"; sourceTree = ""; }; 60 | EE06BEAEAEBD4AD48ECB3C936151694D /* ANLongTapButton-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ANLongTapButton-prefix.pch"; sourceTree = ""; }; 61 | F43214B588045B56D6A1BE0F1F0B3E14 /* Pods-ANLongTapButton_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-ANLongTapButton_Example-umbrella.h"; sourceTree = ""; }; 62 | /* End PBXFileReference section */ 63 | 64 | /* Begin PBXFrameworksBuildPhase section */ 65 | 6174024F3AC64393B10F5DC3FFFE887F /* Frameworks */ = { 66 | isa = PBXFrameworksBuildPhase; 67 | buildActionMask = 2147483647; 68 | files = ( 69 | DE0C27D1A08F115261A9D2A4CEFDF259 /* Foundation.framework in Frameworks */, 70 | ); 71 | runOnlyForDeploymentPostprocessing = 0; 72 | }; 73 | 87D78AB3F053ECC823139408217617FB /* Frameworks */ = { 74 | isa = PBXFrameworksBuildPhase; 75 | buildActionMask = 2147483647; 76 | files = ( 77 | ); 78 | runOnlyForDeploymentPostprocessing = 0; 79 | }; 80 | EEB51CD8ECCFDC52A33D8F340392909C /* Frameworks */ = { 81 | isa = PBXFrameworksBuildPhase; 82 | buildActionMask = 2147483647; 83 | files = ( 84 | FDC24EB9A6F00F20F522DF33C710F8CA /* Foundation.framework in Frameworks */, 85 | ); 86 | runOnlyForDeploymentPostprocessing = 0; 87 | }; 88 | /* End PBXFrameworksBuildPhase section */ 89 | 90 | /* Begin PBXGroup section */ 91 | 177CAE6C897B5223B57D0BE6EBA83342 /* Support Files */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | B5CD86C8331F035477A12FFD9A6741E3 /* ANLongTapButton.modulemap */, 95 | 52979FA11ADBF3A961D30C427F4D0C64 /* ANLongTapButton.xcconfig */, 96 | AA396E6FC0895CB7964AADB789628777 /* ANLongTapButton-dummy.m */, 97 | EE06BEAEAEBD4AD48ECB3C936151694D /* ANLongTapButton-prefix.pch */, 98 | 35CB66CEAC99AF94625C7FCD67882A78 /* ANLongTapButton-umbrella.h */, 99 | 7B49C883235A2BD1A9360BECAD955FA8 /* Info.plist */, 100 | ); 101 | name = "Support Files"; 102 | path = "Example/Pods/Target Support Files/ANLongTapButton"; 103 | sourceTree = ""; 104 | }; 105 | 3DFFD5458C754A7197C9CF3B8DD6A350 /* Pods-ANLongTapButton_Example */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 19A8FBBCFE528F671CFF2FD3BA4F5278 /* Info.plist */, 109 | D92C92CE0A10D347CAC9CA80B3E90EC9 /* Pods-ANLongTapButton_Example.modulemap */, 110 | A5B6A1FE3494204D990930977535D5BB /* Pods-ANLongTapButton_Example-acknowledgements.markdown */, 111 | E26D498B4B03548B88EF25D4F27CDDCE /* Pods-ANLongTapButton_Example-acknowledgements.plist */, 112 | 2F4A3531CAF2702D9A304147181D684B /* Pods-ANLongTapButton_Example-dummy.m */, 113 | 32CE9B00BC1F06B1FDF814EF192AF3A4 /* Pods-ANLongTapButton_Example-frameworks.sh */, 114 | 828923256EB73B940C498D260DDB1A02 /* Pods-ANLongTapButton_Example-resources.sh */, 115 | F43214B588045B56D6A1BE0F1F0B3E14 /* Pods-ANLongTapButton_Example-umbrella.h */, 116 | 8B4884293AEC21A82B035145344CCDB0 /* Pods-ANLongTapButton_Example.debug.xcconfig */, 117 | AF0FCD3ED143C0F543F41BBC1DDF7D50 /* Pods-ANLongTapButton_Example.release.xcconfig */, 118 | ); 119 | name = "Pods-ANLongTapButton_Example"; 120 | path = "Target Support Files/Pods-ANLongTapButton_Example"; 121 | sourceTree = ""; 122 | }; 123 | 4CDF788E458E600DE8A50020DA4B903D /* Targets Support Files */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 3DFFD5458C754A7197C9CF3B8DD6A350 /* Pods-ANLongTapButton_Example */, 127 | ); 128 | name = "Targets Support Files"; 129 | sourceTree = ""; 130 | }; 131 | 582A32F32276508612E794B424034040 /* Products */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 8571B49DD88B5BBEDD82C7D8B20AB928 /* ANLongTapButton.bundle */, 135 | 503B9A90173B487FFC74778F1538EEE8 /* ANLongTapButton.framework */, 136 | 9A28CB9552EA507F1A360D6BEDF95EDA /* Pods_ANLongTapButton_Example.framework */, 137 | ); 138 | name = Products; 139 | sourceTree = ""; 140 | }; 141 | 7DB346D0F39D3F0E887471402A8071AB = { 142 | isa = PBXGroup; 143 | children = ( 144 | BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */, 145 | 92ABFD4E6970778C5CDC58730456F0CD /* Development Pods */, 146 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 147 | 582A32F32276508612E794B424034040 /* Products */, 148 | 4CDF788E458E600DE8A50020DA4B903D /* Targets Support Files */, 149 | ); 150 | sourceTree = ""; 151 | }; 152 | 92ABFD4E6970778C5CDC58730456F0CD /* Development Pods */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | 9722B1E7CFD6678704F9DE52899BDE82 /* ANLongTapButton */, 156 | ); 157 | name = "Development Pods"; 158 | sourceTree = ""; 159 | }; 160 | 9722B1E7CFD6678704F9DE52899BDE82 /* ANLongTapButton */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | DF45FAD97CEE67C9F9CC325E4E04F81B /* Pod */, 164 | 177CAE6C897B5223B57D0BE6EBA83342 /* Support Files */, 165 | ); 166 | name = ANLongTapButton; 167 | path = ../..; 168 | sourceTree = ""; 169 | }; 170 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 171 | isa = PBXGroup; 172 | children = ( 173 | BF6342C8B29F4CEEA088EFF7AB4DE362 /* iOS */, 174 | ); 175 | name = Frameworks; 176 | sourceTree = ""; 177 | }; 178 | BF6342C8B29F4CEEA088EFF7AB4DE362 /* iOS */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */, 182 | ); 183 | name = iOS; 184 | sourceTree = ""; 185 | }; 186 | C519C6A82DA0F4C602500189478DB60E /* Classes */ = { 187 | isa = PBXGroup; 188 | children = ( 189 | 705D042D9426F78B6321A125BE025955 /* ANLongTapButton.swift */, 190 | 63C1B30C1D2E514229C49823101029D2 /* NSTimer+Closure.swift */, 191 | ); 192 | path = Classes; 193 | sourceTree = ""; 194 | }; 195 | DF45FAD97CEE67C9F9CC325E4E04F81B /* Pod */ = { 196 | isa = PBXGroup; 197 | children = ( 198 | C519C6A82DA0F4C602500189478DB60E /* Classes */, 199 | ); 200 | path = Pod; 201 | sourceTree = ""; 202 | }; 203 | /* End PBXGroup section */ 204 | 205 | /* Begin PBXHeadersBuildPhase section */ 206 | 194CC7E4FCDFEFF5C0CCA9A26418E6EC /* Headers */ = { 207 | isa = PBXHeadersBuildPhase; 208 | buildActionMask = 2147483647; 209 | files = ( 210 | 4D89ACC3934377A77883DC5D461CB9DA /* Pods-ANLongTapButton_Example-umbrella.h in Headers */, 211 | ); 212 | runOnlyForDeploymentPostprocessing = 0; 213 | }; 214 | 74914CE96E71B78E494673E8C89BC824 /* Headers */ = { 215 | isa = PBXHeadersBuildPhase; 216 | buildActionMask = 2147483647; 217 | files = ( 218 | A8B23EE447E2511BC7CFE24E194F4516 /* ANLongTapButton-umbrella.h in Headers */, 219 | ); 220 | runOnlyForDeploymentPostprocessing = 0; 221 | }; 222 | /* End PBXHeadersBuildPhase section */ 223 | 224 | /* Begin PBXNativeTarget section */ 225 | 27D8AED3CF0174BD340A83C33792BF8A /* ANLongTapButton-ANLongTapButton */ = { 226 | isa = PBXNativeTarget; 227 | buildConfigurationList = A5865555FC4AE7A2BD8E8CBC7D67705A /* Build configuration list for PBXNativeTarget "ANLongTapButton-ANLongTapButton" */; 228 | buildPhases = ( 229 | 5E4DE8F3DFEF8FC90D0FE91213A2B057 /* Sources */, 230 | 87D78AB3F053ECC823139408217617FB /* Frameworks */, 231 | CB2E63858A5A452FC312804543BF997B /* Resources */, 232 | ); 233 | buildRules = ( 234 | ); 235 | dependencies = ( 236 | ); 237 | name = "ANLongTapButton-ANLongTapButton"; 238 | productName = "ANLongTapButton-ANLongTapButton"; 239 | productReference = 8571B49DD88B5BBEDD82C7D8B20AB928 /* ANLongTapButton.bundle */; 240 | productType = "com.apple.product-type.bundle"; 241 | }; 242 | 65FB4A87AB8579FC8D658E20C7B50C87 /* ANLongTapButton */ = { 243 | isa = PBXNativeTarget; 244 | buildConfigurationList = A0CD4EC8CAA5202FF71DC18443538F3D /* Build configuration list for PBXNativeTarget "ANLongTapButton" */; 245 | buildPhases = ( 246 | 1329B79CC0E69838738D983F2280CBB8 /* Sources */, 247 | 6174024F3AC64393B10F5DC3FFFE887F /* Frameworks */, 248 | FDCC37445B7AFE711D97EF078195EE06 /* Resources */, 249 | 74914CE96E71B78E494673E8C89BC824 /* Headers */, 250 | ); 251 | buildRules = ( 252 | ); 253 | dependencies = ( 254 | 812073D1A5FFC0DBF5F8B3CBE5F0FC8C /* PBXTargetDependency */, 255 | ); 256 | name = ANLongTapButton; 257 | productName = ANLongTapButton; 258 | productReference = 503B9A90173B487FFC74778F1538EEE8 /* ANLongTapButton.framework */; 259 | productType = "com.apple.product-type.framework"; 260 | }; 261 | 70F455F96D8716E29EB4AC8F321A387A /* Pods-ANLongTapButton_Example */ = { 262 | isa = PBXNativeTarget; 263 | buildConfigurationList = 25F754D78C05693BAE68E84190B050B6 /* Build configuration list for PBXNativeTarget "Pods-ANLongTapButton_Example" */; 264 | buildPhases = ( 265 | 35B2975F856FDA57DA9349164D7CD989 /* Sources */, 266 | EEB51CD8ECCFDC52A33D8F340392909C /* Frameworks */, 267 | 194CC7E4FCDFEFF5C0CCA9A26418E6EC /* Headers */, 268 | ); 269 | buildRules = ( 270 | ); 271 | dependencies = ( 272 | D5B639AB93B575F038E291B775001FE9 /* PBXTargetDependency */, 273 | ); 274 | name = "Pods-ANLongTapButton_Example"; 275 | productName = "Pods-ANLongTapButton_Example"; 276 | productReference = 9A28CB9552EA507F1A360D6BEDF95EDA /* Pods_ANLongTapButton_Example.framework */; 277 | productType = "com.apple.product-type.framework"; 278 | }; 279 | /* End PBXNativeTarget section */ 280 | 281 | /* Begin PBXProject section */ 282 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 283 | isa = PBXProject; 284 | attributes = { 285 | LastSwiftUpdateCheck = 0700; 286 | LastUpgradeCheck = 0710; 287 | TargetAttributes = { 288 | 65FB4A87AB8579FC8D658E20C7B50C87 = { 289 | LastSwiftMigration = 1100; 290 | }; 291 | 70F455F96D8716E29EB4AC8F321A387A = { 292 | LastSwiftMigration = 0800; 293 | }; 294 | }; 295 | }; 296 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 297 | compatibilityVersion = "Xcode 3.2"; 298 | developmentRegion = English; 299 | hasScannedForEncodings = 0; 300 | knownRegions = ( 301 | en, 302 | ); 303 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 304 | productRefGroup = 582A32F32276508612E794B424034040 /* Products */; 305 | projectDirPath = ""; 306 | projectRoot = ""; 307 | targets = ( 308 | 65FB4A87AB8579FC8D658E20C7B50C87 /* ANLongTapButton */, 309 | 27D8AED3CF0174BD340A83C33792BF8A /* ANLongTapButton-ANLongTapButton */, 310 | 70F455F96D8716E29EB4AC8F321A387A /* Pods-ANLongTapButton_Example */, 311 | ); 312 | }; 313 | /* End PBXProject section */ 314 | 315 | /* Begin PBXResourcesBuildPhase section */ 316 | CB2E63858A5A452FC312804543BF997B /* Resources */ = { 317 | isa = PBXResourcesBuildPhase; 318 | buildActionMask = 2147483647; 319 | files = ( 320 | ); 321 | runOnlyForDeploymentPostprocessing = 0; 322 | }; 323 | FDCC37445B7AFE711D97EF078195EE06 /* Resources */ = { 324 | isa = PBXResourcesBuildPhase; 325 | buildActionMask = 2147483647; 326 | files = ( 327 | 7F57C751563A961D7DBE5CC5E2768A58 /* ANLongTapButton.bundle in Resources */, 328 | ); 329 | runOnlyForDeploymentPostprocessing = 0; 330 | }; 331 | /* End PBXResourcesBuildPhase section */ 332 | 333 | /* Begin PBXSourcesBuildPhase section */ 334 | 1329B79CC0E69838738D983F2280CBB8 /* Sources */ = { 335 | isa = PBXSourcesBuildPhase; 336 | buildActionMask = 2147483647; 337 | files = ( 338 | EFFED6D5829858696316DE9BF9BD1FDA /* ANLongTapButton-dummy.m in Sources */, 339 | 787AB55E58A97D8F95C8E2801DE33498 /* ANLongTapButton.swift in Sources */, 340 | 35BC77234902953146BB300203D02D43 /* NSTimer+Closure.swift in Sources */, 341 | ); 342 | runOnlyForDeploymentPostprocessing = 0; 343 | }; 344 | 35B2975F856FDA57DA9349164D7CD989 /* Sources */ = { 345 | isa = PBXSourcesBuildPhase; 346 | buildActionMask = 2147483647; 347 | files = ( 348 | 7E76F8970F226184FAE635B0217AC5F4 /* Pods-ANLongTapButton_Example-dummy.m in Sources */, 349 | ); 350 | runOnlyForDeploymentPostprocessing = 0; 351 | }; 352 | 5E4DE8F3DFEF8FC90D0FE91213A2B057 /* Sources */ = { 353 | isa = PBXSourcesBuildPhase; 354 | buildActionMask = 2147483647; 355 | files = ( 356 | ); 357 | runOnlyForDeploymentPostprocessing = 0; 358 | }; 359 | /* End PBXSourcesBuildPhase section */ 360 | 361 | /* Begin PBXTargetDependency section */ 362 | 812073D1A5FFC0DBF5F8B3CBE5F0FC8C /* PBXTargetDependency */ = { 363 | isa = PBXTargetDependency; 364 | name = "ANLongTapButton-ANLongTapButton"; 365 | target = 27D8AED3CF0174BD340A83C33792BF8A /* ANLongTapButton-ANLongTapButton */; 366 | targetProxy = 7103EBBA3FB1774121D6CBBB969B092A /* PBXContainerItemProxy */; 367 | }; 368 | D5B639AB93B575F038E291B775001FE9 /* PBXTargetDependency */ = { 369 | isa = PBXTargetDependency; 370 | name = ANLongTapButton; 371 | target = 65FB4A87AB8579FC8D658E20C7B50C87 /* ANLongTapButton */; 372 | targetProxy = 9C5322DE34B4918DC2C8033A5F3902AC /* PBXContainerItemProxy */; 373 | }; 374 | /* End PBXTargetDependency section */ 375 | 376 | /* Begin XCBuildConfiguration section */ 377 | 02CDF86CB295E8DE833FEC870A9D3D8D /* Release */ = { 378 | isa = XCBuildConfiguration; 379 | baseConfigurationReference = 52979FA11ADBF3A961D30C427F4D0C64 /* ANLongTapButton.xcconfig */; 380 | buildSettings = { 381 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 382 | CURRENT_PROJECT_VERSION = 1; 383 | DEFINES_MODULE = YES; 384 | DYLIB_COMPATIBILITY_VERSION = 1; 385 | DYLIB_CURRENT_VERSION = 1; 386 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 387 | ENABLE_STRICT_OBJC_MSGSEND = YES; 388 | GCC_PREFIX_HEADER = "Target Support Files/ANLongTapButton/ANLongTapButton-prefix.pch"; 389 | INFOPLIST_FILE = "Target Support Files/ANLongTapButton/Info.plist"; 390 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 391 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 392 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 393 | MODULEMAP_FILE = "Target Support Files/ANLongTapButton/ANLongTapButton.modulemap"; 394 | MTL_ENABLE_DEBUG_INFO = NO; 395 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 396 | PRODUCT_NAME = ANLongTapButton; 397 | SDKROOT = iphoneos; 398 | SKIP_INSTALL = YES; 399 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 400 | SWIFT_VERSION = 5.0; 401 | TARGETED_DEVICE_FAMILY = "1,2"; 402 | VERSIONING_SYSTEM = "apple-generic"; 403 | VERSION_INFO_PREFIX = ""; 404 | }; 405 | name = Release; 406 | }; 407 | 10DE1947DAC0ED28F6C0A9F9BD75D546 /* Release */ = { 408 | isa = XCBuildConfiguration; 409 | buildSettings = { 410 | ALWAYS_SEARCH_USER_PATHS = NO; 411 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 412 | CLANG_CXX_LIBRARY = "libc++"; 413 | CLANG_ENABLE_MODULES = YES; 414 | CLANG_ENABLE_OBJC_ARC = YES; 415 | CLANG_WARN_BOOL_CONVERSION = YES; 416 | CLANG_WARN_CONSTANT_CONVERSION = YES; 417 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 418 | CLANG_WARN_EMPTY_BODY = YES; 419 | CLANG_WARN_ENUM_CONVERSION = YES; 420 | CLANG_WARN_INT_CONVERSION = YES; 421 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 422 | CLANG_WARN_UNREACHABLE_CODE = YES; 423 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 424 | COPY_PHASE_STRIP = YES; 425 | ENABLE_NS_ASSERTIONS = NO; 426 | GCC_C_LANGUAGE_STANDARD = gnu99; 427 | GCC_PREPROCESSOR_DEFINITIONS = "RELEASE=1"; 428 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 429 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 430 | GCC_WARN_UNDECLARED_SELECTOR = YES; 431 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 432 | GCC_WARN_UNUSED_FUNCTION = YES; 433 | GCC_WARN_UNUSED_VARIABLE = YES; 434 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 435 | STRIP_INSTALLED_PRODUCT = NO; 436 | SYMROOT = "${SRCROOT}/../build"; 437 | VALIDATE_PRODUCT = YES; 438 | }; 439 | name = Release; 440 | }; 441 | 3DD0D0D40240ACFC81762A46D1CE49E2 /* Debug */ = { 442 | isa = XCBuildConfiguration; 443 | baseConfigurationReference = 52979FA11ADBF3A961D30C427F4D0C64 /* ANLongTapButton.xcconfig */; 444 | buildSettings = { 445 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 446 | CURRENT_PROJECT_VERSION = 1; 447 | DEFINES_MODULE = YES; 448 | DYLIB_COMPATIBILITY_VERSION = 1; 449 | DYLIB_CURRENT_VERSION = 1; 450 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 451 | ENABLE_STRICT_OBJC_MSGSEND = YES; 452 | GCC_PREFIX_HEADER = "Target Support Files/ANLongTapButton/ANLongTapButton-prefix.pch"; 453 | INFOPLIST_FILE = "Target Support Files/ANLongTapButton/Info.plist"; 454 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 455 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 457 | MODULEMAP_FILE = "Target Support Files/ANLongTapButton/ANLongTapButton.modulemap"; 458 | MTL_ENABLE_DEBUG_INFO = YES; 459 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 460 | PRODUCT_NAME = ANLongTapButton; 461 | SDKROOT = iphoneos; 462 | SKIP_INSTALL = YES; 463 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 464 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 465 | SWIFT_VERSION = 5.0; 466 | TARGETED_DEVICE_FAMILY = "1,2"; 467 | VERSIONING_SYSTEM = "apple-generic"; 468 | VERSION_INFO_PREFIX = ""; 469 | }; 470 | name = Debug; 471 | }; 472 | 552D02D5BA751AC2E8790D2811D496CA /* Debug */ = { 473 | isa = XCBuildConfiguration; 474 | buildSettings = { 475 | ALWAYS_SEARCH_USER_PATHS = NO; 476 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 477 | CLANG_CXX_LIBRARY = "libc++"; 478 | CLANG_ENABLE_MODULES = YES; 479 | CLANG_ENABLE_OBJC_ARC = YES; 480 | CLANG_WARN_BOOL_CONVERSION = YES; 481 | CLANG_WARN_CONSTANT_CONVERSION = YES; 482 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 483 | CLANG_WARN_EMPTY_BODY = YES; 484 | CLANG_WARN_ENUM_CONVERSION = YES; 485 | CLANG_WARN_INT_CONVERSION = YES; 486 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 487 | CLANG_WARN_UNREACHABLE_CODE = YES; 488 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 489 | COPY_PHASE_STRIP = NO; 490 | ENABLE_TESTABILITY = YES; 491 | GCC_C_LANGUAGE_STANDARD = gnu99; 492 | GCC_DYNAMIC_NO_PIC = NO; 493 | GCC_OPTIMIZATION_LEVEL = 0; 494 | GCC_PREPROCESSOR_DEFINITIONS = ( 495 | "DEBUG=1", 496 | "$(inherited)", 497 | ); 498 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 499 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 500 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 501 | GCC_WARN_UNDECLARED_SELECTOR = YES; 502 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 503 | GCC_WARN_UNUSED_FUNCTION = YES; 504 | GCC_WARN_UNUSED_VARIABLE = YES; 505 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 506 | ONLY_ACTIVE_ARCH = YES; 507 | STRIP_INSTALLED_PRODUCT = NO; 508 | SYMROOT = "${SRCROOT}/../build"; 509 | }; 510 | name = Debug; 511 | }; 512 | 8353048AFA7370F83474D3AEE0B2804C /* Release */ = { 513 | isa = XCBuildConfiguration; 514 | baseConfigurationReference = AF0FCD3ED143C0F543F41BBC1DDF7D50 /* Pods-ANLongTapButton_Example.release.xcconfig */; 515 | buildSettings = { 516 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 517 | CURRENT_PROJECT_VERSION = 1; 518 | DEFINES_MODULE = YES; 519 | DYLIB_COMPATIBILITY_VERSION = 1; 520 | DYLIB_CURRENT_VERSION = 1; 521 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 522 | ENABLE_STRICT_OBJC_MSGSEND = YES; 523 | INFOPLIST_FILE = "Target Support Files/Pods-ANLongTapButton_Example/Info.plist"; 524 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 525 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 526 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 527 | MACH_O_TYPE = staticlib; 528 | MODULEMAP_FILE = "Target Support Files/Pods-ANLongTapButton_Example/Pods-ANLongTapButton_Example.modulemap"; 529 | MTL_ENABLE_DEBUG_INFO = NO; 530 | OTHER_LDFLAGS = ""; 531 | OTHER_LIBTOOLFLAGS = ""; 532 | PODS_ROOT = "$(SRCROOT)"; 533 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 534 | PRODUCT_NAME = Pods_ANLongTapButton_Example; 535 | SDKROOT = iphoneos; 536 | SKIP_INSTALL = YES; 537 | SWIFT_VERSION = 3.0; 538 | TARGETED_DEVICE_FAMILY = "1,2"; 539 | VERSIONING_SYSTEM = "apple-generic"; 540 | VERSION_INFO_PREFIX = ""; 541 | }; 542 | name = Release; 543 | }; 544 | 85A0FD6E9AFB74249F42A518B6698C2E /* Debug */ = { 545 | isa = XCBuildConfiguration; 546 | baseConfigurationReference = 8B4884293AEC21A82B035145344CCDB0 /* Pods-ANLongTapButton_Example.debug.xcconfig */; 547 | buildSettings = { 548 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 549 | CURRENT_PROJECT_VERSION = 1; 550 | DEFINES_MODULE = YES; 551 | DYLIB_COMPATIBILITY_VERSION = 1; 552 | DYLIB_CURRENT_VERSION = 1; 553 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 554 | ENABLE_STRICT_OBJC_MSGSEND = YES; 555 | INFOPLIST_FILE = "Target Support Files/Pods-ANLongTapButton_Example/Info.plist"; 556 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 557 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 558 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 559 | MACH_O_TYPE = staticlib; 560 | MODULEMAP_FILE = "Target Support Files/Pods-ANLongTapButton_Example/Pods-ANLongTapButton_Example.modulemap"; 561 | MTL_ENABLE_DEBUG_INFO = YES; 562 | OTHER_LDFLAGS = ""; 563 | OTHER_LIBTOOLFLAGS = ""; 564 | PODS_ROOT = "$(SRCROOT)"; 565 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 566 | PRODUCT_NAME = Pods_ANLongTapButton_Example; 567 | SDKROOT = iphoneos; 568 | SKIP_INSTALL = YES; 569 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 570 | SWIFT_VERSION = 3.0; 571 | TARGETED_DEVICE_FAMILY = "1,2"; 572 | VERSIONING_SYSTEM = "apple-generic"; 573 | VERSION_INFO_PREFIX = ""; 574 | }; 575 | name = Debug; 576 | }; 577 | A38218C9DEC8FDCF9D5B7DB504859CEE /* Release */ = { 578 | isa = XCBuildConfiguration; 579 | baseConfigurationReference = 52979FA11ADBF3A961D30C427F4D0C64 /* ANLongTapButton.xcconfig */; 580 | buildSettings = { 581 | ENABLE_STRICT_OBJC_MSGSEND = YES; 582 | PRODUCT_NAME = ANLongTapButton; 583 | SDKROOT = iphoneos; 584 | SKIP_INSTALL = YES; 585 | WRAPPER_EXTENSION = bundle; 586 | }; 587 | name = Release; 588 | }; 589 | CE655C6AE6EF2CFB3F38726F9B1F088E /* Debug */ = { 590 | isa = XCBuildConfiguration; 591 | baseConfigurationReference = 52979FA11ADBF3A961D30C427F4D0C64 /* ANLongTapButton.xcconfig */; 592 | buildSettings = { 593 | ENABLE_STRICT_OBJC_MSGSEND = YES; 594 | PRODUCT_NAME = ANLongTapButton; 595 | SDKROOT = iphoneos; 596 | SKIP_INSTALL = YES; 597 | WRAPPER_EXTENSION = bundle; 598 | }; 599 | name = Debug; 600 | }; 601 | /* End XCBuildConfiguration section */ 602 | 603 | /* Begin XCConfigurationList section */ 604 | 25F754D78C05693BAE68E84190B050B6 /* Build configuration list for PBXNativeTarget "Pods-ANLongTapButton_Example" */ = { 605 | isa = XCConfigurationList; 606 | buildConfigurations = ( 607 | 85A0FD6E9AFB74249F42A518B6698C2E /* Debug */, 608 | 8353048AFA7370F83474D3AEE0B2804C /* Release */, 609 | ); 610 | defaultConfigurationIsVisible = 0; 611 | defaultConfigurationName = Release; 612 | }; 613 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 614 | isa = XCConfigurationList; 615 | buildConfigurations = ( 616 | 552D02D5BA751AC2E8790D2811D496CA /* Debug */, 617 | 10DE1947DAC0ED28F6C0A9F9BD75D546 /* Release */, 618 | ); 619 | defaultConfigurationIsVisible = 0; 620 | defaultConfigurationName = Release; 621 | }; 622 | A0CD4EC8CAA5202FF71DC18443538F3D /* Build configuration list for PBXNativeTarget "ANLongTapButton" */ = { 623 | isa = XCConfigurationList; 624 | buildConfigurations = ( 625 | 3DD0D0D40240ACFC81762A46D1CE49E2 /* Debug */, 626 | 02CDF86CB295E8DE833FEC870A9D3D8D /* Release */, 627 | ); 628 | defaultConfigurationIsVisible = 0; 629 | defaultConfigurationName = Release; 630 | }; 631 | A5865555FC4AE7A2BD8E8CBC7D67705A /* Build configuration list for PBXNativeTarget "ANLongTapButton-ANLongTapButton" */ = { 632 | isa = XCConfigurationList; 633 | buildConfigurations = ( 634 | CE655C6AE6EF2CFB3F38726F9B1F088E /* Debug */, 635 | A38218C9DEC8FDCF9D5B7DB504859CEE /* Release */, 636 | ); 637 | defaultConfigurationIsVisible = 0; 638 | defaultConfigurationName = Release; 639 | }; 640 | /* End XCConfigurationList section */ 641 | }; 642 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 643 | } 644 | --------------------------------------------------------------------------------