├── HTCustomSwitch ├── .swift-version ├── HTCustomSwitch.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ ├── xcuserdata │ │ │ └── ultrahigh.xcuserdatad │ │ │ │ └── UserInterfaceState.xcuserstate │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcuserdata │ │ └── ultrahigh.xcuserdatad │ │ │ └── xcschemes │ │ │ └── xcschememanagement.plist │ └── project.pbxproj ├── Podfile ├── HTCustomSwitch │ ├── HTCustomSwitch.h │ ├── Info.plist │ └── HTCustomSwitch.swift └── HTCustomSwitch.podspec ├── custom.gif ├── default.gif ├── storyboardScreenShot.png ├── HTCustomSwitchExample ├── HTCustomSwitchExample │ ├── Assets.xcassets │ │ ├── Contents.json │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── AppDelegate.swift │ └── ViewController.swift ├── Pods │ ├── Target Support Files │ │ ├── HTCustomSwitch │ │ │ ├── HTCustomSwitch.modulemap │ │ │ ├── HTCustomSwitch-dummy.m │ │ │ ├── HTCustomSwitch-prefix.pch │ │ │ ├── HTCustomSwitch-umbrella.h │ │ │ ├── HTCustomSwitch.xcconfig │ │ │ └── Info.plist │ │ └── Pods-HTCustomSwitchExample │ │ │ ├── Pods-HTCustomSwitchExample-acknowledgements.markdown │ │ │ ├── Pods-HTCustomSwitchExample.modulemap │ │ │ ├── Pods-HTCustomSwitchExample-dummy.m │ │ │ ├── Pods-HTCustomSwitchExample-umbrella.h │ │ │ ├── Pods-HTCustomSwitchExample.debug.xcconfig │ │ │ ├── Pods-HTCustomSwitchExample.release.xcconfig │ │ │ ├── Info.plist │ │ │ ├── Pods-HTCustomSwitchExample-acknowledgements.plist │ │ │ ├── Pods-HTCustomSwitchExample-resources.sh │ │ │ └── Pods-HTCustomSwitchExample-frameworks.sh │ ├── Manifest.lock │ ├── Local Podspecs │ │ └── HTCustomSwitch.podspec.json │ └── Pods.xcodeproj │ │ ├── xcuserdata │ │ └── ultrahigh.xcuserdatad │ │ │ └── xcschemes │ │ │ ├── xcschememanagement.plist │ │ │ ├── HTCustomSwitch.xcscheme │ │ │ └── Pods-HTCustomSwitchExample.xcscheme │ │ └── project.pbxproj ├── HTCustomSwitchExample.xcworkspace │ ├── xcuserdata │ │ └── ultrahigh.xcuserdatad │ │ │ ├── xcdebugger │ │ │ └── Breakpoints_v2.xcbkptlist │ │ │ └── UserInterfaceState.xcuserstate │ ├── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── contents.xcworkspacedata ├── HTCustomSwitchExample.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ ├── xcuserdata │ │ │ └── ultrahigh.xcuserdatad │ │ │ │ └── UserInterfaceState.xcuserstate │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcuserdata │ │ └── ultrahigh.xcuserdatad │ │ │ └── xcschemes │ │ │ └── xcschememanagement.plist │ └── project.pbxproj ├── Podfile └── Podfile.lock ├── LICENSE └── README.md /HTCustomSwitch/.swift-version: -------------------------------------------------------------------------------- 1 | 4.0 2 | -------------------------------------------------------------------------------- /custom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hungtran118/HTCustomSwitch/HEAD/custom.gif -------------------------------------------------------------------------------- /default.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hungtran118/HTCustomSwitch/HEAD/default.gif -------------------------------------------------------------------------------- /storyboardScreenShot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hungtran118/HTCustomSwitch/HEAD/storyboardScreenShot.png -------------------------------------------------------------------------------- /HTCustomSwitchExample/HTCustomSwitchExample/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Target Support Files/HTCustomSwitch/HTCustomSwitch.modulemap: -------------------------------------------------------------------------------- 1 | framework module HTCustomSwitch { 2 | umbrella header "HTCustomSwitch-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/HTCustomSwitchExample.xcworkspace/xcuserdata/ultrahigh.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Target Support Files/HTCustomSwitch/HTCustomSwitch-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_HTCustomSwitch : NSObject 3 | @end 4 | @implementation PodsDummy_HTCustomSwitch 5 | @end 6 | -------------------------------------------------------------------------------- /HTCustomSwitch/HTCustomSwitch.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Target Support Files/Pods-HTCustomSwitchExample/Pods-HTCustomSwitchExample-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Target Support Files/Pods-HTCustomSwitchExample/Pods-HTCustomSwitchExample.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_HTCustomSwitchExample { 2 | umbrella header "Pods-HTCustomSwitchExample-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Target Support Files/Pods-HTCustomSwitchExample/Pods-HTCustomSwitchExample-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_HTCustomSwitchExample : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_HTCustomSwitchExample 5 | @end 6 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/HTCustomSwitchExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/HTCustomSwitchExample.xcworkspace/xcuserdata/ultrahigh.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hungtran118/HTCustomSwitch/HEAD/HTCustomSwitchExample/HTCustomSwitchExample.xcworkspace/xcuserdata/ultrahigh.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /HTCustomSwitch/HTCustomSwitch.xcodeproj/project.xcworkspace/xcuserdata/ultrahigh.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hungtran118/HTCustomSwitch/HEAD/HTCustomSwitch/HTCustomSwitch.xcodeproj/project.xcworkspace/xcuserdata/ultrahigh.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /HTCustomSwitchExample/HTCustomSwitchExample.xcodeproj/project.xcworkspace/xcuserdata/ultrahigh.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hungtran118/HTCustomSwitch/HEAD/HTCustomSwitchExample/HTCustomSwitchExample.xcodeproj/project.xcworkspace/xcuserdata/ultrahigh.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /HTCustomSwitch/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | target 'HTCustomSwitch' do 5 | # Comment the next line if you're not using Swift and don't want to use dynamic frameworks 6 | use_frameworks! 7 | 8 | # Pods for HTCustomSwitch 9 | 10 | end 11 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Target Support Files/HTCustomSwitch/HTCustomSwitch-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/HTCustomSwitchExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /HTCustomSwitch/HTCustomSwitch.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/HTCustomSwitchExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/HTCustomSwitchExample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | target 'HTCustomSwitchExample' do 5 | # Comment the next line if you're not using Swift and don't want to use dynamic frameworks 6 | use_frameworks! 7 | 8 | # Pods for HTCustomSwitchExample 9 | pod 'HTCustomSwitch', :path => "../HTCustomSwitch" 10 | 11 | end 12 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - HTCustomSwitch (1.0.1) 3 | 4 | DEPENDENCIES: 5 | - HTCustomSwitch (from `../HTCustomSwitch`) 6 | 7 | EXTERNAL SOURCES: 8 | HTCustomSwitch: 9 | :path: "../HTCustomSwitch" 10 | 11 | SPEC CHECKSUMS: 12 | HTCustomSwitch: a104042339c03a61060d04b2c0340a94126c0270 13 | 14 | PODFILE CHECKSUM: 82248105ef82b2f70c8f8ca68ae9530976e73598 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - HTCustomSwitch (1.0.1) 3 | 4 | DEPENDENCIES: 5 | - HTCustomSwitch (from `../HTCustomSwitch`) 6 | 7 | EXTERNAL SOURCES: 8 | HTCustomSwitch: 9 | :path: "../HTCustomSwitch" 10 | 11 | SPEC CHECKSUMS: 12 | HTCustomSwitch: a104042339c03a61060d04b2c0340a94126c0270 13 | 14 | PODFILE CHECKSUM: 82248105ef82b2f70c8f8ca68ae9530976e73598 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /HTCustomSwitch/HTCustomSwitch.xcodeproj/xcuserdata/ultrahigh.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | HTCustomSwitch.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Target Support Files/HTCustomSwitch/HTCustomSwitch-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | #import "HTCustomSwitch.h" 14 | 15 | FOUNDATION_EXPORT double HTCustomSwitchVersionNumber; 16 | FOUNDATION_EXPORT const unsigned char HTCustomSwitchVersionString[]; 17 | 18 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/HTCustomSwitchExample.xcodeproj/xcuserdata/ultrahigh.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | HTCustomSwitchExample.xcscheme 8 | 9 | orderHint 10 | 2 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Target Support Files/Pods-HTCustomSwitchExample/Pods-HTCustomSwitchExample-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_HTCustomSwitchExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_HTCustomSwitchExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Target Support Files/HTCustomSwitch/HTCustomSwitch.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/HTCustomSwitch 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../../HTCustomSwitch 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Local Podspecs/HTCustomSwitch.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "HTCustomSwitch", 3 | "version": "1.0.1", 4 | "summary": "Custom UISwitch", 5 | "description": "Simple framework to custom UISwitch", 6 | "homepage": "https://github.com/hungtran118/HTCustomSwitch.git", 7 | "license": "MIT", 8 | "authors": { 9 | "HungTran": "hung.tgh95@gmail.com" 10 | }, 11 | "platforms": { 12 | "ios": "9.0" 13 | }, 14 | "source": { 15 | "git": "https://github.com/hungtran118/HTCustomSwitch.git", 16 | "tag": "1.0.1" 17 | }, 18 | "source_files": "HTCustomSwitch/**/*" 19 | } 20 | -------------------------------------------------------------------------------- /HTCustomSwitch/HTCustomSwitch/HTCustomSwitch.h: -------------------------------------------------------------------------------- 1 | // 2 | // HTCustomSwitch.h 3 | // HTCustomSwitch 4 | // 5 | // Created by UltraHigh on 10/15/18. 6 | // Copyright © 2018 HT. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for HTCustomSwitch. 12 | FOUNDATION_EXPORT double HTCustomSwitchVersionNumber; 13 | 14 | //! Project version string for HTCustomSwitch. 15 | FOUNDATION_EXPORT const unsigned char HTCustomSwitchVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /HTCustomSwitch/HTCustomSwitch.podspec: -------------------------------------------------------------------------------- 1 | 2 | Pod::Spec.new do |s| 3 | 4 | s.name = "HTCustomSwitch" 5 | s.version = "1.0.4" 6 | s.summary = "Custom UISwitch" 7 | s.description = "Simple framework to custom UISwitch" 8 | s.homepage = "https://github.com/hungtran118/HTCustomSwitch.git" 9 | 10 | # s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif" 11 | 12 | s.license = "MIT" 13 | s.author = { "HungTran" => "hung.tgh95@gmail.com" } 14 | s.platform = :ios, "9.0" 15 | s.source = { :git => "https://github.com/hungtran118/HTCustomSwitch.git", :tag => "1.0.4" } 16 | s.source_files = "HTCustomSwitch/**/*" 17 | 18 | end 19 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Pods.xcodeproj/xcuserdata/ultrahigh.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | HTCustomSwitch.xcscheme 8 | 9 | isShown 10 | 11 | orderHint 12 | 0 13 | 14 | Pods-HTCustomSwitchExample.xcscheme 15 | 16 | isShown 17 | 18 | orderHint 19 | 1 20 | 21 | 22 | SuppressBuildableAutocreation 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Target Support Files/Pods-HTCustomSwitchExample/Pods-HTCustomSwitchExample.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/HTCustomSwitch" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/HTCustomSwitch/HTCustomSwitch.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "HTCustomSwitch" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Target Support Files/Pods-HTCustomSwitchExample/Pods-HTCustomSwitchExample.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/HTCustomSwitch" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/HTCustomSwitch/HTCustomSwitch.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "HTCustomSwitch" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /HTCustomSwitch/HTCustomSwitch/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 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 19 | CFBundleVersion 20 | 0 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Target Support Files/HTCustomSwitch/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 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 3 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Target Support Files/Pods-HTCustomSwitchExample/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 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Target Support Files/Pods-HTCustomSwitchExample/Pods-HTCustomSwitchExample-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 HungTran 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/HTCustomSwitchExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 4 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/HTCustomSwitchExample/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/HTCustomSwitchExample/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /HTCustomSwitchExample/HTCustomSwitchExample/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // HTCustomSwitchExample 4 | // 5 | // Created by UltraHigh on 10/15/18. 6 | // Copyright © 2018 HT. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. 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 active 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 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Pods.xcodeproj/xcuserdata/ultrahigh.xcuserdatad/xcschemes/HTCustomSwitch.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HTCustomSwitch 2 | Simple framework to custom UISwitch. 3 | 4 | ## DEMO 5 | 6 | ### Default 7 | ![](default.gif) 8 | 9 | ### Custom 10 | ![](custom.gif) 11 | 12 | ## Installation 13 | 14 | ### Cocoapods 15 | 16 | Install Cocoapods if need be. 17 | 18 | ```bash 19 | $ gem install cocoapods 20 | ``` 21 | 22 | Add `HTCustomSwitch` in your `Podfile`. 23 | 24 | ```ruby 25 | use_frameworks! 26 | 27 | pod 'HTCustomSwitch' 28 | ``` 29 | 30 | Then, run the following command. 31 | 32 | ```bash 33 | $ pod install 34 | ``` 35 | 36 | ### Manual 37 | 38 | Just copy only `HTCustomSwitch` file to your project. That's it. 39 | 40 | ## Usage 41 | 42 | ### INIT 43 | 44 | Firstly, import `HTCustomSwitch`. 45 | 46 | ```swift 47 | import HTCustomSwitch 48 | ``` 49 | 50 | Then, using initializer. 51 | 52 | ```swift 53 | let myCustomUISwitch = HTCustomSwitch(frame: CGRect(x: 200, y: 200, width: 80, height: 50)) 54 | ``` 55 | 56 | Or, you can create it with storyboard by just changing class of any `UIView` to `HTCustomSwitch`. 57 | 58 | ### Properties 59 | 60 | - isOn: 61 | ```swift 62 | myCustomUISwitch.isOn = 'Bool' 63 | ``` 64 | - On Ball Size: 65 | ```swift 66 | myCustomUISwitch.onBallSize = 'CGFloat' 67 | ``` 68 | - On Ball Color: 69 | ```swift 70 | myCustomUISwitch.onBallColor = 'UIColor' 71 | ``` 72 | - On Ball Border Color: 73 | ```swift 74 | myCustomUISwitch.onBallBorderColor = 'UIColor' 75 | ``` 76 | - On Container Color: 77 | ```swift 78 | myCustomUISwitch.onColorContainer = 'UIColor' 79 | ``` 80 | - On Container Border Color: 81 | ```swift 82 | myCustomUISwitch.onColorContainer = 'UIColor' 83 | ``` 84 | - Off Ball Size: 85 | ```swift 86 | myCustomUISwitch.offBallSize = 'CGFloat' 87 | ``` 88 | - Off Ball Color: 89 | ```swift 90 | myCustomUISwitch.offBallColor = 'UIColor' 91 | ``` 92 | - Off Ball Border Color: 93 | ```swift 94 | myCustomUISwitch.offBallBorderColor = 'UIColor' 95 | ``` 96 | - Off Container Color: 97 | ```swift 98 | myCustomUISwitch.offColorContainer = 'UIColor' 99 | ``` 100 | - Off Container Border Color: 101 | ```swift 102 | myCustomUISwitch.offColorContainer = 'UIColor' 103 | ``` 104 | 105 | - Storyboard:
106 | ![](storyboardScreenShot.png) 107 | 108 | ### Use 109 | 110 | - Put this line of code into your `viewDidLoad()`: 111 | ```swift 112 | myCustomUISwitch.delegate = self 113 | ``` 114 | - Make your `ViewController` inherit `HTCustomSwitchDelegate`: 115 | ```swift 116 | extension ViewController: HTCustomSwitchDelegate { 117 | 118 | func valueChanged(sender: HTCustomSwitch) { 119 | print(sender.isOn) 120 | } 121 | } 122 | ``` 123 | 124 | ## License 125 | 126 | Released under the MIT license. See LICENSE for details. 127 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Pods.xcodeproj/xcuserdata/ultrahigh.xcuserdatad/xcschemes/Pods-HTCustomSwitchExample.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 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Target Support Files/Pods-HTCustomSwitchExample/Pods-HTCustomSwitchExample-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/Pods/Target Support Files/Pods-HTCustomSwitchExample/Pods-HTCustomSwitchExample-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 80 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | 145 | if [[ "$CONFIGURATION" == "Debug" ]]; then 146 | install_framework "${BUILT_PRODUCTS_DIR}/HTCustomSwitch/HTCustomSwitch.framework" 147 | fi 148 | if [[ "$CONFIGURATION" == "Release" ]]; then 149 | install_framework "${BUILT_PRODUCTS_DIR}/HTCustomSwitch/HTCustomSwitch.framework" 150 | fi 151 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 152 | wait 153 | fi 154 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/HTCustomSwitchExample/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // HTCustomSwitchExample 4 | // 5 | // Created by UltraHigh on 10/15/18. 6 | // Copyright © 2018 HT. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import HTCustomSwitch 11 | 12 | class ViewController: UIViewController { 13 | 14 | //MARK: - OUTLET 15 | @IBOutlet weak var htCustomSwitch: HTCustomSwitch! 16 | 17 | @IBOutlet weak var txfOnBallSize: UITextField! 18 | @IBOutlet weak var txfOnBallR: UITextField! 19 | @IBOutlet weak var txfOnBallG: UITextField! 20 | @IBOutlet weak var txfOnBallB: UITextField! 21 | @IBOutlet weak var txfOnBallBorderR: UITextField! 22 | @IBOutlet weak var txfOnBallBorderG: UITextField! 23 | @IBOutlet weak var txfOnBallBorderB: UITextField! 24 | @IBOutlet weak var txfOnR: UITextField! 25 | @IBOutlet weak var txfOnG: UITextField! 26 | @IBOutlet weak var txfOnB: UITextField! 27 | @IBOutlet weak var txfOnBorderR: UITextField! 28 | @IBOutlet weak var txfOnBorderG: UITextField! 29 | @IBOutlet weak var txfOnBorderB: UITextField! 30 | 31 | // 32 | 33 | @IBOutlet weak var txfOffBallSize: UITextField! 34 | @IBOutlet weak var txfOffBallR: UITextField! 35 | @IBOutlet weak var txfOffBallG: UITextField! 36 | @IBOutlet weak var txfOffBallB: UITextField! 37 | @IBOutlet weak var txfOffBallBorderR: UITextField! 38 | @IBOutlet weak var txfOffBallBorderG: UITextField! 39 | @IBOutlet weak var txfOffBallBorderB: UITextField! 40 | @IBOutlet weak var txfOffR: UITextField! 41 | @IBOutlet weak var txfOffG: UITextField! 42 | @IBOutlet weak var txfOffB: UITextField! 43 | @IBOutlet weak var txfOffBorderR: UITextField! 44 | @IBOutlet weak var txfOffBorderG: UITextField! 45 | @IBOutlet weak var txfOffBorderB: UITextField! 46 | 47 | @IBOutlet weak var bottomConstraint: NSLayoutConstraint! 48 | 49 | //MARK: - LIVE CIRCLE 50 | override func viewDidLoad() { 51 | super.viewDidLoad() 52 | 53 | configView() 54 | keyboardObserver() 55 | } 56 | } 57 | 58 | //MARK: - SUPPORT FUNCTIONS 59 | extension ViewController { 60 | 61 | private func configView() { 62 | 63 | htCustomSwitch.delegate = self 64 | 65 | txfOnBallSize.delegate = self 66 | txfOnBallR.delegate = self 67 | txfOnBallG.delegate = self 68 | txfOnBallB.delegate = self 69 | txfOnBallBorderR.delegate = self 70 | txfOnBallBorderG.delegate = self 71 | txfOnBallBorderB.delegate = self 72 | txfOnR.delegate = self 73 | txfOnG.delegate = self 74 | txfOnB.delegate = self 75 | txfOnBorderR.delegate = self 76 | txfOnBorderG.delegate = self 77 | txfOnBorderB.delegate = self 78 | 79 | txfOffBallSize.delegate = self 80 | txfOffBallR.delegate = self 81 | txfOffBallG.delegate = self 82 | txfOffBallB.delegate = self 83 | txfOffBallBorderR.delegate = self 84 | txfOffBallBorderG.delegate = self 85 | txfOffBallBorderB.delegate = self 86 | txfOffR.delegate = self 87 | txfOffG.delegate = self 88 | txfOffB.delegate = self 89 | txfOffBorderR.delegate = self 90 | txfOffBorderG.delegate = self 91 | txfOffBorderB.delegate = self 92 | 93 | view.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(hideKeyboard))) 94 | } 95 | 96 | @objc private func hideKeyboard() { 97 | view.endEditing(true) 98 | } 99 | 100 | private func keyboardObserver() { 101 | 102 | NotificationCenter.default.addObserver(self, selector: #selector(keyboardDidShown), name: NSNotification.Name.UIKeyboardDidShow, object: nil) 103 | 104 | NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillHide), name: NSNotification.Name.UIKeyboardWillHide, object: nil) 105 | } 106 | 107 | @objc private func keyboardDidShown(_ notification: Notification){ 108 | 109 | guard let userInfo = notification.userInfo, let keyboardFrameValue = userInfo[UIKeyboardFrameEndUserInfoKey] as? NSValue else { return } 110 | 111 | let keyboardHeight = keyboardFrameValue.cgRectValue.size.height 112 | bottomConstraint.constant += keyboardHeight 113 | } 114 | 115 | @objc private func keyboardWillHide(_ notification: Notification){ 116 | 117 | bottomConstraint.constant = 20 118 | } 119 | } 120 | 121 | //MARK: - Textfeild delegate 122 | extension ViewController: UITextFieldDelegate { 123 | 124 | func textFieldDidEndEditing(_ textField: UITextField) { 125 | guard textField.text != "" else { return } 126 | 127 | switch textField { 128 | 129 | case txfOnBallSize: 130 | htCustomSwitch.onBallSize = CGFloat(Double(txfOnBallSize.text ?? "0") ?? 0) 131 | 132 | case txfOnBallR, txfOnBallG, txfOnBallB: 133 | htCustomSwitch.onBallColor = UIColor(red: CGFloat(Double(txfOnBallR.text ?? "0") ?? 0), 134 | green: CGFloat(Double(txfOnBallG.text ?? "0") ?? 0), 135 | blue: CGFloat(Double(txfOnBallB.text ?? "0") ?? 0), alpha: 1) 136 | 137 | case txfOnBallBorderR, txfOnBallBorderG, txfOnBallBorderB: 138 | htCustomSwitch.onBallBorderColor = UIColor(red: CGFloat(Double(txfOnBallBorderR.text ?? "0") ?? 0), 139 | green: CGFloat(Double(txfOnBallBorderG.text ?? "0") ?? 0), 140 | blue: CGFloat(Double(txfOnBallBorderB.text ?? "0") ?? 0), alpha: 1) 141 | 142 | case txfOnR, txfOnG, txfOnB: 143 | htCustomSwitch.onColorContainer = UIColor(red: CGFloat(Double(txfOnR.text ?? "0") ?? 0), 144 | green: CGFloat(Double(txfOnG.text ?? "0") ?? 0), 145 | blue: CGFloat(Double(txfOnB.text ?? "0") ?? 0), alpha: 1) 146 | 147 | case txfOnBorderR, txfOnBorderG, txfOnBorderB: 148 | htCustomSwitch.onBorderColorContainer = UIColor(red: CGFloat(Double(txfOnBorderR.text ?? "0") ?? 0), 149 | green: CGFloat(Double(txfOnBorderG.text ?? "0") ?? 0), 150 | blue: CGFloat(Double(txfOnBorderB.text ?? "0") ?? 0), alpha: 1) 151 | 152 | case txfOffBallSize: 153 | htCustomSwitch.offBallSize = CGFloat(Double(txfOffBallSize.text ?? "0") ?? 0) 154 | 155 | case txfOffBallR, txfOffBallG, txfOffBallB: 156 | htCustomSwitch.offBallColor = UIColor(red: CGFloat(Double(txfOffBallR.text ?? "0") ?? 0), 157 | green: CGFloat(Double(txfOffBallG.text ?? "0") ?? 0), 158 | blue: CGFloat(Double(txfOffBallB.text ?? "0") ?? 0), alpha: 1) 159 | 160 | case txfOffBallBorderR, txfOffBallBorderG, txfOffBallBorderB: 161 | htCustomSwitch.offBallBorderColor = UIColor(red: CGFloat(Double(txfOffBallBorderR.text ?? "0") ?? 0), 162 | green: CGFloat(Double(txfOffBallBorderG.text ?? "0") ?? 0), 163 | blue: CGFloat(Double(txfOffBallBorderB.text ?? "0") ?? 0), alpha: 1) 164 | 165 | case txfOffR, txfOffG, txfOffB: 166 | htCustomSwitch.offColorContainer = UIColor(red: CGFloat(Double(txfOffR.text ?? "0") ?? 0), 167 | green: CGFloat(Double(txfOffG.text ?? "0") ?? 0), 168 | blue: CGFloat(Double(txfOffB.text ?? "0") ?? 0), alpha: 1) 169 | 170 | case txfOffBorderR, txfOffBorderG, txfOffBorderB: 171 | htCustomSwitch.offBorderColorContainer = UIColor(red: CGFloat(Double(txfOffBorderR.text ?? "0") ?? 0), 172 | green: CGFloat(Double(txfOffBorderG.text ?? "0") ?? 0), 173 | blue: CGFloat(Double(txfOffBorderB.text ?? "0") ?? 0), alpha: 1) 174 | default: 175 | break 176 | } 177 | } 178 | } 179 | 180 | //MARK: - htCustomSwitch Delegate 181 | extension ViewController: HTCustomSwitchDelegate { 182 | 183 | func valueChanged(sender: HTCustomSwitch) { 184 | print(sender.isOn) 185 | } 186 | } 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | -------------------------------------------------------------------------------- /HTCustomSwitch/HTCustomSwitch/HTCustomSwitch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HTCustomSwitch.swift 3 | // HTCustomSwitch 4 | // 5 | // Created by UltraHigh on 10/15/18. 6 | // Copyright © 2018 HT. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public protocol HTCustomSwitchDelegate: class { 12 | func valueChanged(sender: HTCustomSwitch) 13 | } 14 | 15 | @IBDesignable 16 | public class HTCustomSwitch: UIView { 17 | 18 | //MARK: - PROPERTIES 19 | weak public var delegate: HTCustomSwitchDelegate? 20 | 21 | private var ball = UIView() 22 | private var container = UIView() 23 | 24 | private var ballOnFrame = CGRect.zero 25 | private var ballOffFrame = CGRect.zero 26 | 27 | private let ballAnimates = CAAnimationGroup() 28 | private let ballXPosAnimate = CABasicAnimation(keyPath: "position.x") 29 | private let ballCornerRadiusAnimate = CABasicAnimation(keyPath: "cornerRadius") 30 | private let ballSizeAnimate = CABasicAnimation(keyPath: "bounds.size") 31 | private let ballBGColorAniamte = CABasicAnimation(keyPath: "backgroundColor") 32 | private let ballBorderColorAnimate = CABasicAnimation(keyPath: "borderColor") 33 | 34 | private let containerAnimates = CAAnimationGroup() 35 | private let containerBGColorAniamte = CABasicAnimation(keyPath: "backgroundColor") 36 | private let containerBorderColorAnimate = CABasicAnimation(keyPath: "borderColor") 37 | 38 | //MARK: - CUSTOM UI 39 | @IBInspectable public var isOn: Bool = true { 40 | didSet { 41 | setToCurrentState() 42 | } 43 | } 44 | 45 | @IBInspectable public var onBallSize: CGFloat = 0 { 46 | didSet { 47 | configBallOn() 48 | setToCurrentState() 49 | } 50 | } 51 | 52 | @IBInspectable public var onBallColor: UIColor = UIColor.white { 53 | didSet { 54 | configBallOn() 55 | setToCurrentState() 56 | } 57 | } 58 | 59 | @IBInspectable public var onBallBorderColor: UIColor = UIColor.clear { 60 | didSet { 61 | configBallOn() 62 | setToCurrentState() 63 | } 64 | } 65 | 66 | @IBInspectable public var onColorContainer: UIColor = UIColor(red: 83/255, green: 215/255, blue: 105/255, alpha: 1) { 67 | didSet { 68 | configContainerOn() 69 | setToCurrentState() 70 | } 71 | } 72 | 73 | @IBInspectable public var onBorderColorContainer: UIColor = UIColor.clear { 74 | didSet { 75 | configContainerOn() 76 | setToCurrentState() 77 | } 78 | } 79 | 80 | @IBInspectable public var offBallSize: CGFloat = 0 { 81 | didSet { 82 | configBallOff() 83 | setToCurrentState() 84 | } 85 | } 86 | 87 | @IBInspectable public var offBallColor: UIColor = UIColor.white { 88 | didSet { 89 | configBallOff() 90 | setToCurrentState() 91 | } 92 | } 93 | 94 | @IBInspectable public var offBallBorderColor: UIColor = UIColor.clear { 95 | didSet { 96 | configBallOff() 97 | setToCurrentState() 98 | } 99 | } 100 | 101 | @IBInspectable public var offColorContainer: UIColor = UIColor.white { 102 | didSet { 103 | configContainerOff() 104 | setToCurrentState() 105 | } 106 | } 107 | 108 | @IBInspectable public var offBorderColorContainer: UIColor = UIColor(white: 0.9, alpha: 1) { 109 | didSet { 110 | configContainerOff() 111 | setToCurrentState() 112 | } 113 | } 114 | 115 | @IBInspectable public var ratioBallCorner: CGFloat = 0.5 { 116 | didSet { 117 | setToCurrentState() 118 | } 119 | } 120 | 121 | @IBInspectable public var ratioContainerCorner: CGFloat = 0.5 { 122 | didSet { 123 | setToCurrentState() 124 | } 125 | } 126 | 127 | //MARK: - INIT 128 | override public init(frame: CGRect) { 129 | super.init(frame: frame) 130 | 131 | configView() 132 | } 133 | 134 | required public init?(coder aDecoder: NSCoder) { 135 | super.init(coder: aDecoder) 136 | 137 | configView() 138 | } 139 | 140 | //MARK: - CONFIG 141 | 142 | private func configView() { 143 | 144 | backgroundColor = .clear 145 | 146 | let defaultBorderWidth = min(frame.width, frame.height)/20 147 | 148 | onBallSize = bounds.height - 2*defaultBorderWidth 149 | offBallSize = bounds.height - 2*defaultBorderWidth 150 | 151 | setToCurrentState() 152 | configAnimate() 153 | 154 | container.clipsToBounds = true 155 | 156 | ball.layer.shadowColor = UIColor.black.cgColor 157 | ball.layer.shadowOffset = CGSize(width: 0, height: 4) 158 | ball.layer.shadowRadius = 3 159 | ball.layer.shadowOpacity = 0.3 160 | ball.layer.masksToBounds = false 161 | 162 | addSubview(container) 163 | addSubview(ball) 164 | 165 | addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(onTap))) 166 | } 167 | 168 | private func configAnimate() { 169 | 170 | ballAnimates.animations = [ballXPosAnimate, ballSizeAnimate, ballCornerRadiusAnimate, ballBGColorAniamte, ballBorderColorAnimate] 171 | ballAnimates.duration = 0.2 172 | ballAnimates.isRemovedOnCompletion = false 173 | ballAnimates.fillMode = kCAFillModeForwards 174 | ballAnimates.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseOut) 175 | 176 | containerAnimates.animations = [containerBGColorAniamte, containerBorderColorAnimate] 177 | containerAnimates.duration = 0.2 178 | containerAnimates.isRemovedOnCompletion = false 179 | containerAnimates.fillMode = kCAFillModeForwards 180 | containerAnimates.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseOut) 181 | } 182 | 183 | private func configBallOn() { 184 | 185 | let ballPointOn = CGPoint(x: bounds.maxX - (bounds.height + onBallSize)/2, y: (bounds.height - onBallSize)/2) 186 | ballOnFrame = CGRect(origin: ballPointOn, size: CGSize(width: onBallSize, height: onBallSize)) 187 | ball.frame = ballOnFrame 188 | ball.backgroundColor = onBallColor 189 | ball.layer.cornerRadius = min(ball.frame.width, ball.frame.height)*ratioBallCorner 190 | ball.layer.borderWidth = min(ball.frame.width, ball.frame.height)/20 191 | ball.layer.borderColor = onBallBorderColor.cgColor 192 | layoutIfNeeded() 193 | } 194 | 195 | private func configBallOff() { 196 | 197 | let ballPointOff = CGPoint(x: (bounds.height - offBallSize)/2, y: (bounds.height - offBallSize)/2) 198 | ballOffFrame = CGRect(origin: ballPointOff, size: CGSize(width: offBallSize, height: offBallSize)) 199 | ball.frame = ballOffFrame 200 | ball.backgroundColor = offBallColor 201 | ball.layer.cornerRadius = min(ball.frame.width, ball.frame.height)*ratioBallCorner 202 | ball.layer.borderWidth = min(ball.frame.width, ball.frame.height)/20 203 | ball.layer.borderColor = offBallBorderColor.cgColor 204 | layoutIfNeeded() 205 | } 206 | 207 | private func configContainerOn() { 208 | 209 | container.frame = bounds 210 | container.backgroundColor = onColorContainer 211 | container.layer.borderWidth = min(frame.width, frame.height)/20 212 | container.layer.borderColor = onBorderColorContainer.cgColor 213 | container.layer.cornerRadius = min(container.frame.width, container.frame.height)*ratioContainerCorner 214 | layoutIfNeeded() 215 | } 216 | 217 | private func configContainerOff() { 218 | 219 | container.frame = bounds 220 | container.backgroundColor = offColorContainer 221 | container.layer.borderWidth = min(frame.width, frame.height)/20 222 | container.layer.borderColor = offBorderColorContainer.cgColor 223 | container.layer.cornerRadius = min(container.frame.width, container.frame.height)*ratioContainerCorner 224 | layoutIfNeeded() 225 | } 226 | 227 | private func configBallAnimate(fromX: CGFloat, toX: CGFloat, fromSize: CGSize, toSize: CGSize, fromCornerRadius: CGFloat, toCornerRadius: CGFloat, fromBGColor: UIColor, toBGColor: UIColor, fromBorderColor: UIColor, toBoderColor: UIColor) { 228 | 229 | ballXPosAnimate.fromValue = fromX 230 | ballXPosAnimate.toValue = toX 231 | 232 | ballSizeAnimate.fromValue = fromSize 233 | ballSizeAnimate.toValue = toSize 234 | 235 | ballCornerRadiusAnimate.fromValue = fromCornerRadius 236 | ballCornerRadiusAnimate.toValue = toCornerRadius 237 | 238 | ballBGColorAniamte.fromValue = fromBGColor.cgColor 239 | ballBGColorAniamte.toValue = toBGColor.cgColor 240 | 241 | ballBorderColorAnimate.fromValue = fromBorderColor.cgColor 242 | ballBorderColorAnimate.toValue = toBoderColor.cgColor 243 | 244 | ball.layer.add(ballAnimates, forKey: "HTSwitchBallAnimate") 245 | } 246 | 247 | private func configContainerAnimate(fromBGColor: UIColor, toBGColor: UIColor, fromBorderColor: UIColor, toBorderColor: UIColor) { 248 | 249 | containerBGColorAniamte.fromValue = fromBGColor.cgColor 250 | containerBGColorAniamte.toValue = toBGColor.cgColor 251 | 252 | containerBorderColorAnimate.fromValue = fromBorderColor.cgColor 253 | containerBorderColorAnimate.toValue = toBorderColor.cgColor 254 | 255 | container.layer.add(containerAnimates, forKey: "HTSwitchContainerAnimate") 256 | } 257 | 258 | //MARK: - ACTIONS 259 | 260 | @objc func onTap() { 261 | 262 | if isOn { 263 | setOff() 264 | } else { 265 | setOn() 266 | } 267 | 268 | isOn = !isOn 269 | 270 | delegate?.valueChanged(sender: self) 271 | } 272 | 273 | private func setToCurrentState() { 274 | 275 | if isOn { 276 | setOn(isAnimate: false) 277 | } else { 278 | setOff(isAnimate: false) 279 | } 280 | } 281 | 282 | public func setOn(isAnimate: Bool? = true) { 283 | 284 | if isAnimate! { 285 | 286 | configBallAnimate(fromX: ballOffFrame.origin.x + ballOffFrame.height/2, 287 | toX: ballOnFrame.origin.x + ballOnFrame.height/2, 288 | fromSize: ballOffFrame.size, 289 | toSize: ballOnFrame.size, 290 | fromCornerRadius: min(ballOffFrame.width, ballOffFrame.height)*ratioBallCorner, 291 | toCornerRadius: min(ballOnFrame.width, ballOnFrame.height)*ratioBallCorner, 292 | fromBGColor: offBallColor, 293 | toBGColor: onBallColor, 294 | fromBorderColor: offBallBorderColor, 295 | toBoderColor: onBallBorderColor) 296 | 297 | configContainerAnimate(fromBGColor: offColorContainer, 298 | toBGColor: onColorContainer, 299 | fromBorderColor: offBorderColorContainer, 300 | toBorderColor: onBorderColorContainer) 301 | } else { 302 | configBallOn() 303 | configContainerOn() 304 | } 305 | } 306 | 307 | public func setOff(isAnimate: Bool? = true) { 308 | 309 | if isAnimate! { 310 | 311 | configBallAnimate(fromX: ballOnFrame.origin.x + ballOnFrame.height/2, 312 | toX: ballOffFrame.origin.x + ballOffFrame.height/2, 313 | fromSize: ballOnFrame.size, 314 | toSize: ballOffFrame.size, 315 | fromCornerRadius: min(ballOnFrame.width, ballOnFrame.height)*ratioBallCorner, 316 | toCornerRadius: min(ballOffFrame.width, ballOffFrame.height)*ratioBallCorner, fromBGColor: onBallColor, 317 | toBGColor: offBallColor, 318 | fromBorderColor: onBallBorderColor, 319 | toBoderColor: offBallBorderColor) 320 | 321 | configContainerAnimate(fromBGColor: onColorContainer, 322 | toBGColor: offColorContainer, 323 | fromBorderColor: onBorderColorContainer, 324 | toBorderColor: offBorderColorContainer) 325 | } else { 326 | configBallOff() 327 | configContainerOff() 328 | } 329 | } 330 | } 331 | 332 | 333 | 334 | 335 | 336 | 337 | -------------------------------------------------------------------------------- /HTCustomSwitch/HTCustomSwitch.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 8A3B367221746FAE0088FCA5 /* HTCustomSwitch.h in Headers */ = {isa = PBXBuildFile; fileRef = 8A3B367021746FAE0088FCA5 /* HTCustomSwitch.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 8A3B367921746FC40088FCA5 /* HTCustomSwitch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A3B367821746FC40088FCA5 /* HTCustomSwitch.swift */; }; 12 | /* End PBXBuildFile section */ 13 | 14 | /* Begin PBXFileReference section */ 15 | 8A3B366D21746FAE0088FCA5 /* HTCustomSwitch.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = HTCustomSwitch.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 16 | 8A3B367021746FAE0088FCA5 /* HTCustomSwitch.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HTCustomSwitch.h; sourceTree = ""; }; 17 | 8A3B367121746FAE0088FCA5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 18 | 8A3B367821746FC40088FCA5 /* HTCustomSwitch.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HTCustomSwitch.swift; sourceTree = ""; }; 19 | /* End PBXFileReference section */ 20 | 21 | /* Begin PBXFrameworksBuildPhase section */ 22 | 8A3B366921746FAE0088FCA5 /* Frameworks */ = { 23 | isa = PBXFrameworksBuildPhase; 24 | buildActionMask = 2147483647; 25 | files = ( 26 | ); 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXFrameworksBuildPhase section */ 30 | 31 | /* Begin PBXGroup section */ 32 | 8A3B366321746FAE0088FCA5 = { 33 | isa = PBXGroup; 34 | children = ( 35 | 8A3B366F21746FAE0088FCA5 /* HTCustomSwitch */, 36 | 8A3B366E21746FAE0088FCA5 /* Products */, 37 | ); 38 | sourceTree = ""; 39 | }; 40 | 8A3B366E21746FAE0088FCA5 /* Products */ = { 41 | isa = PBXGroup; 42 | children = ( 43 | 8A3B366D21746FAE0088FCA5 /* HTCustomSwitch.framework */, 44 | ); 45 | name = Products; 46 | sourceTree = ""; 47 | }; 48 | 8A3B366F21746FAE0088FCA5 /* HTCustomSwitch */ = { 49 | isa = PBXGroup; 50 | children = ( 51 | 8A3B367021746FAE0088FCA5 /* HTCustomSwitch.h */, 52 | 8A3B367121746FAE0088FCA5 /* Info.plist */, 53 | 8A3B367821746FC40088FCA5 /* HTCustomSwitch.swift */, 54 | ); 55 | path = HTCustomSwitch; 56 | sourceTree = ""; 57 | }; 58 | /* End PBXGroup section */ 59 | 60 | /* Begin PBXHeadersBuildPhase section */ 61 | 8A3B366A21746FAE0088FCA5 /* Headers */ = { 62 | isa = PBXHeadersBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 8A3B367221746FAE0088FCA5 /* HTCustomSwitch.h in Headers */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXHeadersBuildPhase section */ 70 | 71 | /* Begin PBXNativeTarget section */ 72 | 8A3B366C21746FAE0088FCA5 /* HTCustomSwitch */ = { 73 | isa = PBXNativeTarget; 74 | buildConfigurationList = 8A3B367521746FAE0088FCA5 /* Build configuration list for PBXNativeTarget "HTCustomSwitch" */; 75 | buildPhases = ( 76 | 8A3B366821746FAE0088FCA5 /* Sources */, 77 | 8A3B366921746FAE0088FCA5 /* Frameworks */, 78 | 8A3B366A21746FAE0088FCA5 /* Headers */, 79 | 8A3B366B21746FAE0088FCA5 /* Resources */, 80 | ); 81 | buildRules = ( 82 | ); 83 | dependencies = ( 84 | ); 85 | name = HTCustomSwitch; 86 | productName = HTCustomSwitch; 87 | productReference = 8A3B366D21746FAE0088FCA5 /* HTCustomSwitch.framework */; 88 | productType = "com.apple.product-type.framework"; 89 | }; 90 | /* End PBXNativeTarget section */ 91 | 92 | /* Begin PBXProject section */ 93 | 8A3B366421746FAE0088FCA5 /* Project object */ = { 94 | isa = PBXProject; 95 | attributes = { 96 | LastUpgradeCheck = 0940; 97 | ORGANIZATIONNAME = HT; 98 | TargetAttributes = { 99 | 8A3B366C21746FAE0088FCA5 = { 100 | CreatedOnToolsVersion = 9.4.1; 101 | LastSwiftMigration = 0940; 102 | }; 103 | }; 104 | }; 105 | buildConfigurationList = 8A3B366721746FAE0088FCA5 /* Build configuration list for PBXProject "HTCustomSwitch" */; 106 | compatibilityVersion = "Xcode 9.3"; 107 | developmentRegion = en; 108 | hasScannedForEncodings = 0; 109 | knownRegions = ( 110 | en, 111 | ); 112 | mainGroup = 8A3B366321746FAE0088FCA5; 113 | productRefGroup = 8A3B366E21746FAE0088FCA5 /* Products */; 114 | projectDirPath = ""; 115 | projectRoot = ""; 116 | targets = ( 117 | 8A3B366C21746FAE0088FCA5 /* HTCustomSwitch */, 118 | ); 119 | }; 120 | /* End PBXProject section */ 121 | 122 | /* Begin PBXResourcesBuildPhase section */ 123 | 8A3B366B21746FAE0088FCA5 /* Resources */ = { 124 | isa = PBXResourcesBuildPhase; 125 | buildActionMask = 2147483647; 126 | files = ( 127 | ); 128 | runOnlyForDeploymentPostprocessing = 0; 129 | }; 130 | /* End PBXResourcesBuildPhase section */ 131 | 132 | /* Begin PBXSourcesBuildPhase section */ 133 | 8A3B366821746FAE0088FCA5 /* Sources */ = { 134 | isa = PBXSourcesBuildPhase; 135 | buildActionMask = 2147483647; 136 | files = ( 137 | 8A3B367921746FC40088FCA5 /* HTCustomSwitch.swift in Sources */, 138 | ); 139 | runOnlyForDeploymentPostprocessing = 0; 140 | }; 141 | /* End PBXSourcesBuildPhase section */ 142 | 143 | /* Begin XCBuildConfiguration section */ 144 | 8A3B367321746FAE0088FCA5 /* Debug */ = { 145 | isa = XCBuildConfiguration; 146 | buildSettings = { 147 | ALWAYS_SEARCH_USER_PATHS = NO; 148 | CLANG_ANALYZER_NONNULL = YES; 149 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 150 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 151 | CLANG_CXX_LIBRARY = "libc++"; 152 | CLANG_ENABLE_MODULES = YES; 153 | CLANG_ENABLE_OBJC_ARC = YES; 154 | CLANG_ENABLE_OBJC_WEAK = YES; 155 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 156 | CLANG_WARN_BOOL_CONVERSION = YES; 157 | CLANG_WARN_COMMA = YES; 158 | CLANG_WARN_CONSTANT_CONVERSION = YES; 159 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 160 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 161 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 162 | CLANG_WARN_EMPTY_BODY = YES; 163 | CLANG_WARN_ENUM_CONVERSION = YES; 164 | CLANG_WARN_INFINITE_RECURSION = YES; 165 | CLANG_WARN_INT_CONVERSION = YES; 166 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 167 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 168 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 169 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 170 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 171 | CLANG_WARN_STRICT_PROTOTYPES = YES; 172 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 173 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 174 | CLANG_WARN_UNREACHABLE_CODE = YES; 175 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 176 | CODE_SIGN_IDENTITY = "iPhone Developer"; 177 | COPY_PHASE_STRIP = NO; 178 | CURRENT_PROJECT_VERSION = 1; 179 | DEBUG_INFORMATION_FORMAT = dwarf; 180 | ENABLE_STRICT_OBJC_MSGSEND = YES; 181 | ENABLE_TESTABILITY = YES; 182 | GCC_C_LANGUAGE_STANDARD = gnu11; 183 | GCC_DYNAMIC_NO_PIC = NO; 184 | GCC_NO_COMMON_BLOCKS = YES; 185 | GCC_OPTIMIZATION_LEVEL = 0; 186 | GCC_PREPROCESSOR_DEFINITIONS = ( 187 | "DEBUG=1", 188 | "$(inherited)", 189 | ); 190 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 191 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 192 | GCC_WARN_UNDECLARED_SELECTOR = YES; 193 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 194 | GCC_WARN_UNUSED_FUNCTION = YES; 195 | GCC_WARN_UNUSED_VARIABLE = YES; 196 | IPHONEOS_DEPLOYMENT_TARGET = 11.4; 197 | MTL_ENABLE_DEBUG_INFO = YES; 198 | ONLY_ACTIVE_ARCH = YES; 199 | SDKROOT = iphoneos; 200 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 201 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 202 | VERSIONING_SYSTEM = "apple-generic"; 203 | VERSION_INFO_PREFIX = ""; 204 | }; 205 | name = Debug; 206 | }; 207 | 8A3B367421746FAE0088FCA5 /* Release */ = { 208 | isa = XCBuildConfiguration; 209 | buildSettings = { 210 | ALWAYS_SEARCH_USER_PATHS = NO; 211 | CLANG_ANALYZER_NONNULL = YES; 212 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 213 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 214 | CLANG_CXX_LIBRARY = "libc++"; 215 | CLANG_ENABLE_MODULES = YES; 216 | CLANG_ENABLE_OBJC_ARC = YES; 217 | CLANG_ENABLE_OBJC_WEAK = YES; 218 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 219 | CLANG_WARN_BOOL_CONVERSION = YES; 220 | CLANG_WARN_COMMA = YES; 221 | CLANG_WARN_CONSTANT_CONVERSION = YES; 222 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 223 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 224 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 225 | CLANG_WARN_EMPTY_BODY = YES; 226 | CLANG_WARN_ENUM_CONVERSION = YES; 227 | CLANG_WARN_INFINITE_RECURSION = YES; 228 | CLANG_WARN_INT_CONVERSION = YES; 229 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 230 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 231 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 232 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 233 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 234 | CLANG_WARN_STRICT_PROTOTYPES = YES; 235 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 236 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 237 | CLANG_WARN_UNREACHABLE_CODE = YES; 238 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 239 | CODE_SIGN_IDENTITY = "iPhone Developer"; 240 | COPY_PHASE_STRIP = NO; 241 | CURRENT_PROJECT_VERSION = 1; 242 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 243 | ENABLE_NS_ASSERTIONS = NO; 244 | ENABLE_STRICT_OBJC_MSGSEND = YES; 245 | GCC_C_LANGUAGE_STANDARD = gnu11; 246 | GCC_NO_COMMON_BLOCKS = YES; 247 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 248 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 249 | GCC_WARN_UNDECLARED_SELECTOR = YES; 250 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 251 | GCC_WARN_UNUSED_FUNCTION = YES; 252 | GCC_WARN_UNUSED_VARIABLE = YES; 253 | IPHONEOS_DEPLOYMENT_TARGET = 11.4; 254 | MTL_ENABLE_DEBUG_INFO = NO; 255 | SDKROOT = iphoneos; 256 | SWIFT_COMPILATION_MODE = wholemodule; 257 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 258 | VALIDATE_PRODUCT = YES; 259 | VERSIONING_SYSTEM = "apple-generic"; 260 | VERSION_INFO_PREFIX = ""; 261 | }; 262 | name = Release; 263 | }; 264 | 8A3B367621746FAE0088FCA5 /* Debug */ = { 265 | isa = XCBuildConfiguration; 266 | buildSettings = { 267 | CLANG_ENABLE_MODULES = YES; 268 | CODE_SIGN_IDENTITY = ""; 269 | CODE_SIGN_STYLE = Automatic; 270 | DEFINES_MODULE = YES; 271 | DEVELOPMENT_TEAM = 7QBA97J5G9; 272 | DYLIB_COMPATIBILITY_VERSION = 1; 273 | DYLIB_CURRENT_VERSION = 1; 274 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 275 | INFOPLIST_FILE = HTCustomSwitch/Info.plist; 276 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 277 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 278 | LD_RUNPATH_SEARCH_PATHS = ( 279 | "$(inherited)", 280 | "@executable_path/Frameworks", 281 | "@loader_path/Frameworks", 282 | ); 283 | PRODUCT_BUNDLE_IDENTIFIER = HT.HTCustomSwitch; 284 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 285 | SKIP_INSTALL = YES; 286 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 287 | SWIFT_VERSION = 4.0; 288 | TARGETED_DEVICE_FAMILY = "1,2"; 289 | }; 290 | name = Debug; 291 | }; 292 | 8A3B367721746FAE0088FCA5 /* Release */ = { 293 | isa = XCBuildConfiguration; 294 | buildSettings = { 295 | CLANG_ENABLE_MODULES = YES; 296 | CODE_SIGN_IDENTITY = ""; 297 | CODE_SIGN_STYLE = Automatic; 298 | DEFINES_MODULE = YES; 299 | DEVELOPMENT_TEAM = 7QBA97J5G9; 300 | DYLIB_COMPATIBILITY_VERSION = 1; 301 | DYLIB_CURRENT_VERSION = 1; 302 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 303 | INFOPLIST_FILE = HTCustomSwitch/Info.plist; 304 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 305 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 306 | LD_RUNPATH_SEARCH_PATHS = ( 307 | "$(inherited)", 308 | "@executable_path/Frameworks", 309 | "@loader_path/Frameworks", 310 | ); 311 | PRODUCT_BUNDLE_IDENTIFIER = HT.HTCustomSwitch; 312 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 313 | SKIP_INSTALL = YES; 314 | SWIFT_VERSION = 4.0; 315 | TARGETED_DEVICE_FAMILY = "1,2"; 316 | }; 317 | name = Release; 318 | }; 319 | /* End XCBuildConfiguration section */ 320 | 321 | /* Begin XCConfigurationList section */ 322 | 8A3B366721746FAE0088FCA5 /* Build configuration list for PBXProject "HTCustomSwitch" */ = { 323 | isa = XCConfigurationList; 324 | buildConfigurations = ( 325 | 8A3B367321746FAE0088FCA5 /* Debug */, 326 | 8A3B367421746FAE0088FCA5 /* Release */, 327 | ); 328 | defaultConfigurationIsVisible = 0; 329 | defaultConfigurationName = Release; 330 | }; 331 | 8A3B367521746FAE0088FCA5 /* Build configuration list for PBXNativeTarget "HTCustomSwitch" */ = { 332 | isa = XCConfigurationList; 333 | buildConfigurations = ( 334 | 8A3B367621746FAE0088FCA5 /* Debug */, 335 | 8A3B367721746FAE0088FCA5 /* Release */, 336 | ); 337 | defaultConfigurationIsVisible = 0; 338 | defaultConfigurationName = Release; 339 | }; 340 | /* End XCConfigurationList section */ 341 | }; 342 | rootObject = 8A3B366421746FAE0088FCA5 /* Project object */; 343 | } 344 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/HTCustomSwitchExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 6B42C11ACD4C85E68BC6A79D /* Pods_HTCustomSwitchExample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B9775904B330CC76F4F9C693 /* Pods_HTCustomSwitchExample.framework */; }; 11 | 8A3B3687217473C60088FCA5 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A3B3686217473C60088FCA5 /* AppDelegate.swift */; }; 12 | 8A3B3689217473C60088FCA5 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A3B3688217473C60088FCA5 /* ViewController.swift */; }; 13 | 8A3B368C217473C60088FCA5 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8A3B368A217473C60088FCA5 /* Main.storyboard */; }; 14 | 8A3B368E217473C80088FCA5 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8A3B368D217473C80088FCA5 /* Assets.xcassets */; }; 15 | 8A3B3691217473C80088FCA5 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8A3B368F217473C80088FCA5 /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | 26354215B6F3DD410193AFEF /* Pods-HTCustomSwitchExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HTCustomSwitchExample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-HTCustomSwitchExample/Pods-HTCustomSwitchExample.debug.xcconfig"; sourceTree = ""; }; 20 | 4AC4D7A70CA18A44F022DA76 /* Pods-HTCustomSwitchExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HTCustomSwitchExample.release.xcconfig"; path = "Pods/Target Support Files/Pods-HTCustomSwitchExample/Pods-HTCustomSwitchExample.release.xcconfig"; sourceTree = ""; }; 21 | 8A3B3683217473C60088FCA5 /* HTCustomSwitchExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HTCustomSwitchExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 22 | 8A3B3686217473C60088FCA5 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 23 | 8A3B3688217473C60088FCA5 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 24 | 8A3B368B217473C60088FCA5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 25 | 8A3B368D217473C80088FCA5 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 26 | 8A3B3690217473C80088FCA5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 27 | 8A3B3692217473C80088FCA5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 28 | B9775904B330CC76F4F9C693 /* Pods_HTCustomSwitchExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_HTCustomSwitchExample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | 8A3B3680217473C60088FCA5 /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | 6B42C11ACD4C85E68BC6A79D /* Pods_HTCustomSwitchExample.framework in Frameworks */, 37 | ); 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXFrameworksBuildPhase section */ 41 | 42 | /* Begin PBXGroup section */ 43 | 43570C6D1EF5064D010FC2DA /* Pods */ = { 44 | isa = PBXGroup; 45 | children = ( 46 | 26354215B6F3DD410193AFEF /* Pods-HTCustomSwitchExample.debug.xcconfig */, 47 | 4AC4D7A70CA18A44F022DA76 /* Pods-HTCustomSwitchExample.release.xcconfig */, 48 | ); 49 | name = Pods; 50 | sourceTree = ""; 51 | }; 52 | 8A3B367A217473C60088FCA5 = { 53 | isa = PBXGroup; 54 | children = ( 55 | 8A3B3685217473C60088FCA5 /* HTCustomSwitchExample */, 56 | 8A3B3684217473C60088FCA5 /* Products */, 57 | 43570C6D1EF5064D010FC2DA /* Pods */, 58 | AC3EE731F14A50B15EA700B8 /* Frameworks */, 59 | ); 60 | sourceTree = ""; 61 | }; 62 | 8A3B3684217473C60088FCA5 /* Products */ = { 63 | isa = PBXGroup; 64 | children = ( 65 | 8A3B3683217473C60088FCA5 /* HTCustomSwitchExample.app */, 66 | ); 67 | name = Products; 68 | sourceTree = ""; 69 | }; 70 | 8A3B3685217473C60088FCA5 /* HTCustomSwitchExample */ = { 71 | isa = PBXGroup; 72 | children = ( 73 | 8A3B3686217473C60088FCA5 /* AppDelegate.swift */, 74 | 8A3B3688217473C60088FCA5 /* ViewController.swift */, 75 | 8A3B368A217473C60088FCA5 /* Main.storyboard */, 76 | 8A3B368D217473C80088FCA5 /* Assets.xcassets */, 77 | 8A3B368F217473C80088FCA5 /* LaunchScreen.storyboard */, 78 | 8A3B3692217473C80088FCA5 /* Info.plist */, 79 | ); 80 | path = HTCustomSwitchExample; 81 | sourceTree = ""; 82 | }; 83 | AC3EE731F14A50B15EA700B8 /* Frameworks */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | B9775904B330CC76F4F9C693 /* Pods_HTCustomSwitchExample.framework */, 87 | ); 88 | name = Frameworks; 89 | sourceTree = ""; 90 | }; 91 | /* End PBXGroup section */ 92 | 93 | /* Begin PBXNativeTarget section */ 94 | 8A3B3682217473C60088FCA5 /* HTCustomSwitchExample */ = { 95 | isa = PBXNativeTarget; 96 | buildConfigurationList = 8A3B3695217473C80088FCA5 /* Build configuration list for PBXNativeTarget "HTCustomSwitchExample" */; 97 | buildPhases = ( 98 | 138E76ECC652DB246D357BA1 /* [CP] Check Pods Manifest.lock */, 99 | 8A3B367F217473C60088FCA5 /* Sources */, 100 | 8A3B3680217473C60088FCA5 /* Frameworks */, 101 | 8A3B3681217473C60088FCA5 /* Resources */, 102 | 2DB927B7D9867864B26CF0C4 /* [CP] Embed Pods Frameworks */, 103 | ); 104 | buildRules = ( 105 | ); 106 | dependencies = ( 107 | ); 108 | name = HTCustomSwitchExample; 109 | productName = HTCustomSwitchExample; 110 | productReference = 8A3B3683217473C60088FCA5 /* HTCustomSwitchExample.app */; 111 | productType = "com.apple.product-type.application"; 112 | }; 113 | /* End PBXNativeTarget section */ 114 | 115 | /* Begin PBXProject section */ 116 | 8A3B367B217473C60088FCA5 /* Project object */ = { 117 | isa = PBXProject; 118 | attributes = { 119 | LastSwiftUpdateCheck = 0940; 120 | LastUpgradeCheck = 0940; 121 | ORGANIZATIONNAME = HT; 122 | TargetAttributes = { 123 | 8A3B3682217473C60088FCA5 = { 124 | CreatedOnToolsVersion = 9.4.1; 125 | }; 126 | }; 127 | }; 128 | buildConfigurationList = 8A3B367E217473C60088FCA5 /* Build configuration list for PBXProject "HTCustomSwitchExample" */; 129 | compatibilityVersion = "Xcode 9.3"; 130 | developmentRegion = en; 131 | hasScannedForEncodings = 0; 132 | knownRegions = ( 133 | en, 134 | Base, 135 | ); 136 | mainGroup = 8A3B367A217473C60088FCA5; 137 | productRefGroup = 8A3B3684217473C60088FCA5 /* Products */; 138 | projectDirPath = ""; 139 | projectRoot = ""; 140 | targets = ( 141 | 8A3B3682217473C60088FCA5 /* HTCustomSwitchExample */, 142 | ); 143 | }; 144 | /* End PBXProject section */ 145 | 146 | /* Begin PBXResourcesBuildPhase section */ 147 | 8A3B3681217473C60088FCA5 /* Resources */ = { 148 | isa = PBXResourcesBuildPhase; 149 | buildActionMask = 2147483647; 150 | files = ( 151 | 8A3B3691217473C80088FCA5 /* LaunchScreen.storyboard in Resources */, 152 | 8A3B368E217473C80088FCA5 /* Assets.xcassets in Resources */, 153 | 8A3B368C217473C60088FCA5 /* Main.storyboard in Resources */, 154 | ); 155 | runOnlyForDeploymentPostprocessing = 0; 156 | }; 157 | /* End PBXResourcesBuildPhase section */ 158 | 159 | /* Begin PBXShellScriptBuildPhase section */ 160 | 138E76ECC652DB246D357BA1 /* [CP] Check Pods Manifest.lock */ = { 161 | isa = PBXShellScriptBuildPhase; 162 | buildActionMask = 2147483647; 163 | files = ( 164 | ); 165 | inputPaths = ( 166 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 167 | "${PODS_ROOT}/Manifest.lock", 168 | ); 169 | name = "[CP] Check Pods Manifest.lock"; 170 | outputPaths = ( 171 | "$(DERIVED_FILE_DIR)/Pods-HTCustomSwitchExample-checkManifestLockResult.txt", 172 | ); 173 | runOnlyForDeploymentPostprocessing = 0; 174 | shellPath = /bin/sh; 175 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 176 | showEnvVarsInLog = 0; 177 | }; 178 | 2DB927B7D9867864B26CF0C4 /* [CP] Embed Pods Frameworks */ = { 179 | isa = PBXShellScriptBuildPhase; 180 | buildActionMask = 2147483647; 181 | files = ( 182 | ); 183 | inputPaths = ( 184 | "${SRCROOT}/Pods/Target Support Files/Pods-HTCustomSwitchExample/Pods-HTCustomSwitchExample-frameworks.sh", 185 | "${BUILT_PRODUCTS_DIR}/HTCustomSwitch/HTCustomSwitch.framework", 186 | ); 187 | name = "[CP] Embed Pods Frameworks"; 188 | outputPaths = ( 189 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/HTCustomSwitch.framework", 190 | ); 191 | runOnlyForDeploymentPostprocessing = 0; 192 | shellPath = /bin/sh; 193 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-HTCustomSwitchExample/Pods-HTCustomSwitchExample-frameworks.sh\"\n"; 194 | showEnvVarsInLog = 0; 195 | }; 196 | /* End PBXShellScriptBuildPhase section */ 197 | 198 | /* Begin PBXSourcesBuildPhase section */ 199 | 8A3B367F217473C60088FCA5 /* Sources */ = { 200 | isa = PBXSourcesBuildPhase; 201 | buildActionMask = 2147483647; 202 | files = ( 203 | 8A3B3689217473C60088FCA5 /* ViewController.swift in Sources */, 204 | 8A3B3687217473C60088FCA5 /* AppDelegate.swift in Sources */, 205 | ); 206 | runOnlyForDeploymentPostprocessing = 0; 207 | }; 208 | /* End PBXSourcesBuildPhase section */ 209 | 210 | /* Begin PBXVariantGroup section */ 211 | 8A3B368A217473C60088FCA5 /* Main.storyboard */ = { 212 | isa = PBXVariantGroup; 213 | children = ( 214 | 8A3B368B217473C60088FCA5 /* Base */, 215 | ); 216 | name = Main.storyboard; 217 | sourceTree = ""; 218 | }; 219 | 8A3B368F217473C80088FCA5 /* LaunchScreen.storyboard */ = { 220 | isa = PBXVariantGroup; 221 | children = ( 222 | 8A3B3690217473C80088FCA5 /* Base */, 223 | ); 224 | name = LaunchScreen.storyboard; 225 | sourceTree = ""; 226 | }; 227 | /* End PBXVariantGroup section */ 228 | 229 | /* Begin XCBuildConfiguration section */ 230 | 8A3B3693217473C80088FCA5 /* Debug */ = { 231 | isa = XCBuildConfiguration; 232 | buildSettings = { 233 | ALWAYS_SEARCH_USER_PATHS = NO; 234 | CLANG_ANALYZER_NONNULL = YES; 235 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 236 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 237 | CLANG_CXX_LIBRARY = "libc++"; 238 | CLANG_ENABLE_MODULES = YES; 239 | CLANG_ENABLE_OBJC_ARC = YES; 240 | CLANG_ENABLE_OBJC_WEAK = YES; 241 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 242 | CLANG_WARN_BOOL_CONVERSION = YES; 243 | CLANG_WARN_COMMA = YES; 244 | CLANG_WARN_CONSTANT_CONVERSION = YES; 245 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 246 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 247 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 248 | CLANG_WARN_EMPTY_BODY = YES; 249 | CLANG_WARN_ENUM_CONVERSION = YES; 250 | CLANG_WARN_INFINITE_RECURSION = YES; 251 | CLANG_WARN_INT_CONVERSION = YES; 252 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 253 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 254 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 255 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 256 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 257 | CLANG_WARN_STRICT_PROTOTYPES = YES; 258 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 259 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | CODE_SIGN_IDENTITY = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = dwarf; 265 | ENABLE_STRICT_OBJC_MSGSEND = YES; 266 | ENABLE_TESTABILITY = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu11; 268 | GCC_DYNAMIC_NO_PIC = NO; 269 | GCC_NO_COMMON_BLOCKS = YES; 270 | GCC_OPTIMIZATION_LEVEL = 0; 271 | GCC_PREPROCESSOR_DEFINITIONS = ( 272 | "DEBUG=1", 273 | "$(inherited)", 274 | ); 275 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 276 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 277 | GCC_WARN_UNDECLARED_SELECTOR = YES; 278 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 279 | GCC_WARN_UNUSED_FUNCTION = YES; 280 | GCC_WARN_UNUSED_VARIABLE = YES; 281 | IPHONEOS_DEPLOYMENT_TARGET = 11.4; 282 | MTL_ENABLE_DEBUG_INFO = YES; 283 | ONLY_ACTIVE_ARCH = YES; 284 | SDKROOT = iphoneos; 285 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 286 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 287 | }; 288 | name = Debug; 289 | }; 290 | 8A3B3694217473C80088FCA5 /* Release */ = { 291 | isa = XCBuildConfiguration; 292 | buildSettings = { 293 | ALWAYS_SEARCH_USER_PATHS = NO; 294 | CLANG_ANALYZER_NONNULL = YES; 295 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 296 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 297 | CLANG_CXX_LIBRARY = "libc++"; 298 | CLANG_ENABLE_MODULES = YES; 299 | CLANG_ENABLE_OBJC_ARC = YES; 300 | CLANG_ENABLE_OBJC_WEAK = YES; 301 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 302 | CLANG_WARN_BOOL_CONVERSION = YES; 303 | CLANG_WARN_COMMA = YES; 304 | CLANG_WARN_CONSTANT_CONVERSION = YES; 305 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 306 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 307 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 308 | CLANG_WARN_EMPTY_BODY = YES; 309 | CLANG_WARN_ENUM_CONVERSION = YES; 310 | CLANG_WARN_INFINITE_RECURSION = YES; 311 | CLANG_WARN_INT_CONVERSION = YES; 312 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 313 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 314 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 315 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 316 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 317 | CLANG_WARN_STRICT_PROTOTYPES = YES; 318 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 319 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 320 | CLANG_WARN_UNREACHABLE_CODE = YES; 321 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 322 | CODE_SIGN_IDENTITY = "iPhone Developer"; 323 | COPY_PHASE_STRIP = NO; 324 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 325 | ENABLE_NS_ASSERTIONS = NO; 326 | ENABLE_STRICT_OBJC_MSGSEND = YES; 327 | GCC_C_LANGUAGE_STANDARD = gnu11; 328 | GCC_NO_COMMON_BLOCKS = YES; 329 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 330 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 331 | GCC_WARN_UNDECLARED_SELECTOR = YES; 332 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 333 | GCC_WARN_UNUSED_FUNCTION = YES; 334 | GCC_WARN_UNUSED_VARIABLE = YES; 335 | IPHONEOS_DEPLOYMENT_TARGET = 11.4; 336 | MTL_ENABLE_DEBUG_INFO = NO; 337 | SDKROOT = iphoneos; 338 | SWIFT_COMPILATION_MODE = wholemodule; 339 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 340 | VALIDATE_PRODUCT = YES; 341 | }; 342 | name = Release; 343 | }; 344 | 8A3B3696217473C80088FCA5 /* Debug */ = { 345 | isa = XCBuildConfiguration; 346 | baseConfigurationReference = 26354215B6F3DD410193AFEF /* Pods-HTCustomSwitchExample.debug.xcconfig */; 347 | buildSettings = { 348 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 349 | CODE_SIGN_STYLE = Automatic; 350 | DEVELOPMENT_TEAM = 7QBA97J5G9; 351 | INFOPLIST_FILE = HTCustomSwitchExample/Info.plist; 352 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 353 | LD_RUNPATH_SEARCH_PATHS = ( 354 | "$(inherited)", 355 | "@executable_path/Frameworks", 356 | ); 357 | PRODUCT_BUNDLE_IDENTIFIER = HT.HTCustomSwitchExample; 358 | PRODUCT_NAME = "$(TARGET_NAME)"; 359 | SWIFT_VERSION = 4.0; 360 | TARGETED_DEVICE_FAMILY = "1,2"; 361 | }; 362 | name = Debug; 363 | }; 364 | 8A3B3697217473C80088FCA5 /* Release */ = { 365 | isa = XCBuildConfiguration; 366 | baseConfigurationReference = 4AC4D7A70CA18A44F022DA76 /* Pods-HTCustomSwitchExample.release.xcconfig */; 367 | buildSettings = { 368 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 369 | CODE_SIGN_STYLE = Automatic; 370 | DEVELOPMENT_TEAM = 7QBA97J5G9; 371 | INFOPLIST_FILE = HTCustomSwitchExample/Info.plist; 372 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 373 | LD_RUNPATH_SEARCH_PATHS = ( 374 | "$(inherited)", 375 | "@executable_path/Frameworks", 376 | ); 377 | PRODUCT_BUNDLE_IDENTIFIER = HT.HTCustomSwitchExample; 378 | PRODUCT_NAME = "$(TARGET_NAME)"; 379 | SWIFT_VERSION = 4.0; 380 | TARGETED_DEVICE_FAMILY = "1,2"; 381 | }; 382 | name = Release; 383 | }; 384 | /* End XCBuildConfiguration section */ 385 | 386 | /* Begin XCConfigurationList section */ 387 | 8A3B367E217473C60088FCA5 /* Build configuration list for PBXProject "HTCustomSwitchExample" */ = { 388 | isa = XCConfigurationList; 389 | buildConfigurations = ( 390 | 8A3B3693217473C80088FCA5 /* Debug */, 391 | 8A3B3694217473C80088FCA5 /* Release */, 392 | ); 393 | defaultConfigurationIsVisible = 0; 394 | defaultConfigurationName = Release; 395 | }; 396 | 8A3B3695217473C80088FCA5 /* Build configuration list for PBXNativeTarget "HTCustomSwitchExample" */ = { 397 | isa = XCConfigurationList; 398 | buildConfigurations = ( 399 | 8A3B3696217473C80088FCA5 /* Debug */, 400 | 8A3B3697217473C80088FCA5 /* Release */, 401 | ); 402 | defaultConfigurationIsVisible = 0; 403 | defaultConfigurationName = Release; 404 | }; 405 | /* End XCConfigurationList section */ 406 | }; 407 | rootObject = 8A3B367B217473C60088FCA5 /* Project object */; 408 | } 409 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/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 | 0205D713731455482F40DF3FBF4746EC /* Info.plist in Sources */ = {isa = PBXBuildFile; fileRef = 7127212BAB58C5575AC8A55D528A2544 /* Info.plist */; }; 11 | 1606220330DE0A57C8634B78024CADBF /* Pods-HTCustomSwitchExample-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A239282338AE08ADD8AC46AE07756BB /* Pods-HTCustomSwitchExample-dummy.m */; }; 12 | 244745D7F9A0DDF92B608D0552B62A4D /* HTCustomSwitch-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = F7029C3D676B7DD1DE7FEBFC5BD0602E /* HTCustomSwitch-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | 284553F3B00AFDEF61AC82865F13BBF4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */; }; 14 | 3D65FBC95F72259E9B33BD3E7D16A925 /* HTCustomSwitch-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = FEA3E082B7EAB35B22AA497D6AD894EC /* HTCustomSwitch-dummy.m */; }; 15 | 49573FE83BAE9AB9AA111F94AB81E10E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */; }; 16 | A54A0A19BE43C0A7905BEB93085F7BD3 /* HTCustomSwitch.h in Headers */ = {isa = PBXBuildFile; fileRef = 231B7F647EC7546C947F4FF28BCC1A8B /* HTCustomSwitch.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | BC4D7D989E518A6BA88C63AF689AF1BE /* HTCustomSwitch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D6B7262DEF3184269680C2D3EA5507D /* HTCustomSwitch.swift */; }; 18 | F1EF90FD3F5F16FDD7B4C7C21EF09F07 /* Pods-HTCustomSwitchExample-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 210A59EAFBD3F078930C3701120FBF10 /* Pods-HTCustomSwitchExample-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | 5E5F399D96BE5B9C2A538533C6284D72 /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = 262DEF996CE5C7CDC810BFDD5471499C; 27 | remoteInfo = HTCustomSwitch; 28 | }; 29 | /* End PBXContainerItemProxy section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 003F4FD572361E37911DCC65C7033239 /* HTCustomSwitch.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = HTCustomSwitch.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 33 | 01E2ECBAF640D4DAD72E12A757D5A8B8 /* Pods_HTCustomSwitchExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_HTCustomSwitchExample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 0A239282338AE08ADD8AC46AE07756BB /* Pods-HTCustomSwitchExample-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-HTCustomSwitchExample-dummy.m"; sourceTree = ""; }; 35 | 0D6B7262DEF3184269680C2D3EA5507D /* HTCustomSwitch.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = HTCustomSwitch.swift; path = HTCustomSwitch/HTCustomSwitch.swift; sourceTree = ""; }; 36 | 14CDDFF4259704D1DF5C58BA849892BA /* Pods-HTCustomSwitchExample-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-HTCustomSwitchExample-acknowledgements.markdown"; sourceTree = ""; }; 37 | 1A854B811DE61D0251D8B398E46F73C1 /* HTCustomSwitch.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; path = HTCustomSwitch.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 38 | 210A59EAFBD3F078930C3701120FBF10 /* Pods-HTCustomSwitchExample-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-HTCustomSwitchExample-umbrella.h"; sourceTree = ""; }; 39 | 231B7F647EC7546C947F4FF28BCC1A8B /* HTCustomSwitch.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = HTCustomSwitch.h; path = HTCustomSwitch/HTCustomSwitch.h; sourceTree = ""; }; 40 | 250C906DA151BF5475D5FA0BC373C3C0 /* HTCustomSwitch-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "HTCustomSwitch-prefix.pch"; sourceTree = ""; }; 41 | 2B435AFAE0D9EF419FBD9377D22104EB /* Pods-HTCustomSwitchExample-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-HTCustomSwitchExample-resources.sh"; sourceTree = ""; }; 42 | 3C1AF711F5156AA32B9CFC56A111B4D9 /* HTCustomSwitch.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = HTCustomSwitch.xcconfig; sourceTree = ""; }; 43 | 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 44 | 7127212BAB58C5575AC8A55D528A2544 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; name = Info.plist; path = HTCustomSwitch/Info.plist; sourceTree = ""; }; 45 | 76E17EF81CB54989A481C66F4566B659 /* Pods-HTCustomSwitchExample-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-HTCustomSwitchExample-acknowledgements.plist"; sourceTree = ""; }; 46 | 7B211A073DF9C497928FDA04FDD41989 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 47 | 7B4A36873ADECD4157B588F8753C01BD /* Pods-HTCustomSwitchExample-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-HTCustomSwitchExample-frameworks.sh"; sourceTree = ""; }; 48 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 49 | 976DF00FBC7B6728F6122553F0C8CBDD /* HTCustomSwitch.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = HTCustomSwitch.modulemap; sourceTree = ""; }; 50 | AADD4937CCFE47DB464FEED0B877AD11 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | AC6B9372192EA5F002DC5CC143BA79C9 /* Pods-HTCustomSwitchExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-HTCustomSwitchExample.release.xcconfig"; sourceTree = ""; }; 52 | ADBFF3F3CFFF0CD950A2845111281EB4 /* Pods-HTCustomSwitchExample.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-HTCustomSwitchExample.modulemap"; sourceTree = ""; }; 53 | B38E13A67112D1A7C54577B09F2D8653 /* Pods-HTCustomSwitchExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-HTCustomSwitchExample.debug.xcconfig"; sourceTree = ""; }; 54 | F7029C3D676B7DD1DE7FEBFC5BD0602E /* HTCustomSwitch-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "HTCustomSwitch-umbrella.h"; sourceTree = ""; }; 55 | FEA3E082B7EAB35B22AA497D6AD894EC /* HTCustomSwitch-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "HTCustomSwitch-dummy.m"; sourceTree = ""; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 88749CFA0562B351DE627790938E9C86 /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | 284553F3B00AFDEF61AC82865F13BBF4 /* Foundation.framework in Frameworks */, 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | 8AEFBDBCEA20D5F553F07CA8D9A04F2D /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | 49573FE83BAE9AB9AA111F94AB81E10E /* Foundation.framework in Frameworks */, 72 | ); 73 | runOnlyForDeploymentPostprocessing = 0; 74 | }; 75 | /* End PBXFrameworksBuildPhase section */ 76 | 77 | /* Begin PBXGroup section */ 78 | 094D937E90F21D99F07A465950A5B76B /* Support Files */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 976DF00FBC7B6728F6122553F0C8CBDD /* HTCustomSwitch.modulemap */, 82 | 3C1AF711F5156AA32B9CFC56A111B4D9 /* HTCustomSwitch.xcconfig */, 83 | FEA3E082B7EAB35B22AA497D6AD894EC /* HTCustomSwitch-dummy.m */, 84 | 250C906DA151BF5475D5FA0BC373C3C0 /* HTCustomSwitch-prefix.pch */, 85 | F7029C3D676B7DD1DE7FEBFC5BD0602E /* HTCustomSwitch-umbrella.h */, 86 | 7B211A073DF9C497928FDA04FDD41989 /* Info.plist */, 87 | ); 88 | name = "Support Files"; 89 | path = "../HTCustomSwitchExample/Pods/Target Support Files/HTCustomSwitch"; 90 | sourceTree = ""; 91 | }; 92 | 136A066E1C70353E578AF2C66B49C1FC /* Pod */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | 1A854B811DE61D0251D8B398E46F73C1 /* HTCustomSwitch.podspec */, 96 | ); 97 | name = Pod; 98 | sourceTree = ""; 99 | }; 100 | 5E0D919E635D23B70123790B8308F8EF /* iOS */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */, 104 | ); 105 | name = iOS; 106 | sourceTree = ""; 107 | }; 108 | 7DB346D0F39D3F0E887471402A8071AB = { 109 | isa = PBXGroup; 110 | children = ( 111 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 112 | A5BFFC9B2DBE5AE2AD4B7B6D0BC14E0F /* Development Pods */, 113 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 114 | E7729178D378C5E1FCB58CDF56460796 /* Products */, 115 | F7783548D6547859E62E40CC29390ED5 /* Targets Support Files */, 116 | ); 117 | sourceTree = ""; 118 | }; 119 | 8FAB53D0294F86F3B885E23D02D5AA4C /* Pods-HTCustomSwitchExample */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | AADD4937CCFE47DB464FEED0B877AD11 /* Info.plist */, 123 | ADBFF3F3CFFF0CD950A2845111281EB4 /* Pods-HTCustomSwitchExample.modulemap */, 124 | 14CDDFF4259704D1DF5C58BA849892BA /* Pods-HTCustomSwitchExample-acknowledgements.markdown */, 125 | 76E17EF81CB54989A481C66F4566B659 /* Pods-HTCustomSwitchExample-acknowledgements.plist */, 126 | 0A239282338AE08ADD8AC46AE07756BB /* Pods-HTCustomSwitchExample-dummy.m */, 127 | 7B4A36873ADECD4157B588F8753C01BD /* Pods-HTCustomSwitchExample-frameworks.sh */, 128 | 2B435AFAE0D9EF419FBD9377D22104EB /* Pods-HTCustomSwitchExample-resources.sh */, 129 | 210A59EAFBD3F078930C3701120FBF10 /* Pods-HTCustomSwitchExample-umbrella.h */, 130 | B38E13A67112D1A7C54577B09F2D8653 /* Pods-HTCustomSwitchExample.debug.xcconfig */, 131 | AC6B9372192EA5F002DC5CC143BA79C9 /* Pods-HTCustomSwitchExample.release.xcconfig */, 132 | ); 133 | name = "Pods-HTCustomSwitchExample"; 134 | path = "Target Support Files/Pods-HTCustomSwitchExample"; 135 | sourceTree = ""; 136 | }; 137 | A5BFFC9B2DBE5AE2AD4B7B6D0BC14E0F /* Development Pods */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | D79FD3EF59145037231237FB949546A8 /* HTCustomSwitch */, 141 | ); 142 | name = "Development Pods"; 143 | sourceTree = ""; 144 | }; 145 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | 5E0D919E635D23B70123790B8308F8EF /* iOS */, 149 | ); 150 | name = Frameworks; 151 | sourceTree = ""; 152 | }; 153 | D79FD3EF59145037231237FB949546A8 /* HTCustomSwitch */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | 231B7F647EC7546C947F4FF28BCC1A8B /* HTCustomSwitch.h */, 157 | 0D6B7262DEF3184269680C2D3EA5507D /* HTCustomSwitch.swift */, 158 | 7127212BAB58C5575AC8A55D528A2544 /* Info.plist */, 159 | 136A066E1C70353E578AF2C66B49C1FC /* Pod */, 160 | 094D937E90F21D99F07A465950A5B76B /* Support Files */, 161 | ); 162 | name = HTCustomSwitch; 163 | path = ../../HTCustomSwitch; 164 | sourceTree = ""; 165 | }; 166 | E7729178D378C5E1FCB58CDF56460796 /* Products */ = { 167 | isa = PBXGroup; 168 | children = ( 169 | 003F4FD572361E37911DCC65C7033239 /* HTCustomSwitch.framework */, 170 | 01E2ECBAF640D4DAD72E12A757D5A8B8 /* Pods_HTCustomSwitchExample.framework */, 171 | ); 172 | name = Products; 173 | sourceTree = ""; 174 | }; 175 | F7783548D6547859E62E40CC29390ED5 /* Targets Support Files */ = { 176 | isa = PBXGroup; 177 | children = ( 178 | 8FAB53D0294F86F3B885E23D02D5AA4C /* Pods-HTCustomSwitchExample */, 179 | ); 180 | name = "Targets Support Files"; 181 | sourceTree = ""; 182 | }; 183 | /* End PBXGroup section */ 184 | 185 | /* Begin PBXHeadersBuildPhase section */ 186 | BEF2FDC4491C4F4CB4C09780CD34B9A0 /* Headers */ = { 187 | isa = PBXHeadersBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | 244745D7F9A0DDF92B608D0552B62A4D /* HTCustomSwitch-umbrella.h in Headers */, 191 | A54A0A19BE43C0A7905BEB93085F7BD3 /* HTCustomSwitch.h in Headers */, 192 | ); 193 | runOnlyForDeploymentPostprocessing = 0; 194 | }; 195 | D3348924D4E40070FA1ABC61DD069273 /* Headers */ = { 196 | isa = PBXHeadersBuildPhase; 197 | buildActionMask = 2147483647; 198 | files = ( 199 | F1EF90FD3F5F16FDD7B4C7C21EF09F07 /* Pods-HTCustomSwitchExample-umbrella.h in Headers */, 200 | ); 201 | runOnlyForDeploymentPostprocessing = 0; 202 | }; 203 | /* End PBXHeadersBuildPhase section */ 204 | 205 | /* Begin PBXNativeTarget section */ 206 | 262DEF996CE5C7CDC810BFDD5471499C /* HTCustomSwitch */ = { 207 | isa = PBXNativeTarget; 208 | buildConfigurationList = 745FE4BE053BA08CE02BDE05448518C8 /* Build configuration list for PBXNativeTarget "HTCustomSwitch" */; 209 | buildPhases = ( 210 | BF3F7BE21C91B7ADC658C996AA38244D /* Sources */, 211 | 8AEFBDBCEA20D5F553F07CA8D9A04F2D /* Frameworks */, 212 | BEF2FDC4491C4F4CB4C09780CD34B9A0 /* Headers */, 213 | ); 214 | buildRules = ( 215 | ); 216 | dependencies = ( 217 | ); 218 | name = HTCustomSwitch; 219 | productName = HTCustomSwitch; 220 | productReference = 003F4FD572361E37911DCC65C7033239 /* HTCustomSwitch.framework */; 221 | productType = "com.apple.product-type.framework"; 222 | }; 223 | 9CA3F4211EF438B69F1DE524BD729C53 /* Pods-HTCustomSwitchExample */ = { 224 | isa = PBXNativeTarget; 225 | buildConfigurationList = CB32C67D366EC81CBE8A500FB3EB1E16 /* Build configuration list for PBXNativeTarget "Pods-HTCustomSwitchExample" */; 226 | buildPhases = ( 227 | B247AF00E74E716300D5E24F5C98036C /* Sources */, 228 | 88749CFA0562B351DE627790938E9C86 /* Frameworks */, 229 | D3348924D4E40070FA1ABC61DD069273 /* Headers */, 230 | ); 231 | buildRules = ( 232 | ); 233 | dependencies = ( 234 | 757B1DFDD24FDE5B7B2530F35ADBC44B /* PBXTargetDependency */, 235 | ); 236 | name = "Pods-HTCustomSwitchExample"; 237 | productName = "Pods-HTCustomSwitchExample"; 238 | productReference = 01E2ECBAF640D4DAD72E12A757D5A8B8 /* Pods_HTCustomSwitchExample.framework */; 239 | productType = "com.apple.product-type.framework"; 240 | }; 241 | /* End PBXNativeTarget section */ 242 | 243 | /* Begin PBXProject section */ 244 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 245 | isa = PBXProject; 246 | attributes = { 247 | LastSwiftUpdateCheck = 0930; 248 | LastUpgradeCheck = 0930; 249 | }; 250 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 251 | compatibilityVersion = "Xcode 3.2"; 252 | developmentRegion = English; 253 | hasScannedForEncodings = 0; 254 | knownRegions = ( 255 | en, 256 | ); 257 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 258 | productRefGroup = E7729178D378C5E1FCB58CDF56460796 /* Products */; 259 | projectDirPath = ""; 260 | projectRoot = ""; 261 | targets = ( 262 | 262DEF996CE5C7CDC810BFDD5471499C /* HTCustomSwitch */, 263 | 9CA3F4211EF438B69F1DE524BD729C53 /* Pods-HTCustomSwitchExample */, 264 | ); 265 | }; 266 | /* End PBXProject section */ 267 | 268 | /* Begin PBXSourcesBuildPhase section */ 269 | B247AF00E74E716300D5E24F5C98036C /* Sources */ = { 270 | isa = PBXSourcesBuildPhase; 271 | buildActionMask = 2147483647; 272 | files = ( 273 | 1606220330DE0A57C8634B78024CADBF /* Pods-HTCustomSwitchExample-dummy.m in Sources */, 274 | ); 275 | runOnlyForDeploymentPostprocessing = 0; 276 | }; 277 | BF3F7BE21C91B7ADC658C996AA38244D /* Sources */ = { 278 | isa = PBXSourcesBuildPhase; 279 | buildActionMask = 2147483647; 280 | files = ( 281 | 3D65FBC95F72259E9B33BD3E7D16A925 /* HTCustomSwitch-dummy.m in Sources */, 282 | BC4D7D989E518A6BA88C63AF689AF1BE /* HTCustomSwitch.swift in Sources */, 283 | 0205D713731455482F40DF3FBF4746EC /* Info.plist in Sources */, 284 | ); 285 | runOnlyForDeploymentPostprocessing = 0; 286 | }; 287 | /* End PBXSourcesBuildPhase section */ 288 | 289 | /* Begin PBXTargetDependency section */ 290 | 757B1DFDD24FDE5B7B2530F35ADBC44B /* PBXTargetDependency */ = { 291 | isa = PBXTargetDependency; 292 | name = HTCustomSwitch; 293 | target = 262DEF996CE5C7CDC810BFDD5471499C /* HTCustomSwitch */; 294 | targetProxy = 5E5F399D96BE5B9C2A538533C6284D72 /* PBXContainerItemProxy */; 295 | }; 296 | /* End PBXTargetDependency section */ 297 | 298 | /* Begin XCBuildConfiguration section */ 299 | 16B6B3BE8A4CD6B77883C7854AEC3052 /* Debug */ = { 300 | isa = XCBuildConfiguration; 301 | baseConfigurationReference = 3C1AF711F5156AA32B9CFC56A111B4D9 /* HTCustomSwitch.xcconfig */; 302 | buildSettings = { 303 | CODE_SIGN_IDENTITY = ""; 304 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 305 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 306 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 307 | CURRENT_PROJECT_VERSION = 1; 308 | DEFINES_MODULE = YES; 309 | DYLIB_COMPATIBILITY_VERSION = 1; 310 | DYLIB_CURRENT_VERSION = 1; 311 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 312 | GCC_PREFIX_HEADER = "Target Support Files/HTCustomSwitch/HTCustomSwitch-prefix.pch"; 313 | INFOPLIST_FILE = "Target Support Files/HTCustomSwitch/Info.plist"; 314 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 315 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 316 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 317 | MODULEMAP_FILE = "Target Support Files/HTCustomSwitch/HTCustomSwitch.modulemap"; 318 | PRODUCT_MODULE_NAME = HTCustomSwitch; 319 | PRODUCT_NAME = HTCustomSwitch; 320 | SDKROOT = iphoneos; 321 | SKIP_INSTALL = YES; 322 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 323 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 324 | SWIFT_VERSION = 4.0; 325 | TARGETED_DEVICE_FAMILY = "1,2"; 326 | VERSIONING_SYSTEM = "apple-generic"; 327 | VERSION_INFO_PREFIX = ""; 328 | }; 329 | name = Debug; 330 | }; 331 | 1F4E1CB1841B4DB1777D7FE5B9F319E4 /* Debug */ = { 332 | isa = XCBuildConfiguration; 333 | baseConfigurationReference = B38E13A67112D1A7C54577B09F2D8653 /* Pods-HTCustomSwitchExample.debug.xcconfig */; 334 | buildSettings = { 335 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 336 | CODE_SIGN_IDENTITY = ""; 337 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 339 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 340 | CURRENT_PROJECT_VERSION = 1; 341 | DEFINES_MODULE = YES; 342 | DYLIB_COMPATIBILITY_VERSION = 1; 343 | DYLIB_CURRENT_VERSION = 1; 344 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 345 | INFOPLIST_FILE = "Target Support Files/Pods-HTCustomSwitchExample/Info.plist"; 346 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 347 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 348 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 349 | MACH_O_TYPE = staticlib; 350 | MODULEMAP_FILE = "Target Support Files/Pods-HTCustomSwitchExample/Pods-HTCustomSwitchExample.modulemap"; 351 | OTHER_LDFLAGS = ""; 352 | OTHER_LIBTOOLFLAGS = ""; 353 | PODS_ROOT = "$(SRCROOT)"; 354 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 355 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 356 | SDKROOT = iphoneos; 357 | SKIP_INSTALL = YES; 358 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 359 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 360 | TARGETED_DEVICE_FAMILY = "1,2"; 361 | VERSIONING_SYSTEM = "apple-generic"; 362 | VERSION_INFO_PREFIX = ""; 363 | }; 364 | name = Debug; 365 | }; 366 | 47D6EB2D846A0BA6399444E3527F398C /* Release */ = { 367 | isa = XCBuildConfiguration; 368 | baseConfigurationReference = AC6B9372192EA5F002DC5CC143BA79C9 /* Pods-HTCustomSwitchExample.release.xcconfig */; 369 | buildSettings = { 370 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 371 | CODE_SIGN_IDENTITY = ""; 372 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 373 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 374 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 375 | CURRENT_PROJECT_VERSION = 1; 376 | DEFINES_MODULE = YES; 377 | DYLIB_COMPATIBILITY_VERSION = 1; 378 | DYLIB_CURRENT_VERSION = 1; 379 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 380 | INFOPLIST_FILE = "Target Support Files/Pods-HTCustomSwitchExample/Info.plist"; 381 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 382 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 383 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 384 | MACH_O_TYPE = staticlib; 385 | MODULEMAP_FILE = "Target Support Files/Pods-HTCustomSwitchExample/Pods-HTCustomSwitchExample.modulemap"; 386 | OTHER_LDFLAGS = ""; 387 | OTHER_LIBTOOLFLAGS = ""; 388 | PODS_ROOT = "$(SRCROOT)"; 389 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 390 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 391 | SDKROOT = iphoneos; 392 | SKIP_INSTALL = YES; 393 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 394 | TARGETED_DEVICE_FAMILY = "1,2"; 395 | VALIDATE_PRODUCT = YES; 396 | VERSIONING_SYSTEM = "apple-generic"; 397 | VERSION_INFO_PREFIX = ""; 398 | }; 399 | name = Release; 400 | }; 401 | 6690C5B4617034833FDE45658321956C /* Release */ = { 402 | isa = XCBuildConfiguration; 403 | buildSettings = { 404 | ALWAYS_SEARCH_USER_PATHS = NO; 405 | CLANG_ANALYZER_NONNULL = YES; 406 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 407 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 408 | CLANG_CXX_LIBRARY = "libc++"; 409 | CLANG_ENABLE_MODULES = YES; 410 | CLANG_ENABLE_OBJC_ARC = YES; 411 | CLANG_ENABLE_OBJC_WEAK = YES; 412 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 413 | CLANG_WARN_BOOL_CONVERSION = YES; 414 | CLANG_WARN_COMMA = YES; 415 | CLANG_WARN_CONSTANT_CONVERSION = YES; 416 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 417 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 418 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 419 | CLANG_WARN_EMPTY_BODY = YES; 420 | CLANG_WARN_ENUM_CONVERSION = YES; 421 | CLANG_WARN_INFINITE_RECURSION = YES; 422 | CLANG_WARN_INT_CONVERSION = YES; 423 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 424 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 425 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 426 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 427 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 428 | CLANG_WARN_STRICT_PROTOTYPES = YES; 429 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 430 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 431 | CLANG_WARN_UNREACHABLE_CODE = YES; 432 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 433 | COPY_PHASE_STRIP = NO; 434 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 435 | ENABLE_NS_ASSERTIONS = NO; 436 | ENABLE_STRICT_OBJC_MSGSEND = YES; 437 | GCC_C_LANGUAGE_STANDARD = gnu11; 438 | GCC_NO_COMMON_BLOCKS = YES; 439 | GCC_PREPROCESSOR_DEFINITIONS = ( 440 | "POD_CONFIGURATION_RELEASE=1", 441 | "$(inherited)", 442 | ); 443 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 444 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 445 | GCC_WARN_UNDECLARED_SELECTOR = YES; 446 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 447 | GCC_WARN_UNUSED_FUNCTION = YES; 448 | GCC_WARN_UNUSED_VARIABLE = YES; 449 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 450 | MTL_ENABLE_DEBUG_INFO = NO; 451 | PRODUCT_NAME = "$(TARGET_NAME)"; 452 | STRIP_INSTALLED_PRODUCT = NO; 453 | SYMROOT = "${SRCROOT}/../build"; 454 | }; 455 | name = Release; 456 | }; 457 | 9FD8D3EC63BC95D93F03DEBCFDC74450 /* Release */ = { 458 | isa = XCBuildConfiguration; 459 | baseConfigurationReference = 3C1AF711F5156AA32B9CFC56A111B4D9 /* HTCustomSwitch.xcconfig */; 460 | buildSettings = { 461 | CODE_SIGN_IDENTITY = ""; 462 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 463 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 464 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 465 | CURRENT_PROJECT_VERSION = 1; 466 | DEFINES_MODULE = YES; 467 | DYLIB_COMPATIBILITY_VERSION = 1; 468 | DYLIB_CURRENT_VERSION = 1; 469 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 470 | GCC_PREFIX_HEADER = "Target Support Files/HTCustomSwitch/HTCustomSwitch-prefix.pch"; 471 | INFOPLIST_FILE = "Target Support Files/HTCustomSwitch/Info.plist"; 472 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 473 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 474 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 475 | MODULEMAP_FILE = "Target Support Files/HTCustomSwitch/HTCustomSwitch.modulemap"; 476 | PRODUCT_MODULE_NAME = HTCustomSwitch; 477 | PRODUCT_NAME = HTCustomSwitch; 478 | SDKROOT = iphoneos; 479 | SKIP_INSTALL = YES; 480 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 481 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 482 | SWIFT_VERSION = 4.0; 483 | TARGETED_DEVICE_FAMILY = "1,2"; 484 | VALIDATE_PRODUCT = YES; 485 | VERSIONING_SYSTEM = "apple-generic"; 486 | VERSION_INFO_PREFIX = ""; 487 | }; 488 | name = Release; 489 | }; 490 | DFB07AE6611852E982CB67015DCDD500 /* Debug */ = { 491 | isa = XCBuildConfiguration; 492 | buildSettings = { 493 | ALWAYS_SEARCH_USER_PATHS = NO; 494 | CLANG_ANALYZER_NONNULL = YES; 495 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 496 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 497 | CLANG_CXX_LIBRARY = "libc++"; 498 | CLANG_ENABLE_MODULES = YES; 499 | CLANG_ENABLE_OBJC_ARC = YES; 500 | CLANG_ENABLE_OBJC_WEAK = YES; 501 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 502 | CLANG_WARN_BOOL_CONVERSION = YES; 503 | CLANG_WARN_COMMA = YES; 504 | CLANG_WARN_CONSTANT_CONVERSION = YES; 505 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 506 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 507 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 508 | CLANG_WARN_EMPTY_BODY = YES; 509 | CLANG_WARN_ENUM_CONVERSION = YES; 510 | CLANG_WARN_INFINITE_RECURSION = YES; 511 | CLANG_WARN_INT_CONVERSION = YES; 512 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 513 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 514 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 515 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 516 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 517 | CLANG_WARN_STRICT_PROTOTYPES = YES; 518 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 519 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 520 | CLANG_WARN_UNREACHABLE_CODE = YES; 521 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 522 | COPY_PHASE_STRIP = NO; 523 | DEBUG_INFORMATION_FORMAT = dwarf; 524 | ENABLE_STRICT_OBJC_MSGSEND = YES; 525 | ENABLE_TESTABILITY = YES; 526 | GCC_C_LANGUAGE_STANDARD = gnu11; 527 | GCC_DYNAMIC_NO_PIC = NO; 528 | GCC_NO_COMMON_BLOCKS = YES; 529 | GCC_OPTIMIZATION_LEVEL = 0; 530 | GCC_PREPROCESSOR_DEFINITIONS = ( 531 | "POD_CONFIGURATION_DEBUG=1", 532 | "DEBUG=1", 533 | "$(inherited)", 534 | ); 535 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 536 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 537 | GCC_WARN_UNDECLARED_SELECTOR = YES; 538 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 539 | GCC_WARN_UNUSED_FUNCTION = YES; 540 | GCC_WARN_UNUSED_VARIABLE = YES; 541 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 542 | MTL_ENABLE_DEBUG_INFO = YES; 543 | ONLY_ACTIVE_ARCH = YES; 544 | PRODUCT_NAME = "$(TARGET_NAME)"; 545 | STRIP_INSTALLED_PRODUCT = NO; 546 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 547 | SYMROOT = "${SRCROOT}/../build"; 548 | }; 549 | name = Debug; 550 | }; 551 | /* End XCBuildConfiguration section */ 552 | 553 | /* Begin XCConfigurationList section */ 554 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 555 | isa = XCConfigurationList; 556 | buildConfigurations = ( 557 | DFB07AE6611852E982CB67015DCDD500 /* Debug */, 558 | 6690C5B4617034833FDE45658321956C /* Release */, 559 | ); 560 | defaultConfigurationIsVisible = 0; 561 | defaultConfigurationName = Release; 562 | }; 563 | 745FE4BE053BA08CE02BDE05448518C8 /* Build configuration list for PBXNativeTarget "HTCustomSwitch" */ = { 564 | isa = XCConfigurationList; 565 | buildConfigurations = ( 566 | 16B6B3BE8A4CD6B77883C7854AEC3052 /* Debug */, 567 | 9FD8D3EC63BC95D93F03DEBCFDC74450 /* Release */, 568 | ); 569 | defaultConfigurationIsVisible = 0; 570 | defaultConfigurationName = Release; 571 | }; 572 | CB32C67D366EC81CBE8A500FB3EB1E16 /* Build configuration list for PBXNativeTarget "Pods-HTCustomSwitchExample" */ = { 573 | isa = XCConfigurationList; 574 | buildConfigurations = ( 575 | 1F4E1CB1841B4DB1777D7FE5B9F319E4 /* Debug */, 576 | 47D6EB2D846A0BA6399444E3527F398C /* Release */, 577 | ); 578 | defaultConfigurationIsVisible = 0; 579 | defaultConfigurationName = Release; 580 | }; 581 | /* End XCConfigurationList section */ 582 | }; 583 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 584 | } 585 | -------------------------------------------------------------------------------- /HTCustomSwitchExample/HTCustomSwitchExample/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 82 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 133 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 184 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 235 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 303 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 354 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 405 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 456 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | --------------------------------------------------------------------------------