├── .gitignore ├── .travis.yml ├── Example ├── PaintCodeKit.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── PaintCodeKit-Example.xcscheme ├── PaintCodeKit.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── PaintCodeKit │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Bell.swift │ ├── Icon.swift │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon-20@2x.png │ │ │ ├── Icon-20@3x.png │ │ │ ├── Icon-29@2x.png │ │ │ ├── Icon-29@3x.png │ │ │ ├── Icon-40@2x.png │ │ │ ├── Icon-40@3x.png │ │ │ ├── Icon-60@2x.png │ │ │ ├── Icon-60@3x.png │ │ │ └── iTunesArtwork@2x.png │ ├── Info.plist │ ├── ShareApp.swift │ ├── ViewController.swift │ └── build-phase │ │ └── script1.sh ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── PaintCodeKit.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── PaintCodeKit │ │ ├── PaintCodeKit-Info.plist │ │ ├── PaintCodeKit-dummy.m │ │ ├── PaintCodeKit-prefix.pch │ │ ├── PaintCodeKit-umbrella.h │ │ ├── PaintCodeKit.modulemap │ │ └── PaintCodeKit.xcconfig │ │ └── Pods-PaintCodeKit_Example │ │ ├── Pods-PaintCodeKit_Example-Info.plist │ │ ├── Pods-PaintCodeKit_Example-acknowledgements.markdown │ │ ├── Pods-PaintCodeKit_Example-acknowledgements.plist │ │ ├── Pods-PaintCodeKit_Example-dummy.m │ │ ├── Pods-PaintCodeKit_Example-frameworks.sh │ │ ├── Pods-PaintCodeKit_Example-umbrella.h │ │ ├── Pods-PaintCodeKit_Example.debug.xcconfig │ │ ├── Pods-PaintCodeKit_Example.modulemap │ │ └── Pods-PaintCodeKit_Example.release.xcconfig ├── Tests │ ├── Info.plist │ └── Tests.swift ├── _data.txt ├── files │ └── user.svg ├── files_data.txt └── output_data.txt ├── Images ├── Icons │ └── user.png ├── Pods │ ├── AnimatedField.png │ ├── CiaoTransitions.png │ ├── ContentLoader.png │ ├── DateScrollPicker.png │ ├── EmptyStateKit.png │ ├── GridTimerView.png │ └── PaintCodeKit.png └── header_PaintCodeKit.png ├── LICENSE ├── PaintCodeKit.podspec ├── PaintCodeKit ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── Extensions │ └── UIImageView+PaintCodeKit.swift │ ├── PaintCodeImage.swift │ ├── PaintCodeImages.swift │ ├── PaintCodeManager.swift │ └── Resources │ └── User.swift └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | 39 | _Pods.xcodeproj 40 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/PaintCodeKit.xcworkspace -scheme PaintCodeKit-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/PaintCodeKit.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0B1F3DE7B30085D29F6B9A96 /* Pods_PaintCodeKit_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D483EC7F8791D43A84A9C8F /* Pods_PaintCodeKit_Example.framework */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 16 | E3A3D25A227DC987002AE641 /* ShareApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3A3D259227DC987002AE641 /* ShareApp.swift */; }; 17 | E3A3D25C227DD2C0002AE641 /* Icon.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3A3D25B227DD2C0002AE641 /* Icon.swift */; }; 18 | E3B48A8B22941C300064756F /* Bell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3B48A8A22941C300064756F /* Bell.swift */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXFileReference section */ 22 | 4DB418C648992B4FE75A0A82 /* PaintCodeKit.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = PaintCodeKit.podspec; path = ../PaintCodeKit.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 23 | 5D483EC7F8791D43A84A9C8F /* Pods_PaintCodeKit_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PaintCodeKit_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 24 | 607FACD01AFB9204008FA782 /* PaintCodeKit_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PaintCodeKit_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 25 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 26 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 27 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 28 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 29 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 30 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 31 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 33 | 66FFFA9588FA9AC53F34AE17 /* Pods-PaintCodeKit_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PaintCodeKit_Example.debug.xcconfig"; path = "Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example.debug.xcconfig"; sourceTree = ""; }; 34 | 6B7A649F8C55FB0640551C9C /* Pods-PaintCodeKit_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PaintCodeKit_Example.release.xcconfig"; path = "Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example.release.xcconfig"; sourceTree = ""; }; 35 | 940FD9DB0D32756F0B4A0EB7 /* Pods-PaintCodeKit_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PaintCodeKit_Tests.debug.xcconfig"; path = "Target Support Files/Pods-PaintCodeKit_Tests/Pods-PaintCodeKit_Tests.debug.xcconfig"; sourceTree = ""; }; 36 | 94390C332595F2A24E58A65B /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 37 | B98A278C1E3AAAA30F9572B6 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 38 | E0A1E69A051818A8EC1E1B45 /* Pods_PaintCodeKit_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PaintCodeKit_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | E3A3D259227DC987002AE641 /* ShareApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShareApp.swift; sourceTree = ""; }; 40 | E3A3D25B227DD2C0002AE641 /* Icon.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Icon.swift; sourceTree = ""; }; 41 | E3B48A8A22941C300064756F /* Bell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Bell.swift; sourceTree = ""; }; 42 | F17FF64018FAE99F98FE5EDC /* Pods-PaintCodeKit_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PaintCodeKit_Tests.release.xcconfig"; path = "Target Support Files/Pods-PaintCodeKit_Tests/Pods-PaintCodeKit_Tests.release.xcconfig"; sourceTree = ""; }; 43 | /* End PBXFileReference section */ 44 | 45 | /* Begin PBXFrameworksBuildPhase section */ 46 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 47 | isa = PBXFrameworksBuildPhase; 48 | buildActionMask = 2147483647; 49 | files = ( 50 | 0B1F3DE7B30085D29F6B9A96 /* Pods_PaintCodeKit_Example.framework in Frameworks */, 51 | ); 52 | runOnlyForDeploymentPostprocessing = 0; 53 | }; 54 | /* End PBXFrameworksBuildPhase section */ 55 | 56 | /* Begin PBXGroup section */ 57 | 607FACC71AFB9204008FA782 = { 58 | isa = PBXGroup; 59 | children = ( 60 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 61 | 607FACD21AFB9204008FA782 /* Example for PaintCodeKit */, 62 | 607FACE81AFB9204008FA782 /* Tests */, 63 | 607FACD11AFB9204008FA782 /* Products */, 64 | C6D5006260E9A9BC34DFEBE3 /* Pods */, 65 | 709672F484905CCFF68EE3CE /* Frameworks */, 66 | ); 67 | sourceTree = ""; 68 | }; 69 | 607FACD11AFB9204008FA782 /* Products */ = { 70 | isa = PBXGroup; 71 | children = ( 72 | 607FACD01AFB9204008FA782 /* PaintCodeKit_Example.app */, 73 | ); 74 | name = Products; 75 | sourceTree = ""; 76 | }; 77 | 607FACD21AFB9204008FA782 /* Example for PaintCodeKit */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | E3A3D258227DC935002AE641 /* Icons */, 81 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 82 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 83 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 84 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 85 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 86 | 607FACD31AFB9204008FA782 /* Supporting Files */, 87 | ); 88 | name = "Example for PaintCodeKit"; 89 | path = PaintCodeKit; 90 | sourceTree = ""; 91 | }; 92 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | 607FACD41AFB9204008FA782 /* Info.plist */, 96 | ); 97 | name = "Supporting Files"; 98 | sourceTree = ""; 99 | }; 100 | 607FACE81AFB9204008FA782 /* Tests */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 104 | 607FACE91AFB9204008FA782 /* Supporting Files */, 105 | ); 106 | path = Tests; 107 | sourceTree = ""; 108 | }; 109 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 607FACEA1AFB9204008FA782 /* Info.plist */, 113 | ); 114 | name = "Supporting Files"; 115 | sourceTree = ""; 116 | }; 117 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 4DB418C648992B4FE75A0A82 /* PaintCodeKit.podspec */, 121 | B98A278C1E3AAAA30F9572B6 /* README.md */, 122 | 94390C332595F2A24E58A65B /* LICENSE */, 123 | ); 124 | name = "Podspec Metadata"; 125 | sourceTree = ""; 126 | }; 127 | 709672F484905CCFF68EE3CE /* Frameworks */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 5D483EC7F8791D43A84A9C8F /* Pods_PaintCodeKit_Example.framework */, 131 | E0A1E69A051818A8EC1E1B45 /* Pods_PaintCodeKit_Tests.framework */, 132 | ); 133 | name = Frameworks; 134 | sourceTree = ""; 135 | }; 136 | C6D5006260E9A9BC34DFEBE3 /* Pods */ = { 137 | isa = PBXGroup; 138 | children = ( 139 | 66FFFA9588FA9AC53F34AE17 /* Pods-PaintCodeKit_Example.debug.xcconfig */, 140 | 6B7A649F8C55FB0640551C9C /* Pods-PaintCodeKit_Example.release.xcconfig */, 141 | 940FD9DB0D32756F0B4A0EB7 /* Pods-PaintCodeKit_Tests.debug.xcconfig */, 142 | F17FF64018FAE99F98FE5EDC /* Pods-PaintCodeKit_Tests.release.xcconfig */, 143 | ); 144 | path = Pods; 145 | sourceTree = ""; 146 | }; 147 | E3A3D258227DC935002AE641 /* Icons */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | E3A3D25B227DD2C0002AE641 /* Icon.swift */, 151 | E3A3D259227DC987002AE641 /* ShareApp.swift */, 152 | E3B48A8A22941C300064756F /* Bell.swift */, 153 | ); 154 | name = Icons; 155 | sourceTree = ""; 156 | }; 157 | /* End PBXGroup section */ 158 | 159 | /* Begin PBXNativeTarget section */ 160 | 607FACCF1AFB9204008FA782 /* PaintCodeKit_Example */ = { 161 | isa = PBXNativeTarget; 162 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "PaintCodeKit_Example" */; 163 | buildPhases = ( 164 | 5470A4C2E5D35CE761C293D2 /* [CP] Check Pods Manifest.lock */, 165 | 607FACCC1AFB9204008FA782 /* Sources */, 166 | 607FACCD1AFB9204008FA782 /* Frameworks */, 167 | 607FACCE1AFB9204008FA782 /* Resources */, 168 | 73277E87DDFA8DE0B38469D3 /* [CP] Embed Pods Frameworks */, 169 | E30A7E8C228228990031DF38 /* ShellScript */, 170 | ); 171 | buildRules = ( 172 | ); 173 | dependencies = ( 174 | ); 175 | name = PaintCodeKit_Example; 176 | productName = PaintCodeKit; 177 | productReference = 607FACD01AFB9204008FA782 /* PaintCodeKit_Example.app */; 178 | productType = "com.apple.product-type.application"; 179 | }; 180 | /* End PBXNativeTarget section */ 181 | 182 | /* Begin PBXProject section */ 183 | 607FACC81AFB9204008FA782 /* Project object */ = { 184 | isa = PBXProject; 185 | attributes = { 186 | LastSwiftUpdateCheck = 0830; 187 | LastUpgradeCheck = 0830; 188 | ORGANIZATIONNAME = CocoaPods; 189 | TargetAttributes = { 190 | 607FACCF1AFB9204008FA782 = { 191 | CreatedOnToolsVersion = 6.3.1; 192 | LastSwiftMigration = 0900; 193 | }; 194 | }; 195 | }; 196 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "PaintCodeKit" */; 197 | compatibilityVersion = "Xcode 3.2"; 198 | developmentRegion = English; 199 | hasScannedForEncodings = 0; 200 | knownRegions = ( 201 | English, 202 | en, 203 | Base, 204 | ); 205 | mainGroup = 607FACC71AFB9204008FA782; 206 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 207 | projectDirPath = ""; 208 | projectRoot = ""; 209 | targets = ( 210 | 607FACCF1AFB9204008FA782 /* PaintCodeKit_Example */, 211 | ); 212 | }; 213 | /* End PBXProject section */ 214 | 215 | /* Begin PBXResourcesBuildPhase section */ 216 | 607FACCE1AFB9204008FA782 /* Resources */ = { 217 | isa = PBXResourcesBuildPhase; 218 | buildActionMask = 2147483647; 219 | files = ( 220 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 221 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 222 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 223 | ); 224 | runOnlyForDeploymentPostprocessing = 0; 225 | }; 226 | /* End PBXResourcesBuildPhase section */ 227 | 228 | /* Begin PBXShellScriptBuildPhase section */ 229 | 5470A4C2E5D35CE761C293D2 /* [CP] Check Pods Manifest.lock */ = { 230 | isa = PBXShellScriptBuildPhase; 231 | buildActionMask = 2147483647; 232 | files = ( 233 | ); 234 | inputFileListPaths = ( 235 | ); 236 | inputPaths = ( 237 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 238 | "${PODS_ROOT}/Manifest.lock", 239 | ); 240 | name = "[CP] Check Pods Manifest.lock"; 241 | outputFileListPaths = ( 242 | ); 243 | outputPaths = ( 244 | "$(DERIVED_FILE_DIR)/Pods-PaintCodeKit_Example-checkManifestLockResult.txt", 245 | ); 246 | runOnlyForDeploymentPostprocessing = 0; 247 | shellPath = /bin/sh; 248 | 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"; 249 | showEnvVarsInLog = 0; 250 | }; 251 | 73277E87DDFA8DE0B38469D3 /* [CP] Embed Pods Frameworks */ = { 252 | isa = PBXShellScriptBuildPhase; 253 | buildActionMask = 2147483647; 254 | files = ( 255 | ); 256 | inputPaths = ( 257 | "${PODS_ROOT}/Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example-frameworks.sh", 258 | "${BUILT_PRODUCTS_DIR}/PaintCodeKit/PaintCodeKit.framework", 259 | ); 260 | name = "[CP] Embed Pods Frameworks"; 261 | outputPaths = ( 262 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PaintCodeKit.framework", 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | shellPath = /bin/sh; 266 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example-frameworks.sh\"\n"; 267 | showEnvVarsInLog = 0; 268 | }; 269 | E30A7E8C228228990031DF38 /* ShellScript */ = { 270 | isa = PBXShellScriptBuildPhase; 271 | buildActionMask = 2147483647; 272 | files = ( 273 | ); 274 | inputFileListPaths = ( 275 | ); 276 | inputPaths = ( 277 | "$(SRCROOT)/files/user.svg", 278 | ); 279 | outputFileListPaths = ( 280 | ); 281 | outputPaths = ( 282 | "$(DERIVED_FILE_DIR)/output_data.txt", 283 | ); 284 | runOnlyForDeploymentPostprocessing = 0; 285 | shellPath = /bin/sh; 286 | shellScript = "# Type a script or drag a script file from your workspace to insert its path.\n# $SRCROOT/PaintCodeKit/build-phase/script1.sh\necho $SCRIPT_INPUT_FILE_0\necho $SCRIPT_OUTPUT_FILE_0\n\nsed '/.*\\d=\"\\(.*\\)\\\" .*/ s//\\1/g' $SCRIPT_INPUT_FILE_0 > $SCRIPT_OUTPUT_FILE_0\n\n#dir=\"files\"\n#for f in \"$dir\"/*.svg; do\n# sed '/.*\\d=\"\\(.*\\)\\\" .*/ s//\\1/g' $SCRIPT_INPUT_FILE_0 > $SCRIPT_OUTPUT_FILE_0\n#done\n\n\n"; 287 | }; 288 | /* End PBXShellScriptBuildPhase section */ 289 | 290 | /* Begin PBXSourcesBuildPhase section */ 291 | 607FACCC1AFB9204008FA782 /* Sources */ = { 292 | isa = PBXSourcesBuildPhase; 293 | buildActionMask = 2147483647; 294 | files = ( 295 | E3A3D25A227DC987002AE641 /* ShareApp.swift in Sources */, 296 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 297 | E3B48A8B22941C300064756F /* Bell.swift in Sources */, 298 | E3A3D25C227DD2C0002AE641 /* Icon.swift in Sources */, 299 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 300 | ); 301 | runOnlyForDeploymentPostprocessing = 0; 302 | }; 303 | /* End PBXSourcesBuildPhase section */ 304 | 305 | /* Begin PBXVariantGroup section */ 306 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 307 | isa = PBXVariantGroup; 308 | children = ( 309 | 607FACDA1AFB9204008FA782 /* Base */, 310 | ); 311 | name = Main.storyboard; 312 | sourceTree = ""; 313 | }; 314 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 315 | isa = PBXVariantGroup; 316 | children = ( 317 | 607FACDF1AFB9204008FA782 /* Base */, 318 | ); 319 | name = LaunchScreen.xib; 320 | sourceTree = ""; 321 | }; 322 | /* End PBXVariantGroup section */ 323 | 324 | /* Begin XCBuildConfiguration section */ 325 | 607FACED1AFB9204008FA782 /* Debug */ = { 326 | isa = XCBuildConfiguration; 327 | buildSettings = { 328 | ALWAYS_SEARCH_USER_PATHS = NO; 329 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 330 | CLANG_CXX_LIBRARY = "libc++"; 331 | CLANG_ENABLE_MODULES = YES; 332 | CLANG_ENABLE_OBJC_ARC = YES; 333 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 334 | CLANG_WARN_BOOL_CONVERSION = YES; 335 | CLANG_WARN_COMMA = YES; 336 | CLANG_WARN_CONSTANT_CONVERSION = YES; 337 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 338 | CLANG_WARN_EMPTY_BODY = YES; 339 | CLANG_WARN_ENUM_CONVERSION = YES; 340 | CLANG_WARN_INFINITE_RECURSION = YES; 341 | CLANG_WARN_INT_CONVERSION = YES; 342 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 343 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 344 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 345 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 346 | CLANG_WARN_STRICT_PROTOTYPES = YES; 347 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 348 | CLANG_WARN_UNREACHABLE_CODE = YES; 349 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 350 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 351 | COPY_PHASE_STRIP = NO; 352 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 353 | ENABLE_STRICT_OBJC_MSGSEND = YES; 354 | ENABLE_TESTABILITY = YES; 355 | GCC_C_LANGUAGE_STANDARD = gnu99; 356 | GCC_DYNAMIC_NO_PIC = NO; 357 | GCC_NO_COMMON_BLOCKS = YES; 358 | GCC_OPTIMIZATION_LEVEL = 0; 359 | GCC_PREPROCESSOR_DEFINITIONS = ( 360 | "DEBUG=1", 361 | "$(inherited)", 362 | ); 363 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 364 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 365 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 366 | GCC_WARN_UNDECLARED_SELECTOR = YES; 367 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 368 | GCC_WARN_UNUSED_FUNCTION = YES; 369 | GCC_WARN_UNUSED_VARIABLE = YES; 370 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 371 | MTL_ENABLE_DEBUG_INFO = YES; 372 | ONLY_ACTIVE_ARCH = YES; 373 | SDKROOT = iphoneos; 374 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 375 | SWIFT_VERSION = 5.0; 376 | }; 377 | name = Debug; 378 | }; 379 | 607FACEE1AFB9204008FA782 /* Release */ = { 380 | isa = XCBuildConfiguration; 381 | buildSettings = { 382 | ALWAYS_SEARCH_USER_PATHS = NO; 383 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 384 | CLANG_CXX_LIBRARY = "libc++"; 385 | CLANG_ENABLE_MODULES = YES; 386 | CLANG_ENABLE_OBJC_ARC = YES; 387 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 388 | CLANG_WARN_BOOL_CONVERSION = YES; 389 | CLANG_WARN_COMMA = YES; 390 | CLANG_WARN_CONSTANT_CONVERSION = YES; 391 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 392 | CLANG_WARN_EMPTY_BODY = YES; 393 | CLANG_WARN_ENUM_CONVERSION = YES; 394 | CLANG_WARN_INFINITE_RECURSION = YES; 395 | CLANG_WARN_INT_CONVERSION = YES; 396 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 397 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 398 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 399 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 400 | CLANG_WARN_STRICT_PROTOTYPES = YES; 401 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 402 | CLANG_WARN_UNREACHABLE_CODE = YES; 403 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 404 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 405 | COPY_PHASE_STRIP = NO; 406 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 407 | ENABLE_NS_ASSERTIONS = NO; 408 | ENABLE_STRICT_OBJC_MSGSEND = YES; 409 | GCC_C_LANGUAGE_STANDARD = gnu99; 410 | GCC_NO_COMMON_BLOCKS = YES; 411 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 412 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 413 | GCC_WARN_UNDECLARED_SELECTOR = YES; 414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 415 | GCC_WARN_UNUSED_FUNCTION = YES; 416 | GCC_WARN_UNUSED_VARIABLE = YES; 417 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 418 | MTL_ENABLE_DEBUG_INFO = NO; 419 | SDKROOT = iphoneos; 420 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 421 | SWIFT_VERSION = 5.0; 422 | VALIDATE_PRODUCT = YES; 423 | }; 424 | name = Release; 425 | }; 426 | 607FACF01AFB9204008FA782 /* Debug */ = { 427 | isa = XCBuildConfiguration; 428 | baseConfigurationReference = 66FFFA9588FA9AC53F34AE17 /* Pods-PaintCodeKit_Example.debug.xcconfig */; 429 | buildSettings = { 430 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 431 | INFOPLIST_FILE = PaintCodeKit/Info.plist; 432 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 433 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 434 | MODULE_NAME = ExampleApp; 435 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 436 | PRODUCT_NAME = "$(TARGET_NAME)"; 437 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 438 | SWIFT_VERSION = 5.0; 439 | }; 440 | name = Debug; 441 | }; 442 | 607FACF11AFB9204008FA782 /* Release */ = { 443 | isa = XCBuildConfiguration; 444 | baseConfigurationReference = 6B7A649F8C55FB0640551C9C /* Pods-PaintCodeKit_Example.release.xcconfig */; 445 | buildSettings = { 446 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 447 | INFOPLIST_FILE = PaintCodeKit/Info.plist; 448 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 449 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 450 | MODULE_NAME = ExampleApp; 451 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 452 | PRODUCT_NAME = "$(TARGET_NAME)"; 453 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 454 | SWIFT_VERSION = 5.0; 455 | }; 456 | name = Release; 457 | }; 458 | /* End XCBuildConfiguration section */ 459 | 460 | /* Begin XCConfigurationList section */ 461 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "PaintCodeKit" */ = { 462 | isa = XCConfigurationList; 463 | buildConfigurations = ( 464 | 607FACED1AFB9204008FA782 /* Debug */, 465 | 607FACEE1AFB9204008FA782 /* Release */, 466 | ); 467 | defaultConfigurationIsVisible = 0; 468 | defaultConfigurationName = Release; 469 | }; 470 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "PaintCodeKit_Example" */ = { 471 | isa = XCConfigurationList; 472 | buildConfigurations = ( 473 | 607FACF01AFB9204008FA782 /* Debug */, 474 | 607FACF11AFB9204008FA782 /* Release */, 475 | ); 476 | defaultConfigurationIsVisible = 0; 477 | defaultConfigurationName = Release; 478 | }; 479 | /* End XCConfigurationList section */ 480 | }; 481 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 482 | } 483 | -------------------------------------------------------------------------------- /Example/PaintCodeKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/PaintCodeKit.xcodeproj/xcshareddata/xcschemes/PaintCodeKit-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 80 | 82 | 88 | 89 | 90 | 91 | 92 | 93 | 99 | 101 | 107 | 108 | 109 | 110 | 112 | 113 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /Example/PaintCodeKit.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/PaintCodeKit.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/PaintCodeKit/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // PaintCodeKit 4 | // 5 | // Created by alberdev on 05/04/2019. 6 | // Copyright (c) 2019 alberdev. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { 17 | return true 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /Example/PaintCodeKit/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/PaintCodeKit/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 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /Example/PaintCodeKit/Bell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Bell.swift 3 | // PaintCodeKit_Example 4 | // 5 | // Created by Alberto Aznar de los Ríos on 21/05/2019. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import PaintCodeKit 11 | 12 | extension PaintCodeImages { 13 | 14 | class func drawBell(frame targetFrame: CGRect = CGRect(x: 0, y: 0, width: 26, height: 26), resizing: ResizingBehavior = .aspectFit) { 15 | 16 | /// General Declarations 17 | let context = UIGraphicsGetCurrentContext()! 18 | 19 | /// Resize to Target Frame 20 | context.saveGState() 21 | let resizedFrame = resizing.apply(rect: CGRect(x: 0, y: 0, width: 24, height: 24), target: targetFrame) 22 | context.translateBy(x: resizedFrame.minX, y: resizedFrame.minY) 23 | context.scaleBy(x: resizedFrame.width / 24, y: resizedFrame.height / 24) 24 | 25 | /// Shape 26 | let shape = UIBezierPath() 27 | shape.move(to: CGPoint(x: 17, y: 13)) 28 | shape.addLine(to: CGPoint(x: 17, y: 8)) 29 | shape.addCurve(to: CGPoint(x: 11, y: 2), controlPoint1: CGPoint(x: 17, y: 4.69), controlPoint2: CGPoint(x: 14.31, y: 2)) 30 | shape.addCurve(to: CGPoint(x: 5, y: 8), controlPoint1: CGPoint(x: 7.69, y: 2), controlPoint2: CGPoint(x: 5, y: 4.69)) 31 | shape.addLine(to: CGPoint(x: 5, y: 13)) 32 | shape.addCurve(to: CGPoint(x: 4.46, y: 15), controlPoint1: CGPoint(x: 5, y: 13.73), controlPoint2: CGPoint(x: 4.81, y: 14.41)) 33 | shape.addLine(to: CGPoint(x: 17.54, y: 15)) 34 | shape.addCurve(to: CGPoint(x: 17, y: 13), controlPoint1: CGPoint(x: 17.19, y: 14.41), controlPoint2: CGPoint(x: 17, y: 13.73)) 35 | shape.close() 36 | shape.move(to: CGPoint(x: 21, y: 17)) 37 | shape.addLine(to: CGPoint(x: 1, y: 17)) 38 | shape.addCurve(to: CGPoint(x: 1, y: 15), controlPoint1: CGPoint(x: -0.33, y: 17), controlPoint2: CGPoint(x: -0.33, y: 15)) 39 | shape.addCurve(to: CGPoint(x: 3, y: 13), controlPoint1: CGPoint(x: 2.1, y: 15), controlPoint2: CGPoint(x: 3, y: 14.1)) 40 | shape.addLine(to: CGPoint(x: 3, y: 8)) 41 | shape.addCurve(to: CGPoint(x: 11, y: 0), controlPoint1: CGPoint(x: 3, y: 3.58), controlPoint2: CGPoint(x: 6.58, y: 0)) 42 | shape.addCurve(to: CGPoint(x: 19, y: 8), controlPoint1: CGPoint(x: 15.42, y: 0), controlPoint2: CGPoint(x: 19, y: 3.58)) 43 | shape.addLine(to: CGPoint(x: 19, y: 13)) 44 | shape.addCurve(to: CGPoint(x: 21, y: 15), controlPoint1: CGPoint(x: 19, y: 14.1), controlPoint2: CGPoint(x: 19.9, y: 15)) 45 | shape.addCurve(to: CGPoint(x: 21, y: 17), controlPoint1: CGPoint(x: 22.33, y: 15), controlPoint2: CGPoint(x: 22.33, y: 17)) 46 | shape.close() 47 | shape.move(to: CGPoint(x: 13.59, y: 20.5)) 48 | shape.addCurve(to: CGPoint(x: 11, y: 22), controlPoint1: CGPoint(x: 13.06, y: 21.43), controlPoint2: CGPoint(x: 12.07, y: 22)) 49 | shape.addCurve(to: CGPoint(x: 8.4, y: 20.5), controlPoint1: CGPoint(x: 9.93, y: 22), controlPoint2: CGPoint(x: 8.94, y: 21.43)) 50 | shape.addCurve(to: CGPoint(x: 9.27, y: 19), controlPoint1: CGPoint(x: 8.02, y: 19.84), controlPoint2: CGPoint(x: 8.5, y: 19)) 51 | shape.addLine(to: CGPoint(x: 12.73, y: 19)) 52 | shape.addCurve(to: CGPoint(x: 13.59, y: 20.5), controlPoint1: CGPoint(x: 13.5, y: 19), controlPoint2: CGPoint(x: 13.98, y: 19.84)) 53 | shape.close() 54 | context.saveGState() 55 | context.translateBy(x: 1, y: 1) 56 | UIColor.black.setFill() 57 | shape.fill() 58 | context.restoreGState() 59 | 60 | /// Shape (Outline Mask) 61 | context.saveGState() 62 | shape.apply(CGAffineTransform(translationX: 1, y: 1)) 63 | shape.addClip() 64 | 65 | /// COLOR/ black 66 | // Warning: New symbols are not supported. 67 | 68 | context.restoreGState() 69 | // End Shape (Outline Mask) 70 | 71 | context.restoreGState() 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /Example/PaintCodeKit/Icon.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Icon.swift 3 | // PaintCodeKit_Example 4 | // 5 | // Created by Alberto Aznar de los Ríos on 04/05/2019. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import PaintCodeKit 11 | 12 | enum Icon: PaintCodeDraw { 13 | 14 | case shareApp 15 | case bell 16 | 17 | func draw(size: CGSize, color: UIColor) { 18 | 19 | switch self { 20 | case .shareApp: PaintCodeImages.drawShareApp(frame: CGRect(origin: .zero, size: size), resizing: .aspectFit) 21 | case .bell: PaintCodeImages.drawBell(frame: CGRect(origin: .zero, size: size), resizing: .aspectFit) 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-29@2x.png", 19 | "scale" : "2x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-29@3x.png", 25 | "scale" : "3x" 26 | }, 27 | { 28 | "size" : "40x40", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-40@2x.png", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-40@3x.png", 37 | "scale" : "3x" 38 | }, 39 | { 40 | "size" : "60x60", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-60@2x.png", 43 | "scale" : "2x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-60@3x.png", 49 | "scale" : "3x" 50 | }, 51 | { 52 | "size" : "1024x1024", 53 | "idiom" : "ios-marketing", 54 | "filename" : "iTunesArtwork@2x.png", 55 | "scale" : "1x" 56 | } 57 | ], 58 | "info" : { 59 | "version" : 1, 60 | "author" : "xcode" 61 | } 62 | } -------------------------------------------------------------------------------- /Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Icon-20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Icon-20@2x.png -------------------------------------------------------------------------------- /Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Icon-20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Icon-20@3x.png -------------------------------------------------------------------------------- /Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Icon-29@2x.png -------------------------------------------------------------------------------- /Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Icon-29@3x.png -------------------------------------------------------------------------------- /Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Icon-40@2x.png -------------------------------------------------------------------------------- /Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Icon-40@3x.png -------------------------------------------------------------------------------- /Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/iTunesArtwork@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Example/PaintCodeKit/Images.xcassets/AppIcon.appiconset/iTunesArtwork@2x.png -------------------------------------------------------------------------------- /Example/PaintCodeKit/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/PaintCodeKit/ShareApp.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ShareApp.swift 3 | // PaintCodeKit_Example 4 | // 5 | // Created by Alberto Aznar de los Ríos on 04/05/2019. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import PaintCodeKit 11 | 12 | extension PaintCodeImages { 13 | 14 | class func drawShareApp(frame targetFrame: CGRect = CGRect(x: 0, y: 0, width: 400, height: 400), resizing: ResizingBehavior = .aspectFit) { 15 | 16 | /// General Declarations 17 | let context = UIGraphicsGetCurrentContext()! 18 | 19 | /// Resize to Target Frame 20 | context.saveGState() 21 | let resizedFrame = resizing.apply(rect: CGRect(x: 0, y: 0, width: 24, height: 24), target: targetFrame) 22 | context.translateBy(x: resizedFrame.minX, y: resizedFrame.minY) 23 | context.scaleBy(x: resizedFrame.width / 24, y: resizedFrame.height / 24) 24 | 25 | /// Combined Shape 26 | let combinedShape = UIBezierPath() 27 | combinedShape.move(to: CGPoint(x: 10, y: 3.41)) 28 | combinedShape.addLine(to: CGPoint(x: 10, y: 14)) 29 | combinedShape.addCurve(to: CGPoint(x: 9, y: 15), controlPoint1: CGPoint(x: 10, y: 14.55), controlPoint2: CGPoint(x: 9.55, y: 15)) 30 | combinedShape.addCurve(to: CGPoint(x: 8, y: 14), controlPoint1: CGPoint(x: 8.45, y: 15), controlPoint2: CGPoint(x: 8, y: 14.55)) 31 | combinedShape.addLine(to: CGPoint(x: 8, y: 3.41)) 32 | combinedShape.addLine(to: CGPoint(x: 5.71, y: 5.71)) 33 | combinedShape.addCurve(to: CGPoint(x: 4.29, y: 5.71), controlPoint1: CGPoint(x: 5.32, y: 6.1), controlPoint2: CGPoint(x: 4.68, y: 6.1)) 34 | combinedShape.addCurve(to: CGPoint(x: 4.29, y: 4.29), controlPoint1: CGPoint(x: 3.9, y: 5.32), controlPoint2: CGPoint(x: 3.9, y: 4.68)) 35 | combinedShape.addLine(to: CGPoint(x: 8.29, y: 0.29)) 36 | combinedShape.addCurve(to: CGPoint(x: 9.71, y: 0.29), controlPoint1: CGPoint(x: 8.68, y: -0.1), controlPoint2: CGPoint(x: 9.32, y: -0.1)) 37 | combinedShape.addLine(to: CGPoint(x: 13.71, y: 4.29)) 38 | combinedShape.addCurve(to: CGPoint(x: 13.71, y: 5.71), controlPoint1: CGPoint(x: 14.1, y: 4.68), controlPoint2: CGPoint(x: 14.1, y: 5.32)) 39 | combinedShape.addCurve(to: CGPoint(x: 12.29, y: 5.71), controlPoint1: CGPoint(x: 13.32, y: 6.1), controlPoint2: CGPoint(x: 12.68, y: 6.1)) 40 | combinedShape.addLine(to: CGPoint(x: 10, y: 3.41)) 41 | combinedShape.close() 42 | combinedShape.move(to: CGPoint(x: 0, y: 11)) 43 | combinedShape.addCurve(to: CGPoint(x: 1, y: 10), controlPoint1: CGPoint(x: 0, y: 10.45), controlPoint2: CGPoint(x: 0.45, y: 10)) 44 | combinedShape.addCurve(to: CGPoint(x: 2, y: 11), controlPoint1: CGPoint(x: 1.55, y: 10), controlPoint2: CGPoint(x: 2, y: 10.45)) 45 | combinedShape.addLine(to: CGPoint(x: 2, y: 19)) 46 | combinedShape.addCurve(to: CGPoint(x: 3, y: 20), controlPoint1: CGPoint(x: 2, y: 19.55), controlPoint2: CGPoint(x: 2.45, y: 20)) 47 | combinedShape.addLine(to: CGPoint(x: 15, y: 20)) 48 | combinedShape.addCurve(to: CGPoint(x: 16, y: 19), controlPoint1: CGPoint(x: 15.55, y: 20), controlPoint2: CGPoint(x: 16, y: 19.55)) 49 | combinedShape.addLine(to: CGPoint(x: 16, y: 11)) 50 | combinedShape.addCurve(to: CGPoint(x: 17, y: 10), controlPoint1: CGPoint(x: 16, y: 10.45), controlPoint2: CGPoint(x: 16.45, y: 10)) 51 | combinedShape.addCurve(to: CGPoint(x: 18, y: 11), controlPoint1: CGPoint(x: 17.55, y: 10), controlPoint2: CGPoint(x: 18, y: 10.45)) 52 | combinedShape.addLine(to: CGPoint(x: 18, y: 19)) 53 | combinedShape.addCurve(to: CGPoint(x: 15, y: 22), controlPoint1: CGPoint(x: 18, y: 20.66), controlPoint2: CGPoint(x: 16.66, y: 22)) 54 | combinedShape.addLine(to: CGPoint(x: 3, y: 22)) 55 | combinedShape.addCurve(to: CGPoint(x: 0, y: 19), controlPoint1: CGPoint(x: 1.34, y: 22), controlPoint2: CGPoint(x: 0, y: 20.66)) 56 | combinedShape.addLine(to: CGPoint(x: 0, y: 11)) 57 | combinedShape.close() 58 | context.saveGState() 59 | context.translateBy(x: 3, y: 1) 60 | UIColor.black.setFill() 61 | combinedShape.fill() 62 | context.restoreGState() 63 | 64 | /// Combined Shape (Outline Mask) 65 | context.saveGState() 66 | combinedShape.apply(CGAffineTransform(translationX: 3, y: 1)) 67 | combinedShape.addClip() 68 | 69 | /// COLOR/ black 70 | // Warning: New symbols are not supported. 71 | 72 | context.restoreGState() 73 | // End Combined Shape (Outline Mask) 74 | 75 | context.restoreGState() 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /Example/PaintCodeKit/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // PaintCodeKit 4 | // 5 | // Created by alberdev on 05/04/2019. 6 | // Copyright (c) 2019 alberdev. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import PaintCodeKit 11 | 12 | class ViewController: UIViewController { 13 | 14 | @IBOutlet weak var userImageView: UIImageView! 15 | @IBOutlet weak var shareImageView: UIImageView! 16 | @IBOutlet weak var bellImageView: UIImageView! 17 | @IBOutlet weak var button: UIButton! 18 | 19 | override func viewDidLoad() { 20 | super.viewDidLoad() 21 | 22 | // Fill image views 23 | userImageView.draw(PaintCodeImage.user) 24 | shareImageView.draw(Icon.shareApp) 25 | bellImageView.draw(Icon.bell, size: CGSize(width: 30, height: 30), color: .black, cached: true) 26 | 27 | // Fill button 28 | let image = PaintCodeManager.image(PaintCodeImage.user) 29 | button.layer.cornerRadius = 5 30 | button.setImage(image.withRenderingMode(.alwaysTemplate), for: .normal) 31 | button.setImage(image.withRenderingMode(.alwaysTemplate), for: .highlighted) 32 | button.contentEdgeInsets = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10) 33 | button.tintColor = .white 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /Example/PaintCodeKit/build-phase/script1.sh: -------------------------------------------------------------------------------- 1 | dir="files" 2 | for f in "$dir"/*; do 3 | sed '/.*\d="\(.*\)\" .*/ s//\1/g' $f > "${f%%.*}"_data.txt 4 | done 5 | #while IFS='' read -r line || [[ -n "$line" ]]; do 6 | # sed '/.*\d="\(.*\)\" .*/ s//\1/g' 7 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'PaintCodeKit_Example' do 4 | pod 'PaintCodeKit', :path => '../' 5 | 6 | end 7 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - PaintCodeKit (1.0.0) 3 | 4 | DEPENDENCIES: 5 | - PaintCodeKit (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | PaintCodeKit: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | PaintCodeKit: 640bcd5c24f7603cababbcb2bc7fffc7f27cc6a6 13 | 14 | PODFILE CHECKSUM: 063a1cc51c1f253f0a0c1d78dc6c0119cf16dab4 15 | 16 | COCOAPODS: 1.7.0.beta.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/PaintCodeKit.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "PaintCodeKit", 3 | "platforms": { 4 | "ios": "10.0" 5 | }, 6 | "summary": "PaintCode turn your images into Swift code, PaintCodeKit helps you to add them in your views!", 7 | "description": "PaintCodeKit manage your converted images in PaintCode. You will be able to use your images directly in the views using extensions with correct sizes. Use it to maintain your code clean!", 8 | "version": "1.0.0", 9 | "license": { 10 | "type": "MIT", 11 | "file": "LICENSE" 12 | }, 13 | "authors": { 14 | "Alberto Aznar": "info@alberdev.com" 15 | }, 16 | "homepage": "https://github.com/alberdev/PaintCodeKit", 17 | "social_media_url": "https://twitter.com/alberdev", 18 | "source": { 19 | "git": "https://github.com/alberdev/PaintCodeKit.git", 20 | "tag": "1.0.0" 21 | }, 22 | "frameworks": "UIKit", 23 | "source_files": "PaintCodeKit/**/*", 24 | "swift_versions": "5.0" 25 | } 26 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - PaintCodeKit (1.0.0) 3 | 4 | DEPENDENCIES: 5 | - PaintCodeKit (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | PaintCodeKit: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | PaintCodeKit: 640bcd5c24f7603cababbcb2bc7fffc7f27cc6a6 13 | 14 | PODFILE CHECKSUM: 063a1cc51c1f253f0a0c1d78dc6c0119cf16dab4 15 | 16 | COCOAPODS: 1.7.0.beta.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 027C8998913378072E8F419E011D90C4 /* UIImageView+PaintCodeKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6326526DD5CCCBF2A4826E0F0E3027F1 /* UIImageView+PaintCodeKit.swift */; }; 11 | 073FCB6800110C5EB212C4715BAD3224 /* PaintCodeKit-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BC4CCCA02DCC108A78695315BAC5472 /* PaintCodeKit-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 0ACDD1AB0B59B54291EAFCDAFA342272 /* PaintCodeKit-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 15CEF1C0EA7AB03FCE5D13B6E08AB0D2 /* PaintCodeKit-dummy.m */; }; 13 | 0CB3F065732C4D6637D6F5C2090FB114 /* Pods-PaintCodeKit_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6929038080EE1E80A294A3229F294298 /* Pods-PaintCodeKit_Example-dummy.m */; }; 14 | 71D57E0BDCEA45A0453AE777BD16EB64 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 40CB39E715FBCDAA142E6513E126200A /* Foundation.framework */; }; 15 | 9924B8B34016DA5C46BFB3D15CDFB6C7 /* PaintCodeImages.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3645C7EFBCF4EF7F732309AFCE95E3CD /* PaintCodeImages.swift */; }; 16 | AF7BBC70C8CB148730F0AE1449041924 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ECF2A2B0720AE923C22BED3192888BE0 /* UIKit.framework */; }; 17 | B46CDA97F0C9570566389FB491EDD7F6 /* User.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3A8D6629A5F086C897B641650AE44CA /* User.swift */; }; 18 | CE408FDAAB921C57192A4EDB87F90345 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 40CB39E715FBCDAA142E6513E126200A /* Foundation.framework */; }; 19 | E266D4CD2714A1D3773E7F18C3AA2161 /* PaintCodeImage.swift in Sources */ = {isa = PBXBuildFile; fileRef = E5BC8A34ADA7B1767D72A405C7AFF746 /* PaintCodeImage.swift */; }; 20 | EB7CC8DF867998FA908BB9CAFCBE9D54 /* PaintCodeManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = F867E86D869A68D9BE78AC6204BC668C /* PaintCodeManager.swift */; }; 21 | FBDCEE6A664A0291CAE68E227AD07981 /* Pods-PaintCodeKit_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 1082428D53885CD11C64B96A445CBA42 /* Pods-PaintCodeKit_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXContainerItemProxy section */ 25 | B7221EF3B50FA8B5506559C179D49CF2 /* PBXContainerItemProxy */ = { 26 | isa = PBXContainerItemProxy; 27 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 28 | proxyType = 1; 29 | remoteGlobalIDString = 69FBA3C790D69769F5F90CD35824C75E; 30 | remoteInfo = PaintCodeKit; 31 | }; 32 | /* End PBXContainerItemProxy section */ 33 | 34 | /* Begin PBXFileReference section */ 35 | 014BDC20B3107C409825075C5F3A06AB /* PaintCodeKit-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "PaintCodeKit-Info.plist"; sourceTree = ""; }; 36 | 1082428D53885CD11C64B96A445CBA42 /* Pods-PaintCodeKit_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-PaintCodeKit_Example-umbrella.h"; sourceTree = ""; }; 37 | 15CEF1C0EA7AB03FCE5D13B6E08AB0D2 /* PaintCodeKit-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "PaintCodeKit-dummy.m"; sourceTree = ""; }; 38 | 29DD8A6871D48921A6ACC927540F6F96 /* Pods-PaintCodeKit_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-PaintCodeKit_Example-frameworks.sh"; sourceTree = ""; }; 39 | 3645C7EFBCF4EF7F732309AFCE95E3CD /* PaintCodeImages.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PaintCodeImages.swift; path = PaintCodeKit/Classes/PaintCodeImages.swift; sourceTree = ""; }; 40 | 3BC4CCCA02DCC108A78695315BAC5472 /* PaintCodeKit-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "PaintCodeKit-umbrella.h"; sourceTree = ""; }; 41 | 40CB39E715FBCDAA142E6513E126200A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 42 | 60240FF5838BB481D795F3393E2148B0 /* Pods_PaintCodeKit_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_PaintCodeKit_Example.framework; path = "Pods-PaintCodeKit_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 6326526DD5CCCBF2A4826E0F0E3027F1 /* UIImageView+PaintCodeKit.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = "UIImageView+PaintCodeKit.swift"; sourceTree = ""; }; 44 | 6929038080EE1E80A294A3229F294298 /* Pods-PaintCodeKit_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-PaintCodeKit_Example-dummy.m"; sourceTree = ""; }; 45 | 7299CD5671363E1D31CF21D1B94A72C5 /* Pods-PaintCodeKit_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-PaintCodeKit_Example.release.xcconfig"; sourceTree = ""; }; 46 | 73D8492011BB80E62771E233A3BC2294 /* PaintCodeKit.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = PaintCodeKit.modulemap; sourceTree = ""; }; 47 | 8191D5675FB8D9FF00435698FDE3A2CD /* PaintCodeKit.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = PaintCodeKit.xcconfig; sourceTree = ""; }; 48 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 49 | A1D6081E3A2A3B07A295AD64778CC9A3 /* Pods-PaintCodeKit_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-PaintCodeKit_Example.debug.xcconfig"; sourceTree = ""; }; 50 | ABCC4332111A26F4EC0B7C6FF7FA1EC3 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; 51 | AD4E09E0A8E90A34049341A539C32184 /* PaintCodeKit.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = PaintCodeKit.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 52 | BE6AA53F61AD9B0D70F95FA9AC515548 /* Pods-PaintCodeKit_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-PaintCodeKit_Example-Info.plist"; sourceTree = ""; }; 53 | D0B75A11A11DE0890715A7974DE82206 /* PaintCodeKit-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "PaintCodeKit-prefix.pch"; sourceTree = ""; }; 54 | D3A8D6629A5F086C897B641650AE44CA /* User.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = User.swift; sourceTree = ""; }; 55 | D6304829B96238E2020CAB8031F4208E /* Pods-PaintCodeKit_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-PaintCodeKit_Example.modulemap"; sourceTree = ""; }; 56 | DC6DD0A3755CB915057224BC7ED1C6F5 /* Pods-PaintCodeKit_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-PaintCodeKit_Example-acknowledgements.markdown"; sourceTree = ""; }; 57 | E5BC8A34ADA7B1767D72A405C7AFF746 /* PaintCodeImage.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PaintCodeImage.swift; path = PaintCodeKit/Classes/PaintCodeImage.swift; sourceTree = ""; }; 58 | E9D9149BFDC65D304A4F02BC25BE81F9 /* PaintCodeKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = PaintCodeKit.framework; path = PaintCodeKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | ECF2A2B0720AE923C22BED3192888BE0 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 60 | EFD501CCEA349FF0A594AB55E359C226 /* Pods-PaintCodeKit_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-PaintCodeKit_Example-acknowledgements.plist"; sourceTree = ""; }; 61 | F6050F3C12BEC527D6AD9EBF0E42795F /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; 62 | F867E86D869A68D9BE78AC6204BC668C /* PaintCodeManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PaintCodeManager.swift; path = PaintCodeKit/Classes/PaintCodeManager.swift; sourceTree = ""; }; 63 | /* End PBXFileReference section */ 64 | 65 | /* Begin PBXFrameworksBuildPhase section */ 66 | 435882EBC251F753D75E183C14022213 /* Frameworks */ = { 67 | isa = PBXFrameworksBuildPhase; 68 | buildActionMask = 2147483647; 69 | files = ( 70 | CE408FDAAB921C57192A4EDB87F90345 /* Foundation.framework in Frameworks */, 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | C6AB6A5FCE34C11582EAE816A4B201E6 /* Frameworks */ = { 75 | isa = PBXFrameworksBuildPhase; 76 | buildActionMask = 2147483647; 77 | files = ( 78 | 71D57E0BDCEA45A0453AE777BD16EB64 /* Foundation.framework in Frameworks */, 79 | AF7BBC70C8CB148730F0AE1449041924 /* UIKit.framework in Frameworks */, 80 | ); 81 | runOnlyForDeploymentPostprocessing = 0; 82 | }; 83 | /* End PBXFrameworksBuildPhase section */ 84 | 85 | /* Begin PBXGroup section */ 86 | 1628BF05B4CAFDCC3549A101F5A10A17 /* Frameworks */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | E169A450ED27AC725DF52953F66D11E0 /* iOS */, 90 | ); 91 | name = Frameworks; 92 | sourceTree = ""; 93 | }; 94 | 22D59F1980FF889AE831A6B8BA3D5B09 /* Support Files */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 73D8492011BB80E62771E233A3BC2294 /* PaintCodeKit.modulemap */, 98 | 8191D5675FB8D9FF00435698FDE3A2CD /* PaintCodeKit.xcconfig */, 99 | 15CEF1C0EA7AB03FCE5D13B6E08AB0D2 /* PaintCodeKit-dummy.m */, 100 | 014BDC20B3107C409825075C5F3A06AB /* PaintCodeKit-Info.plist */, 101 | D0B75A11A11DE0890715A7974DE82206 /* PaintCodeKit-prefix.pch */, 102 | 3BC4CCCA02DCC108A78695315BAC5472 /* PaintCodeKit-umbrella.h */, 103 | ); 104 | name = "Support Files"; 105 | path = "Example/Pods/Target Support Files/PaintCodeKit"; 106 | sourceTree = ""; 107 | }; 108 | 25D2423F4F785EC895C9841872A6787F /* Resources */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | D3A8D6629A5F086C897B641650AE44CA /* User.swift */, 112 | ); 113 | name = Resources; 114 | path = PaintCodeKit/Classes/Resources; 115 | sourceTree = ""; 116 | }; 117 | 266DCBDE2A8D4896F4BA361F81CE3F4A /* PaintCodeKit */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | E5BC8A34ADA7B1767D72A405C7AFF746 /* PaintCodeImage.swift */, 121 | 3645C7EFBCF4EF7F732309AFCE95E3CD /* PaintCodeImages.swift */, 122 | F867E86D869A68D9BE78AC6204BC668C /* PaintCodeManager.swift */, 123 | FD6B5174FFFFB50A87B97C07BE44A908 /* Extensions */, 124 | B54D94D80767631B023AA51EEFED4671 /* Pod */, 125 | 25D2423F4F785EC895C9841872A6787F /* Resources */, 126 | 22D59F1980FF889AE831A6B8BA3D5B09 /* Support Files */, 127 | ); 128 | name = PaintCodeKit; 129 | path = ../..; 130 | sourceTree = ""; 131 | }; 132 | 3210898BBE670EFA96421A5A27C70C25 /* Pods-PaintCodeKit_Example */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | D6304829B96238E2020CAB8031F4208E /* Pods-PaintCodeKit_Example.modulemap */, 136 | DC6DD0A3755CB915057224BC7ED1C6F5 /* Pods-PaintCodeKit_Example-acknowledgements.markdown */, 137 | EFD501CCEA349FF0A594AB55E359C226 /* Pods-PaintCodeKit_Example-acknowledgements.plist */, 138 | 6929038080EE1E80A294A3229F294298 /* Pods-PaintCodeKit_Example-dummy.m */, 139 | 29DD8A6871D48921A6ACC927540F6F96 /* Pods-PaintCodeKit_Example-frameworks.sh */, 140 | BE6AA53F61AD9B0D70F95FA9AC515548 /* Pods-PaintCodeKit_Example-Info.plist */, 141 | 1082428D53885CD11C64B96A445CBA42 /* Pods-PaintCodeKit_Example-umbrella.h */, 142 | A1D6081E3A2A3B07A295AD64778CC9A3 /* Pods-PaintCodeKit_Example.debug.xcconfig */, 143 | 7299CD5671363E1D31CF21D1B94A72C5 /* Pods-PaintCodeKit_Example.release.xcconfig */, 144 | ); 145 | name = "Pods-PaintCodeKit_Example"; 146 | path = "Target Support Files/Pods-PaintCodeKit_Example"; 147 | sourceTree = ""; 148 | }; 149 | 509487C16A842F61B1CF3F0C6E583499 /* Products */ = { 150 | isa = PBXGroup; 151 | children = ( 152 | E9D9149BFDC65D304A4F02BC25BE81F9 /* PaintCodeKit.framework */, 153 | 60240FF5838BB481D795F3393E2148B0 /* Pods_PaintCodeKit_Example.framework */, 154 | ); 155 | name = Products; 156 | sourceTree = ""; 157 | }; 158 | B54D94D80767631B023AA51EEFED4671 /* Pod */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | F6050F3C12BEC527D6AD9EBF0E42795F /* LICENSE */, 162 | AD4E09E0A8E90A34049341A539C32184 /* PaintCodeKit.podspec */, 163 | ABCC4332111A26F4EC0B7C6FF7FA1EC3 /* README.md */, 164 | ); 165 | name = Pod; 166 | sourceTree = ""; 167 | }; 168 | C090726FE6D58C11F2FCC08D7C3350CF /* Targets Support Files */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | 3210898BBE670EFA96421A5A27C70C25 /* Pods-PaintCodeKit_Example */, 172 | ); 173 | name = "Targets Support Files"; 174 | sourceTree = ""; 175 | }; 176 | CF1408CF629C7361332E53B88F7BD30C = { 177 | isa = PBXGroup; 178 | children = ( 179 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 180 | D8B7EADD83B70EB5D245544D53D9ADE9 /* Development Pods */, 181 | 1628BF05B4CAFDCC3549A101F5A10A17 /* Frameworks */, 182 | 509487C16A842F61B1CF3F0C6E583499 /* Products */, 183 | C090726FE6D58C11F2FCC08D7C3350CF /* Targets Support Files */, 184 | ); 185 | sourceTree = ""; 186 | }; 187 | D8B7EADD83B70EB5D245544D53D9ADE9 /* Development Pods */ = { 188 | isa = PBXGroup; 189 | children = ( 190 | 266DCBDE2A8D4896F4BA361F81CE3F4A /* PaintCodeKit */, 191 | ); 192 | name = "Development Pods"; 193 | sourceTree = ""; 194 | }; 195 | E169A450ED27AC725DF52953F66D11E0 /* iOS */ = { 196 | isa = PBXGroup; 197 | children = ( 198 | 40CB39E715FBCDAA142E6513E126200A /* Foundation.framework */, 199 | ECF2A2B0720AE923C22BED3192888BE0 /* UIKit.framework */, 200 | ); 201 | name = iOS; 202 | sourceTree = ""; 203 | }; 204 | FD6B5174FFFFB50A87B97C07BE44A908 /* Extensions */ = { 205 | isa = PBXGroup; 206 | children = ( 207 | 6326526DD5CCCBF2A4826E0F0E3027F1 /* UIImageView+PaintCodeKit.swift */, 208 | ); 209 | name = Extensions; 210 | path = PaintCodeKit/Classes/Extensions; 211 | sourceTree = ""; 212 | }; 213 | /* End PBXGroup section */ 214 | 215 | /* Begin PBXHeadersBuildPhase section */ 216 | 054B585CAD0F52935E5A892EBC27BA92 /* Headers */ = { 217 | isa = PBXHeadersBuildPhase; 218 | buildActionMask = 2147483647; 219 | files = ( 220 | FBDCEE6A664A0291CAE68E227AD07981 /* Pods-PaintCodeKit_Example-umbrella.h in Headers */, 221 | ); 222 | runOnlyForDeploymentPostprocessing = 0; 223 | }; 224 | 1A5F165641608B8F63038DEA185F896C /* Headers */ = { 225 | isa = PBXHeadersBuildPhase; 226 | buildActionMask = 2147483647; 227 | files = ( 228 | 073FCB6800110C5EB212C4715BAD3224 /* PaintCodeKit-umbrella.h in Headers */, 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | }; 232 | /* End PBXHeadersBuildPhase section */ 233 | 234 | /* Begin PBXNativeTarget section */ 235 | 2D8E396E818AAD60FE445588ADD4336B /* Pods-PaintCodeKit_Example */ = { 236 | isa = PBXNativeTarget; 237 | buildConfigurationList = 35D81028F443C375C8FDACB590C0673B /* Build configuration list for PBXNativeTarget "Pods-PaintCodeKit_Example" */; 238 | buildPhases = ( 239 | 054B585CAD0F52935E5A892EBC27BA92 /* Headers */, 240 | A087114AF700B2D95237FD860E3D37EC /* Sources */, 241 | 435882EBC251F753D75E183C14022213 /* Frameworks */, 242 | 5B8734F42C3D48D55EF0E0C49D093256 /* Resources */, 243 | ); 244 | buildRules = ( 245 | ); 246 | dependencies = ( 247 | A91A1F7929712A45145F717A06232984 /* PBXTargetDependency */, 248 | ); 249 | name = "Pods-PaintCodeKit_Example"; 250 | productName = "Pods-PaintCodeKit_Example"; 251 | productReference = 60240FF5838BB481D795F3393E2148B0 /* Pods_PaintCodeKit_Example.framework */; 252 | productType = "com.apple.product-type.framework"; 253 | }; 254 | 69FBA3C790D69769F5F90CD35824C75E /* PaintCodeKit */ = { 255 | isa = PBXNativeTarget; 256 | buildConfigurationList = C135C9B3BCDBBF61D26AF4CBA7AF8DDF /* Build configuration list for PBXNativeTarget "PaintCodeKit" */; 257 | buildPhases = ( 258 | 1A5F165641608B8F63038DEA185F896C /* Headers */, 259 | 7B1EA62E504BE909B0BFD924B7F74E41 /* Sources */, 260 | C6AB6A5FCE34C11582EAE816A4B201E6 /* Frameworks */, 261 | 19440D9D9B9548ED94B8403BE15C7993 /* Resources */, 262 | ); 263 | buildRules = ( 264 | ); 265 | dependencies = ( 266 | ); 267 | name = PaintCodeKit; 268 | productName = PaintCodeKit; 269 | productReference = E9D9149BFDC65D304A4F02BC25BE81F9 /* PaintCodeKit.framework */; 270 | productType = "com.apple.product-type.framework"; 271 | }; 272 | /* End PBXNativeTarget section */ 273 | 274 | /* Begin PBXProject section */ 275 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 276 | isa = PBXProject; 277 | attributes = { 278 | LastSwiftUpdateCheck = 0930; 279 | LastUpgradeCheck = 0930; 280 | }; 281 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 282 | compatibilityVersion = "Xcode 3.2"; 283 | developmentRegion = English; 284 | hasScannedForEncodings = 0; 285 | knownRegions = ( 286 | en, 287 | ); 288 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 289 | productRefGroup = 509487C16A842F61B1CF3F0C6E583499 /* Products */; 290 | projectDirPath = ""; 291 | projectRoot = ""; 292 | targets = ( 293 | 69FBA3C790D69769F5F90CD35824C75E /* PaintCodeKit */, 294 | 2D8E396E818AAD60FE445588ADD4336B /* Pods-PaintCodeKit_Example */, 295 | ); 296 | }; 297 | /* End PBXProject section */ 298 | 299 | /* Begin PBXResourcesBuildPhase section */ 300 | 19440D9D9B9548ED94B8403BE15C7993 /* Resources */ = { 301 | isa = PBXResourcesBuildPhase; 302 | buildActionMask = 2147483647; 303 | files = ( 304 | ); 305 | runOnlyForDeploymentPostprocessing = 0; 306 | }; 307 | 5B8734F42C3D48D55EF0E0C49D093256 /* Resources */ = { 308 | isa = PBXResourcesBuildPhase; 309 | buildActionMask = 2147483647; 310 | files = ( 311 | ); 312 | runOnlyForDeploymentPostprocessing = 0; 313 | }; 314 | /* End PBXResourcesBuildPhase section */ 315 | 316 | /* Begin PBXSourcesBuildPhase section */ 317 | 7B1EA62E504BE909B0BFD924B7F74E41 /* Sources */ = { 318 | isa = PBXSourcesBuildPhase; 319 | buildActionMask = 2147483647; 320 | files = ( 321 | E266D4CD2714A1D3773E7F18C3AA2161 /* PaintCodeImage.swift in Sources */, 322 | 9924B8B34016DA5C46BFB3D15CDFB6C7 /* PaintCodeImages.swift in Sources */, 323 | 0ACDD1AB0B59B54291EAFCDAFA342272 /* PaintCodeKit-dummy.m in Sources */, 324 | EB7CC8DF867998FA908BB9CAFCBE9D54 /* PaintCodeManager.swift in Sources */, 325 | 027C8998913378072E8F419E011D90C4 /* UIImageView+PaintCodeKit.swift in Sources */, 326 | B46CDA97F0C9570566389FB491EDD7F6 /* User.swift in Sources */, 327 | ); 328 | runOnlyForDeploymentPostprocessing = 0; 329 | }; 330 | A087114AF700B2D95237FD860E3D37EC /* Sources */ = { 331 | isa = PBXSourcesBuildPhase; 332 | buildActionMask = 2147483647; 333 | files = ( 334 | 0CB3F065732C4D6637D6F5C2090FB114 /* Pods-PaintCodeKit_Example-dummy.m in Sources */, 335 | ); 336 | runOnlyForDeploymentPostprocessing = 0; 337 | }; 338 | /* End PBXSourcesBuildPhase section */ 339 | 340 | /* Begin PBXTargetDependency section */ 341 | A91A1F7929712A45145F717A06232984 /* PBXTargetDependency */ = { 342 | isa = PBXTargetDependency; 343 | name = PaintCodeKit; 344 | target = 69FBA3C790D69769F5F90CD35824C75E /* PaintCodeKit */; 345 | targetProxy = B7221EF3B50FA8B5506559C179D49CF2 /* PBXContainerItemProxy */; 346 | }; 347 | /* End PBXTargetDependency section */ 348 | 349 | /* Begin XCBuildConfiguration section */ 350 | 042F89D2552387CC689ACF3D19389589 /* Debug */ = { 351 | isa = XCBuildConfiguration; 352 | baseConfigurationReference = A1D6081E3A2A3B07A295AD64778CC9A3 /* Pods-PaintCodeKit_Example.debug.xcconfig */; 353 | buildSettings = { 354 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 355 | CLANG_ENABLE_OBJC_WEAK = NO; 356 | CODE_SIGN_IDENTITY = ""; 357 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 358 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 359 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 360 | CURRENT_PROJECT_VERSION = 1; 361 | DEFINES_MODULE = YES; 362 | DYLIB_COMPATIBILITY_VERSION = 1; 363 | DYLIB_CURRENT_VERSION = 1; 364 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 365 | INFOPLIST_FILE = "Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example-Info.plist"; 366 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 367 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 368 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 369 | MACH_O_TYPE = staticlib; 370 | MODULEMAP_FILE = "Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example.modulemap"; 371 | OTHER_LDFLAGS = ""; 372 | OTHER_LIBTOOLFLAGS = ""; 373 | PODS_ROOT = "$(SRCROOT)"; 374 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 375 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 376 | SDKROOT = iphoneos; 377 | SKIP_INSTALL = YES; 378 | TARGETED_DEVICE_FAMILY = "1,2"; 379 | VERSIONING_SYSTEM = "apple-generic"; 380 | VERSION_INFO_PREFIX = ""; 381 | }; 382 | name = Debug; 383 | }; 384 | 1BF0FE2ECE04BB455927E2853B0697EE /* Debug */ = { 385 | isa = XCBuildConfiguration; 386 | baseConfigurationReference = 8191D5675FB8D9FF00435698FDE3A2CD /* PaintCodeKit.xcconfig */; 387 | buildSettings = { 388 | CLANG_ENABLE_OBJC_WEAK = NO; 389 | CODE_SIGN_IDENTITY = ""; 390 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 391 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 392 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 393 | CURRENT_PROJECT_VERSION = 1; 394 | DEFINES_MODULE = YES; 395 | DYLIB_COMPATIBILITY_VERSION = 1; 396 | DYLIB_CURRENT_VERSION = 1; 397 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 398 | GCC_PREFIX_HEADER = "Target Support Files/PaintCodeKit/PaintCodeKit-prefix.pch"; 399 | INFOPLIST_FILE = "Target Support Files/PaintCodeKit/PaintCodeKit-Info.plist"; 400 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 401 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 402 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 403 | MODULEMAP_FILE = "Target Support Files/PaintCodeKit/PaintCodeKit.modulemap"; 404 | PRODUCT_MODULE_NAME = PaintCodeKit; 405 | PRODUCT_NAME = PaintCodeKit; 406 | SDKROOT = iphoneos; 407 | SKIP_INSTALL = YES; 408 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 409 | SWIFT_VERSION = 5.0; 410 | TARGETED_DEVICE_FAMILY = "1,2"; 411 | VERSIONING_SYSTEM = "apple-generic"; 412 | VERSION_INFO_PREFIX = ""; 413 | }; 414 | name = Debug; 415 | }; 416 | 3048B0C5C704DFFF688DA57F5380ED58 /* Release */ = { 417 | isa = XCBuildConfiguration; 418 | buildSettings = { 419 | ALWAYS_SEARCH_USER_PATHS = NO; 420 | CLANG_ANALYZER_NONNULL = YES; 421 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 422 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 423 | CLANG_CXX_LIBRARY = "libc++"; 424 | CLANG_ENABLE_MODULES = YES; 425 | CLANG_ENABLE_OBJC_ARC = YES; 426 | CLANG_ENABLE_OBJC_WEAK = YES; 427 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 428 | CLANG_WARN_BOOL_CONVERSION = YES; 429 | CLANG_WARN_COMMA = YES; 430 | CLANG_WARN_CONSTANT_CONVERSION = YES; 431 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 432 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 433 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 434 | CLANG_WARN_EMPTY_BODY = YES; 435 | CLANG_WARN_ENUM_CONVERSION = YES; 436 | CLANG_WARN_INFINITE_RECURSION = YES; 437 | CLANG_WARN_INT_CONVERSION = YES; 438 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 439 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 440 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 441 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 442 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 443 | CLANG_WARN_STRICT_PROTOTYPES = YES; 444 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 445 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 446 | CLANG_WARN_UNREACHABLE_CODE = YES; 447 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 448 | COPY_PHASE_STRIP = NO; 449 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 450 | ENABLE_NS_ASSERTIONS = NO; 451 | ENABLE_STRICT_OBJC_MSGSEND = YES; 452 | GCC_C_LANGUAGE_STANDARD = gnu11; 453 | GCC_NO_COMMON_BLOCKS = YES; 454 | GCC_PREPROCESSOR_DEFINITIONS = ( 455 | "POD_CONFIGURATION_RELEASE=1", 456 | "$(inherited)", 457 | ); 458 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 459 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 460 | GCC_WARN_UNDECLARED_SELECTOR = YES; 461 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 462 | GCC_WARN_UNUSED_FUNCTION = YES; 463 | GCC_WARN_UNUSED_VARIABLE = YES; 464 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 465 | MTL_ENABLE_DEBUG_INFO = NO; 466 | MTL_FAST_MATH = YES; 467 | PRODUCT_NAME = "$(TARGET_NAME)"; 468 | STRIP_INSTALLED_PRODUCT = NO; 469 | SWIFT_COMPILATION_MODE = wholemodule; 470 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 471 | SWIFT_VERSION = 4.2; 472 | SYMROOT = "${SRCROOT}/../build"; 473 | }; 474 | name = Release; 475 | }; 476 | 5B0C8287D755FD95091CF35D87FB8B2D /* Debug */ = { 477 | isa = XCBuildConfiguration; 478 | buildSettings = { 479 | ALWAYS_SEARCH_USER_PATHS = NO; 480 | CLANG_ANALYZER_NONNULL = YES; 481 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 482 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 483 | CLANG_CXX_LIBRARY = "libc++"; 484 | CLANG_ENABLE_MODULES = YES; 485 | CLANG_ENABLE_OBJC_ARC = YES; 486 | CLANG_ENABLE_OBJC_WEAK = YES; 487 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 488 | CLANG_WARN_BOOL_CONVERSION = YES; 489 | CLANG_WARN_COMMA = YES; 490 | CLANG_WARN_CONSTANT_CONVERSION = YES; 491 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 492 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 493 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 494 | CLANG_WARN_EMPTY_BODY = YES; 495 | CLANG_WARN_ENUM_CONVERSION = YES; 496 | CLANG_WARN_INFINITE_RECURSION = YES; 497 | CLANG_WARN_INT_CONVERSION = YES; 498 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 499 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 500 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 501 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 502 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 503 | CLANG_WARN_STRICT_PROTOTYPES = YES; 504 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 505 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 506 | CLANG_WARN_UNREACHABLE_CODE = YES; 507 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 508 | COPY_PHASE_STRIP = NO; 509 | DEBUG_INFORMATION_FORMAT = dwarf; 510 | ENABLE_STRICT_OBJC_MSGSEND = YES; 511 | ENABLE_TESTABILITY = YES; 512 | GCC_C_LANGUAGE_STANDARD = gnu11; 513 | GCC_DYNAMIC_NO_PIC = NO; 514 | GCC_NO_COMMON_BLOCKS = YES; 515 | GCC_OPTIMIZATION_LEVEL = 0; 516 | GCC_PREPROCESSOR_DEFINITIONS = ( 517 | "POD_CONFIGURATION_DEBUG=1", 518 | "DEBUG=1", 519 | "$(inherited)", 520 | ); 521 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 522 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 523 | GCC_WARN_UNDECLARED_SELECTOR = YES; 524 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 525 | GCC_WARN_UNUSED_FUNCTION = YES; 526 | GCC_WARN_UNUSED_VARIABLE = YES; 527 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 528 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 529 | MTL_FAST_MATH = YES; 530 | ONLY_ACTIVE_ARCH = YES; 531 | PRODUCT_NAME = "$(TARGET_NAME)"; 532 | STRIP_INSTALLED_PRODUCT = NO; 533 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 534 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 535 | SWIFT_VERSION = 4.2; 536 | SYMROOT = "${SRCROOT}/../build"; 537 | }; 538 | name = Debug; 539 | }; 540 | A13CC1186C1D4058563F927F38E6532C /* Release */ = { 541 | isa = XCBuildConfiguration; 542 | baseConfigurationReference = 7299CD5671363E1D31CF21D1B94A72C5 /* Pods-PaintCodeKit_Example.release.xcconfig */; 543 | buildSettings = { 544 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 545 | CLANG_ENABLE_OBJC_WEAK = NO; 546 | CODE_SIGN_IDENTITY = ""; 547 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 548 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 549 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 550 | CURRENT_PROJECT_VERSION = 1; 551 | DEFINES_MODULE = YES; 552 | DYLIB_COMPATIBILITY_VERSION = 1; 553 | DYLIB_CURRENT_VERSION = 1; 554 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 555 | INFOPLIST_FILE = "Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example-Info.plist"; 556 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 557 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 558 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 559 | MACH_O_TYPE = staticlib; 560 | MODULEMAP_FILE = "Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example.modulemap"; 561 | OTHER_LDFLAGS = ""; 562 | OTHER_LIBTOOLFLAGS = ""; 563 | PODS_ROOT = "$(SRCROOT)"; 564 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 565 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 566 | SDKROOT = iphoneos; 567 | SKIP_INSTALL = YES; 568 | TARGETED_DEVICE_FAMILY = "1,2"; 569 | VALIDATE_PRODUCT = YES; 570 | VERSIONING_SYSTEM = "apple-generic"; 571 | VERSION_INFO_PREFIX = ""; 572 | }; 573 | name = Release; 574 | }; 575 | FF87D20FCC8AD89D1E1DA13AA01A5CD2 /* Release */ = { 576 | isa = XCBuildConfiguration; 577 | baseConfigurationReference = 8191D5675FB8D9FF00435698FDE3A2CD /* PaintCodeKit.xcconfig */; 578 | buildSettings = { 579 | CLANG_ENABLE_OBJC_WEAK = NO; 580 | CODE_SIGN_IDENTITY = ""; 581 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 582 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 583 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 584 | CURRENT_PROJECT_VERSION = 1; 585 | DEFINES_MODULE = YES; 586 | DYLIB_COMPATIBILITY_VERSION = 1; 587 | DYLIB_CURRENT_VERSION = 1; 588 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 589 | GCC_PREFIX_HEADER = "Target Support Files/PaintCodeKit/PaintCodeKit-prefix.pch"; 590 | INFOPLIST_FILE = "Target Support Files/PaintCodeKit/PaintCodeKit-Info.plist"; 591 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 592 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 593 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 594 | MODULEMAP_FILE = "Target Support Files/PaintCodeKit/PaintCodeKit.modulemap"; 595 | PRODUCT_MODULE_NAME = PaintCodeKit; 596 | PRODUCT_NAME = PaintCodeKit; 597 | SDKROOT = iphoneos; 598 | SKIP_INSTALL = YES; 599 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 600 | SWIFT_VERSION = 5.0; 601 | TARGETED_DEVICE_FAMILY = "1,2"; 602 | VALIDATE_PRODUCT = YES; 603 | VERSIONING_SYSTEM = "apple-generic"; 604 | VERSION_INFO_PREFIX = ""; 605 | }; 606 | name = Release; 607 | }; 608 | /* End XCBuildConfiguration section */ 609 | 610 | /* Begin XCConfigurationList section */ 611 | 35D81028F443C375C8FDACB590C0673B /* Build configuration list for PBXNativeTarget "Pods-PaintCodeKit_Example" */ = { 612 | isa = XCConfigurationList; 613 | buildConfigurations = ( 614 | 042F89D2552387CC689ACF3D19389589 /* Debug */, 615 | A13CC1186C1D4058563F927F38E6532C /* Release */, 616 | ); 617 | defaultConfigurationIsVisible = 0; 618 | defaultConfigurationName = Release; 619 | }; 620 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 621 | isa = XCConfigurationList; 622 | buildConfigurations = ( 623 | 5B0C8287D755FD95091CF35D87FB8B2D /* Debug */, 624 | 3048B0C5C704DFFF688DA57F5380ED58 /* Release */, 625 | ); 626 | defaultConfigurationIsVisible = 0; 627 | defaultConfigurationName = Release; 628 | }; 629 | C135C9B3BCDBBF61D26AF4CBA7AF8DDF /* Build configuration list for PBXNativeTarget "PaintCodeKit" */ = { 630 | isa = XCConfigurationList; 631 | buildConfigurations = ( 632 | 1BF0FE2ECE04BB455927E2853B0697EE /* Debug */, 633 | FF87D20FCC8AD89D1E1DA13AA01A5CD2 /* Release */, 634 | ); 635 | defaultConfigurationIsVisible = 0; 636 | defaultConfigurationName = Release; 637 | }; 638 | /* End XCConfigurationList section */ 639 | }; 640 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 641 | } 642 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/PaintCodeKit/PaintCodeKit-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 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/PaintCodeKit/PaintCodeKit-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_PaintCodeKit : NSObject 3 | @end 4 | @implementation PodsDummy_PaintCodeKit 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/PaintCodeKit/PaintCodeKit-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/PaintCodeKit/PaintCodeKit-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 PaintCodeKitVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char PaintCodeKitVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/PaintCodeKit/PaintCodeKit.modulemap: -------------------------------------------------------------------------------- 1 | framework module PaintCodeKit { 2 | umbrella header "PaintCodeKit-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/PaintCodeKit/PaintCodeKit.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/PaintCodeKit 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_LDFLAGS = $(inherited) -framework "UIKit" 4 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## PaintCodeKit 5 | 6 | Copyright (c) 2019 alberdev 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2019 alberdev <albertokr@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | PaintCodeKit 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_PaintCodeKit_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_PaintCodeKit_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | 23 | # Used as a return value for each invocation of `strip_invalid_archs` function. 24 | STRIP_BINARY_RETVAL=0 25 | 26 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 27 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 28 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 29 | 30 | # Copies and strips a vendored framework 31 | install_framework() 32 | { 33 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 34 | local source="${BUILT_PRODUCTS_DIR}/$1" 35 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 36 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 37 | elif [ -r "$1" ]; then 38 | local source="$1" 39 | fi 40 | 41 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 42 | 43 | if [ -L "${source}" ]; then 44 | echo "Symlinked..." 45 | source="$(readlink "${source}")" 46 | fi 47 | 48 | # Use filter instead of exclude so missing patterns don't throw errors. 49 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 50 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 51 | 52 | local basename 53 | basename="$(basename -s .framework "$1")" 54 | binary="${destination}/${basename}.framework/${basename}" 55 | 56 | if ! [ -r "$binary" ]; then 57 | binary="${destination}/${basename}" 58 | elif [ -L "${binary}" ]; then 59 | echo "Destination binary is symlinked..." 60 | dirname="$(dirname "${binary}")" 61 | binary="${dirname}/$(readlink "${binary}")" 62 | fi 63 | 64 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 65 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 66 | strip_invalid_archs "$binary" 67 | fi 68 | 69 | # Resign the code if required by the build settings to avoid unstable apps 70 | code_sign_if_enabled "${destination}/$(basename "$1")" 71 | 72 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 73 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 74 | local swift_runtime_libs 75 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 76 | for lib in $swift_runtime_libs; do 77 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 78 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 79 | code_sign_if_enabled "${destination}/${lib}" 80 | done 81 | fi 82 | } 83 | 84 | # Copies and strips a vendored dSYM 85 | install_dsym() { 86 | local source="$1" 87 | if [ -r "$source" ]; then 88 | # Copy the dSYM into a the targets temp dir. 89 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 90 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 91 | 92 | local basename 93 | basename="$(basename -s .framework.dSYM "$source")" 94 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 95 | 96 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 97 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 98 | strip_invalid_archs "$binary" 99 | fi 100 | 101 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 102 | # Move the stripped file into its final destination. 103 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 104 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 105 | else 106 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 107 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 108 | fi 109 | fi 110 | } 111 | 112 | # Copies the bcsymbolmap files of a vendored framework 113 | install_bcsymbolmap() { 114 | local bcsymbolmap_path="$1" 115 | local destination="${BUILT_PRODUCTS_DIR}" 116 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 117 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 118 | } 119 | 120 | # Signs a framework with the provided identity 121 | code_sign_if_enabled() { 122 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 123 | # Use the current code_sign_identity 124 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 125 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 126 | 127 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 128 | code_sign_cmd="$code_sign_cmd &" 129 | fi 130 | echo "$code_sign_cmd" 131 | eval "$code_sign_cmd" 132 | fi 133 | } 134 | 135 | # Strip invalid architectures 136 | strip_invalid_archs() { 137 | binary="$1" 138 | # Get architectures for current target binary 139 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 140 | # Intersect them with the architectures we are building for 141 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 142 | # If there are no archs supported by this binary then warn the user 143 | if [[ -z "$intersected_archs" ]]; then 144 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 145 | STRIP_BINARY_RETVAL=0 146 | return 147 | fi 148 | stripped="" 149 | for arch in $binary_archs; do 150 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 151 | # Strip non-valid architectures in-place 152 | lipo -remove "$arch" -output "$binary" "$binary" 153 | stripped="$stripped $arch" 154 | fi 155 | done 156 | if [[ "$stripped" ]]; then 157 | echo "Stripped $binary of architectures:$stripped" 158 | fi 159 | STRIP_BINARY_RETVAL=1 160 | } 161 | 162 | 163 | if [[ "$CONFIGURATION" == "Debug" ]]; then 164 | install_framework "${BUILT_PRODUCTS_DIR}/PaintCodeKit/PaintCodeKit.framework" 165 | fi 166 | if [[ "$CONFIGURATION" == "Release" ]]; then 167 | install_framework "${BUILT_PRODUCTS_DIR}/PaintCodeKit/PaintCodeKit.framework" 168 | fi 169 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 170 | wait 171 | fi 172 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_PaintCodeKit_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_PaintCodeKit_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/PaintCodeKit" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/PaintCodeKit/PaintCodeKit.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "PaintCodeKit" -framework "UIKit" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_PaintCodeKit_Example { 2 | umbrella header "Pods-PaintCodeKit_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PaintCodeKit_Example/Pods-PaintCodeKit_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/PaintCodeKit" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/PaintCodeKit/PaintCodeKit.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "PaintCodeKit" -framework "UIKit" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import PaintCodeKit 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /Example/_data.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Example/_data.txt -------------------------------------------------------------------------------- /Example/files/user.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Example/files_data.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Example/files_data.txt -------------------------------------------------------------------------------- /Example/output_data.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Example/output_data.txt -------------------------------------------------------------------------------- /Images/Icons/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Images/Icons/user.png -------------------------------------------------------------------------------- /Images/Pods/AnimatedField.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Images/Pods/AnimatedField.png -------------------------------------------------------------------------------- /Images/Pods/CiaoTransitions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Images/Pods/CiaoTransitions.png -------------------------------------------------------------------------------- /Images/Pods/ContentLoader.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Images/Pods/ContentLoader.png -------------------------------------------------------------------------------- /Images/Pods/DateScrollPicker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Images/Pods/DateScrollPicker.png -------------------------------------------------------------------------------- /Images/Pods/EmptyStateKit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Images/Pods/EmptyStateKit.png -------------------------------------------------------------------------------- /Images/Pods/GridTimerView.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Images/Pods/GridTimerView.png -------------------------------------------------------------------------------- /Images/Pods/PaintCodeKit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Images/Pods/PaintCodeKit.png -------------------------------------------------------------------------------- /Images/header_PaintCodeKit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/Images/header_PaintCodeKit.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2019 alberdev 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /PaintCodeKit.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint PaintCodeKit.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | 11 | # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 12 | 13 | s.platform = :ios 14 | s.ios.deployment_target = '10.0' 15 | s.name = 'PaintCodeKit' 16 | s.summary = 'PaintCode turn your images into Swift code, PaintCodeKit helps you to add them in your views!' 17 | s.description = 'PaintCodeKit manage your converted images in PaintCode. You will be able to use your images directly in the views using extensions with correct sizes. Use it to maintain your code clean! ' 18 | s.version = '1.0.0' 19 | 20 | # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 21 | 22 | s.license = { :type => 'MIT', :file => 'LICENSE' } 23 | 24 | # ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 25 | 26 | s.author = { 'Alberto Aznar' => 'info@alberdev.com' } 27 | s.homepage = 'https://github.com/alberdev/PaintCodeKit' 28 | s.social_media_url = 'https://twitter.com/alberdev' 29 | 30 | # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 31 | 32 | s.source = { :git => 'https://github.com/alberdev/PaintCodeKit.git', :tag => s.version.to_s } 33 | 34 | # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 35 | 36 | s.framework = 'UIKit' 37 | # s.dependency 'AFNetworking', '~> 2.3' 38 | 39 | # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 40 | 41 | s.source_files = 'PaintCodeKit/**/*' 42 | 43 | # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 44 | 45 | # s.resources = 'PaintCodeKit/Resources/**/*.{png,jpeg,jpg,storyboard,xib,xcassets}' 46 | 47 | # ――― Swift Version ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 48 | 49 | s.swift_version = '5.0' 50 | 51 | end 52 | -------------------------------------------------------------------------------- /PaintCodeKit/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/PaintCodeKit/Assets/.gitkeep -------------------------------------------------------------------------------- /PaintCodeKit/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alberdev/PaintCodeKit/01c99d0a68ba7b0e9792f553f6ae930c9183b86d/PaintCodeKit/Classes/.gitkeep -------------------------------------------------------------------------------- /PaintCodeKit/Classes/Extensions/UIImageView+PaintCodeKit.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIImageView+PaintCodeKit.swift 3 | // PaintCodeKit 4 | // 5 | // Created by Alberto Aznar de los Ríos on 04/05/2019. 6 | // 7 | 8 | import UIKit 9 | 10 | public extension UIImageView { 11 | 12 | var size: CGSize { 13 | return frame.size 14 | } 15 | 16 | func draw(_ name: PaintCodeDraw, size: CGSize? = nil, color: UIColor? = nil, cached: Bool? = nil) { 17 | var usedSize = self.size 18 | if let size = size { usedSize = size } 19 | image = PaintCodeManager.shared.obtainImage(name, size: usedSize, color: color, cached: cached) 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /PaintCodeKit/Classes/PaintCodeImage.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PaintCodeImage.swift 3 | // PaintCodeKit 4 | // 5 | // Created by Alberto Aznar de los Ríos on 04/05/2019. 6 | // 7 | 8 | import Foundation 9 | 10 | public protocol PaintCodeDraw { 11 | func draw(size: CGSize, color: UIColor) 12 | } 13 | 14 | extension PaintCodeDraw { 15 | 16 | var description: String { 17 | return "\(type(of: self)).\(self.self)" 18 | } 19 | } 20 | 21 | public enum PaintCodeImage: String, PaintCodeDraw { 22 | 23 | case user 24 | 25 | public func draw(size: CGSize, color: UIColor) { 26 | switch self { 27 | case .user: PaintCodeImages.drawUser(frame: CGRect(origin: .zero, size: size), resizing: .aspectFit, color: color) 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /PaintCodeKit/Classes/PaintCodeImages.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PaintCodeImages.swift 3 | // PaintCodeKit 4 | // 5 | // Created by Alberto Aznar de los Ríos on 04/05/2019. 6 | // 7 | 8 | import UIKit 9 | 10 | open class PaintCodeImages { 11 | 12 | //MARK: - Resizing Behavior 13 | public enum ResizingBehavior { 14 | case aspectFit /// The content is proportionally resized to fit into the target rectangle. 15 | case aspectFill /// The content is proportionally resized to completely fill the target rectangle. 16 | case stretch /// The content is stretched to match the entire target rectangle. 17 | case center /// The content is centered in the target rectangle, but it is NOT resized. 18 | 19 | public func apply(rect: CGRect, target: CGRect) -> CGRect { 20 | if rect == target || target == CGRect.zero { 21 | return rect 22 | } 23 | 24 | var scales = CGSize.zero 25 | scales.width = abs(target.width / rect.width) 26 | scales.height = abs(target.height / rect.height) 27 | 28 | switch self { 29 | case .aspectFit: 30 | scales.width = min(scales.width, scales.height) 31 | scales.height = scales.width 32 | case .aspectFill: 33 | scales.width = max(scales.width, scales.height) 34 | scales.height = scales.width 35 | case .stretch: 36 | break 37 | case .center: 38 | scales.width = 1 39 | scales.height = 1 40 | } 41 | 42 | var result = rect.standardized 43 | result.size.width *= scales.width 44 | result.size.height *= scales.height 45 | result.origin.x = target.minX + (target.width - result.width) / 2 46 | result.origin.y = target.minY + (target.height - result.height) / 2 47 | return result 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /PaintCodeKit/Classes/PaintCodeManager.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PaintCodeManager.swift 3 | // PaintCodeKit 4 | // 5 | // Created by Alberto Aznar de los Ríos on 04/05/2019. 6 | // 7 | 8 | import Foundation 9 | 10 | public class PaintCodeManager { 11 | 12 | public static let shared = PaintCodeManager() 13 | 14 | // Default values 15 | public var defaultSize = CGSize(width: 30, height: 30) 16 | public var defaultColor = UIColor.black 17 | public var defaultCached = true 18 | 19 | // Cached images 20 | struct LocalCache { 21 | var name: String 22 | var image: UIImage 23 | } 24 | 25 | private var images = [LocalCache]() 26 | 27 | init(){} 28 | 29 | func obtainImage(_ name: PaintCodeDraw, size: CGSize? = nil, color: UIColor? = nil, cached: Bool? = nil) -> UIImage { 30 | 31 | // Local cache images 32 | if cached ?? true, let cache = images.first(where: { $0.name == name.description }) { 33 | return cache.image 34 | } 35 | 36 | var image: UIImage 37 | UIGraphicsBeginImageContextWithOptions(size ?? defaultSize, false, 0) 38 | name.draw(size: size ?? defaultSize, color: color ?? defaultColor) 39 | image = UIGraphicsGetImageFromCurrentImageContext()! 40 | UIGraphicsEndImageContext() 41 | 42 | if cached ?? true { 43 | images.append(LocalCache(name: name.description, image: image)) 44 | } 45 | 46 | return image 47 | } 48 | } 49 | 50 | extension PaintCodeManager { 51 | 52 | public static func image(_ name: PaintCodeDraw, size: CGSize? = nil, color: UIColor? = nil, cached: Bool? = nil) -> UIImage { 53 | return self.shared.obtainImage(name, size: size, color: color, cached: cached) 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /PaintCodeKit/Classes/Resources/User.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UserDraw.swift 3 | // PaintCodeKit 4 | // 5 | // Created by Alberto Aznar de los Ríos on 04/05/2019. 6 | // 7 | 8 | import UIKit 9 | 10 | extension PaintCodeImages { 11 | 12 | class func drawUser(frame targetFrame: CGRect = CGRect(x: 0, y: 0, width: 26, height: 26), resizing: ResizingBehavior = .aspectFit, color: UIColor = .darkGray) { 13 | /// General Declarations 14 | let context = UIGraphicsGetCurrentContext()! 15 | 16 | /// Resize to Target Frame 17 | context.saveGState() 18 | let resizedFrame = resizing.apply(rect: CGRect(x: 0, y: 0, width: 24, height: 24), target: targetFrame) 19 | context.translateBy(x: resizedFrame.minX, y: resizedFrame.minY) 20 | context.scaleBy(x: resizedFrame.width / 24, y: resizedFrame.height / 24) 21 | 22 | /// Combined Shape 23 | let combinedShape = UIBezierPath() 24 | combinedShape.move(to: CGPoint(x: 18, y: 19)) 25 | combinedShape.addCurve(to: CGPoint(x: 17, y: 20), controlPoint1: CGPoint(x: 18, y: 19.55), controlPoint2: CGPoint(x: 17.55, y: 20)) 26 | combinedShape.addCurve(to: CGPoint(x: 16, y: 19), controlPoint1: CGPoint(x: 16.45, y: 20), controlPoint2: CGPoint(x: 16, y: 19.55)) 27 | combinedShape.addLine(to: CGPoint(x: 16, y: 17)) 28 | combinedShape.addCurve(to: CGPoint(x: 13, y: 14), controlPoint1: CGPoint(x: 16, y: 15.34), controlPoint2: CGPoint(x: 14.66, y: 14)) 29 | combinedShape.addLine(to: CGPoint(x: 5, y: 14)) 30 | combinedShape.addCurve(to: CGPoint(x: 2, y: 17), controlPoint1: CGPoint(x: 3.34, y: 14), controlPoint2: CGPoint(x: 2, y: 15.34)) 31 | combinedShape.addLine(to: CGPoint(x: 2, y: 19)) 32 | combinedShape.addCurve(to: CGPoint(x: 1, y: 20), controlPoint1: CGPoint(x: 2, y: 19.55), controlPoint2: CGPoint(x: 1.55, y: 20)) 33 | combinedShape.addCurve(to: CGPoint(x: 0, y: 19), controlPoint1: CGPoint(x: 0.45, y: 20), controlPoint2: CGPoint(x: 0, y: 19.55)) 34 | combinedShape.addLine(to: CGPoint(x: 0, y: 17)) 35 | combinedShape.addCurve(to: CGPoint(x: 5, y: 12), controlPoint1: CGPoint(x: 0, y: 14.24), controlPoint2: CGPoint(x: 2.24, y: 12)) 36 | combinedShape.addLine(to: CGPoint(x: 13, y: 12)) 37 | combinedShape.addCurve(to: CGPoint(x: 18, y: 17), controlPoint1: CGPoint(x: 15.76, y: 12), controlPoint2: CGPoint(x: 18, y: 14.24)) 38 | combinedShape.addLine(to: CGPoint(x: 18, y: 19)) 39 | combinedShape.close() 40 | combinedShape.move(to: CGPoint(x: 9, y: 10)) 41 | combinedShape.addCurve(to: CGPoint(x: 4, y: 5), controlPoint1: CGPoint(x: 6.24, y: 10), controlPoint2: CGPoint(x: 4, y: 7.76)) 42 | combinedShape.addCurve(to: CGPoint(x: 9, y: 0), controlPoint1: CGPoint(x: 4, y: 2.24), controlPoint2: CGPoint(x: 6.24, y: 0)) 43 | combinedShape.addCurve(to: CGPoint(x: 14, y: 5), controlPoint1: CGPoint(x: 11.76, y: 0), controlPoint2: CGPoint(x: 14, y: 2.24)) 44 | combinedShape.addCurve(to: CGPoint(x: 9, y: 10), controlPoint1: CGPoint(x: 14, y: 7.76), controlPoint2: CGPoint(x: 11.76, y: 10)) 45 | combinedShape.close() 46 | combinedShape.move(to: CGPoint(x: 9, y: 8)) 47 | combinedShape.addCurve(to: CGPoint(x: 12, y: 5), controlPoint1: CGPoint(x: 10.66, y: 8), controlPoint2: CGPoint(x: 12, y: 6.66)) 48 | combinedShape.addCurve(to: CGPoint(x: 9, y: 2), controlPoint1: CGPoint(x: 12, y: 3.34), controlPoint2: CGPoint(x: 10.66, y: 2)) 49 | combinedShape.addCurve(to: CGPoint(x: 6, y: 5), controlPoint1: CGPoint(x: 7.34, y: 2), controlPoint2: CGPoint(x: 6, y: 3.34)) 50 | combinedShape.addCurve(to: CGPoint(x: 9, y: 8), controlPoint1: CGPoint(x: 6, y: 6.66), controlPoint2: CGPoint(x: 7.34, y: 8)) 51 | combinedShape.close() 52 | context.saveGState() 53 | context.translateBy(x: 3, y: 2) 54 | color.setFill() 55 | combinedShape.fill() 56 | context.restoreGState() 57 | 58 | /// Combined Shape (Outline Mask) 59 | context.saveGState() 60 | combinedShape.apply(CGAffineTransform(translationX: 3, y: 2)) 61 | combinedShape.addClip() 62 | 63 | /// COLOR/ black 64 | // Warning: New symbols are not supported. 65 | 66 | context.restoreGState() 67 | // End Combined Shape (Outline Mask) 68 | 69 | context.restoreGState() 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 |

3 | PaintCodeKit  Logo 4 |

5 | 6 |

7 | 8 | Version 9 | 10 | 15 | 16 | License 17 | 18 | 19 | Swift 5.0 20 | 21 | 22 | Platform 23 | 24 | 29 | 30 | Twitter 31 | 32 | 33 |

34 | 35 |
36 | 37 |

38 | PaintCodeKit manage your converted images in PaintCode. You will be able to use your images directly in the views using extensions with correct sizes. Use it to maintain your code clean! 39 |

40 | 41 | 42 | # PaintCodeKit 43 | 44 | - [x] Import your code from PaintCodeKit 45 | - [x] Customizable images 46 | - [x] Clean code! 47 | - [x] Easy usage 48 | - [x] Supports iOS, developed in Swift 5 49 | 50 | ## Table of Contents 51 | 52 | - [Installation](#installation) 53 | - [Usage](#usage) 54 | - [Fill your UIImageView](#fillyouruiimageview) 55 | - [Generate a UIImage](#generateauiimage) 56 | - [Defaults](#defaults) 57 | - [Extra](#extra) 58 | - [Author](#author) 59 | - [Contributing](#contributing) 60 | - [License](#license) 61 | 62 | 63 | ## Installation 64 | 65 | PaintCodeKit is available through [CocoaPods](https://cocoapods.org). To install 66 | it, simply add the following line to your Podfile and run `pod install`: 67 | 68 | ```ruby 69 | pod 'PaintCodeKit' 70 | ``` 71 | 72 | Then you can import it when you need 73 | 74 | ```swift 75 | import PaintCodeKit 76 | ``` 77 | 78 | ## Usage 79 | 80 | In the example you can see how to include you own images in `UIImageViews` and how to create an `UIImage` with `PaintCodeManager`. Once you've installed the pod, follow next steps. It's really simple: 81 | 82 | ### Fill your UIImageView 83 | 84 | Use `PaintCodeImage` enum to fill with images preloaded in this pod. 85 | 86 | ```swift 87 | // This will get imageView frame to get default image size 88 | imageView.draw(PaintCodeImage.user) 89 | 90 | // Extended mode 91 | imageView.draw(PaintCodeImage.user, size: CGSize(width: 10, height: 10), color: .white, cached: true) 92 | ``` 93 | 94 | In other case, make your own enum type with `PaintCodeDraw` protocol implementing `draw` method. Follow next example: 95 | 96 | ```swift 97 | enum Icon: PaintCodeDraw { 98 | 99 | case shareApp 100 | case bell 101 | 102 | func draw(size: CGSize, color: UIColor) { 103 | switch self { 104 | case .shareApp: PaintCodeImages.drawShareApp(frame: CGRect(origin: .zero, size: size), resizing: .aspectFit) 105 | case .bell: PaintCodeImages.drawBell(frame: CGRect(origin: .zero, size: size), resizing: .aspectFit) 106 | } 107 | } 108 | } 109 | ``` 110 | 111 | As you can see above, `draw` method, will draw your custom image from PaintCode code. So you must extend `PaintCodeImages` and paste [PaintCode](https://www.paintcodeapp.com) code generated draw methods: 112 | 113 | ```swift 114 | extension PaintCodeImages { 115 | 116 | class func drawShareApp(frame targetFrame: CGRect = CGRect(x: 0, y: 0, width: 400, height: 400), resizing: ResizingBehavior = .aspectFit) { 117 | 118 | /// General Declarations 119 | let context = UIGraphicsGetCurrentContext()! 120 | 121 | /// Resize to Target Frame 122 | context.saveGState() 123 | let resizedFrame = resizing.apply(rect: CGRect(x: 0, y: 0, width: 24, height: 24), target: targetFrame) 124 | context.translateBy(x: resizedFrame.minX, y: resizedFrame.minY) 125 | context.scaleBy(x: resizedFrame.width / 24, y: resizedFrame.height / 24) 126 | 127 | /// Combined Shape 128 | let combinedShape = UIBezierPath() 129 | combinedShape.move(to: CGPoint(x: 10, y: 3.41)) 130 | combinedShape.addLine(to: CGPoint(x: 10, y: 14)) 131 | combinedShape.addCurve(to: CGPoint(x: 9, y: 15), controlPoint1: CGPoint(x: 10, y: 14.55), controlPoint2: CGPoint(x: 9.55, y: 15)) 132 | combinedShape.addCurve(to: CGPoint(x: 8, y: 14), controlPoint1: CGPoint(x: 8.45, y: 15), controlPoint2: CGPoint(x: 8, y: 14.55)) 133 | combinedShape.addLine(to: CGPoint(x: 8, y: 3.41)) 134 | [...] 135 | 136 | context.restoreGState() 137 | } 138 | } 139 | ``` 140 | 141 | 142 | ### Generate a UIImage 143 | 144 | Simple ;) 145 | 146 | ```swift 147 | let image = PaintCodeManager.image(PaintCodeImage.user) 148 | ``` 149 | 150 | 151 | ### Defaults 152 | 153 | You can change some default values in `PaintCodeManager`: 154 | 155 | ```swift 156 | /// Image size 157 | PaintCodeManager.shared.defaultSize = CGSize(width: 30, height: 30) 158 | 159 | /// Default image color 160 | PaintCodeManager.shared.defaultColor = UIColor.black 161 | 162 | /// Cache generated images 163 | PaintCodeManager.shared.defaultCached = true 164 | ``` 165 | 166 | ## Extra 167 | 168 | Also you can make use of anyone of the included images in `PaintCodeKit`. 169 | 170 | ```swift 171 | /// Example 172 | PaintCodeImage.user 173 | ``` 174 | 175 | | PaintCodeImage | Preview 176 | | ------- | :-------: 177 | | `.user` | 178 | 179 | ## Author 180 | 181 | Alberto Aznar, info@alberdev.com 182 | 183 | ## Contributing 184 | 185 | 1. Fork it! 186 | 2. Create your feature branch: `git checkout -b my-new-feature` 187 | 3. Commit your changes: `git commit -am 'Add some feature'` 188 | 4. Push to the branch: `git push origin my-new-feature` 189 | 5. Submit a pull request :D 190 | 191 | ## License 192 | 193 | PaintCodeKit is available under the MIT license. See the LICENSE file for more info. 194 | 195 | ## Libraries by @alberdev 196 | 197 | AnimatedField  Logo 198 | ContentLoader  Logo 199 | CiaoTransitions  Logo 200 | DateScrollPicker  Logo 201 | EmptyStateKit  Logo 202 | GridTimerView  Logo 203 | PaintCodeKit  Logo 204 | --------------------------------------------------------------------------------