├── README.md ├── home-hero-swift-hero_2x.png ├── swiftLogo ├── swiftLogo.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata │ │ │ └── loveyyn.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcuserdata │ │ └── loveyyn.xcuserdatad │ │ └── xcschemes │ │ ├── swiftLogo.xcscheme │ │ └── xcschememanagement.plist ├── swiftLogo │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── ViewController.swift │ └── swiftLogoLayer.swift └── swiftLogoTests │ ├── Info.plist │ └── swiftLogoTests.swift ├── swiftPath.svg └── swiftlogo.sketch /README.md: -------------------------------------------------------------------------------- 1 | # swiftLogo 2 | -------------------------------------------------------------------------------- /home-hero-swift-hero_2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShyHornet/swiftLogo/4ca202a4b9693fe8381150cd118c72689b5b893a/home-hero-swift-hero_2x.png -------------------------------------------------------------------------------- /swiftLogo/swiftLogo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 6E2699631B859BE700A63BF2 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E2699621B859BE700A63BF2 /* AppDelegate.swift */; }; 11 | 6E2699651B859BE700A63BF2 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E2699641B859BE700A63BF2 /* ViewController.swift */; }; 12 | 6E2699681B859BE700A63BF2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6E2699661B859BE700A63BF2 /* Main.storyboard */; }; 13 | 6E26996A1B859BE700A63BF2 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6E2699691B859BE700A63BF2 /* Images.xcassets */; }; 14 | 6E26996D1B859BE700A63BF2 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6E26996B1B859BE700A63BF2 /* LaunchScreen.xib */; }; 15 | 6E2699791B859BE700A63BF2 /* swiftLogoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E2699781B859BE700A63BF2 /* swiftLogoTests.swift */; }; 16 | 6E2699831B859C0300A63BF2 /* swiftLogoLayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E2699821B859C0300A63BF2 /* swiftLogoLayer.swift */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 6E2699731B859BE700A63BF2 /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 6E2699551B859BE700A63BF2 /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 6E26995C1B859BE700A63BF2; 25 | remoteInfo = swiftLogo; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 6E26995D1B859BE700A63BF2 /* swiftLogo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = swiftLogo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | 6E2699611B859BE700A63BF2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32 | 6E2699621B859BE700A63BF2 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 33 | 6E2699641B859BE700A63BF2 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 34 | 6E2699671B859BE700A63BF2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 35 | 6E2699691B859BE700A63BF2 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 36 | 6E26996C1B859BE700A63BF2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 37 | 6E2699721B859BE700A63BF2 /* swiftLogoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = swiftLogoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 38 | 6E2699771B859BE700A63BF2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 39 | 6E2699781B859BE700A63BF2 /* swiftLogoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = swiftLogoTests.swift; sourceTree = ""; }; 40 | 6E2699821B859C0300A63BF2 /* swiftLogoLayer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = swiftLogoLayer.swift; sourceTree = ""; }; 41 | /* End PBXFileReference section */ 42 | 43 | /* Begin PBXFrameworksBuildPhase section */ 44 | 6E26995A1B859BE700A63BF2 /* Frameworks */ = { 45 | isa = PBXFrameworksBuildPhase; 46 | buildActionMask = 2147483647; 47 | files = ( 48 | ); 49 | runOnlyForDeploymentPostprocessing = 0; 50 | }; 51 | 6E26996F1B859BE700A63BF2 /* Frameworks */ = { 52 | isa = PBXFrameworksBuildPhase; 53 | buildActionMask = 2147483647; 54 | files = ( 55 | ); 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | /* End PBXFrameworksBuildPhase section */ 59 | 60 | /* Begin PBXGroup section */ 61 | 6E2699541B859BE700A63BF2 = { 62 | isa = PBXGroup; 63 | children = ( 64 | 6E26995F1B859BE700A63BF2 /* swiftLogo */, 65 | 6E2699751B859BE700A63BF2 /* swiftLogoTests */, 66 | 6E26995E1B859BE700A63BF2 /* Products */, 67 | ); 68 | sourceTree = ""; 69 | }; 70 | 6E26995E1B859BE700A63BF2 /* Products */ = { 71 | isa = PBXGroup; 72 | children = ( 73 | 6E26995D1B859BE700A63BF2 /* swiftLogo.app */, 74 | 6E2699721B859BE700A63BF2 /* swiftLogoTests.xctest */, 75 | ); 76 | name = Products; 77 | sourceTree = ""; 78 | }; 79 | 6E26995F1B859BE700A63BF2 /* swiftLogo */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | 6E2699621B859BE700A63BF2 /* AppDelegate.swift */, 83 | 6E2699641B859BE700A63BF2 /* ViewController.swift */, 84 | 6E2699661B859BE700A63BF2 /* Main.storyboard */, 85 | 6E2699691B859BE700A63BF2 /* Images.xcassets */, 86 | 6E26996B1B859BE700A63BF2 /* LaunchScreen.xib */, 87 | 6E2699601B859BE700A63BF2 /* Supporting Files */, 88 | 6E2699821B859C0300A63BF2 /* swiftLogoLayer.swift */, 89 | ); 90 | path = swiftLogo; 91 | sourceTree = ""; 92 | }; 93 | 6E2699601B859BE700A63BF2 /* Supporting Files */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 6E2699611B859BE700A63BF2 /* Info.plist */, 97 | ); 98 | name = "Supporting Files"; 99 | sourceTree = ""; 100 | }; 101 | 6E2699751B859BE700A63BF2 /* swiftLogoTests */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 6E2699781B859BE700A63BF2 /* swiftLogoTests.swift */, 105 | 6E2699761B859BE700A63BF2 /* Supporting Files */, 106 | ); 107 | path = swiftLogoTests; 108 | sourceTree = ""; 109 | }; 110 | 6E2699761B859BE700A63BF2 /* Supporting Files */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 6E2699771B859BE700A63BF2 /* Info.plist */, 114 | ); 115 | name = "Supporting Files"; 116 | sourceTree = ""; 117 | }; 118 | /* End PBXGroup section */ 119 | 120 | /* Begin PBXNativeTarget section */ 121 | 6E26995C1B859BE700A63BF2 /* swiftLogo */ = { 122 | isa = PBXNativeTarget; 123 | buildConfigurationList = 6E26997C1B859BE700A63BF2 /* Build configuration list for PBXNativeTarget "swiftLogo" */; 124 | buildPhases = ( 125 | 6E2699591B859BE700A63BF2 /* Sources */, 126 | 6E26995A1B859BE700A63BF2 /* Frameworks */, 127 | 6E26995B1B859BE700A63BF2 /* Resources */, 128 | ); 129 | buildRules = ( 130 | ); 131 | dependencies = ( 132 | ); 133 | name = swiftLogo; 134 | productName = swiftLogo; 135 | productReference = 6E26995D1B859BE700A63BF2 /* swiftLogo.app */; 136 | productType = "com.apple.product-type.application"; 137 | }; 138 | 6E2699711B859BE700A63BF2 /* swiftLogoTests */ = { 139 | isa = PBXNativeTarget; 140 | buildConfigurationList = 6E26997F1B859BE700A63BF2 /* Build configuration list for PBXNativeTarget "swiftLogoTests" */; 141 | buildPhases = ( 142 | 6E26996E1B859BE700A63BF2 /* Sources */, 143 | 6E26996F1B859BE700A63BF2 /* Frameworks */, 144 | 6E2699701B859BE700A63BF2 /* Resources */, 145 | ); 146 | buildRules = ( 147 | ); 148 | dependencies = ( 149 | 6E2699741B859BE700A63BF2 /* PBXTargetDependency */, 150 | ); 151 | name = swiftLogoTests; 152 | productName = swiftLogoTests; 153 | productReference = 6E2699721B859BE700A63BF2 /* swiftLogoTests.xctest */; 154 | productType = "com.apple.product-type.bundle.unit-test"; 155 | }; 156 | /* End PBXNativeTarget section */ 157 | 158 | /* Begin PBXProject section */ 159 | 6E2699551B859BE700A63BF2 /* Project object */ = { 160 | isa = PBXProject; 161 | attributes = { 162 | LastUpgradeCheck = 0640; 163 | ORGANIZATIONNAME = Huangjunwei; 164 | TargetAttributes = { 165 | 6E26995C1B859BE700A63BF2 = { 166 | CreatedOnToolsVersion = 6.4; 167 | }; 168 | 6E2699711B859BE700A63BF2 = { 169 | CreatedOnToolsVersion = 6.4; 170 | TestTargetID = 6E26995C1B859BE700A63BF2; 171 | }; 172 | }; 173 | }; 174 | buildConfigurationList = 6E2699581B859BE700A63BF2 /* Build configuration list for PBXProject "swiftLogo" */; 175 | compatibilityVersion = "Xcode 3.2"; 176 | developmentRegion = English; 177 | hasScannedForEncodings = 0; 178 | knownRegions = ( 179 | en, 180 | Base, 181 | ); 182 | mainGroup = 6E2699541B859BE700A63BF2; 183 | productRefGroup = 6E26995E1B859BE700A63BF2 /* Products */; 184 | projectDirPath = ""; 185 | projectRoot = ""; 186 | targets = ( 187 | 6E26995C1B859BE700A63BF2 /* swiftLogo */, 188 | 6E2699711B859BE700A63BF2 /* swiftLogoTests */, 189 | ); 190 | }; 191 | /* End PBXProject section */ 192 | 193 | /* Begin PBXResourcesBuildPhase section */ 194 | 6E26995B1B859BE700A63BF2 /* Resources */ = { 195 | isa = PBXResourcesBuildPhase; 196 | buildActionMask = 2147483647; 197 | files = ( 198 | 6E2699681B859BE700A63BF2 /* Main.storyboard in Resources */, 199 | 6E26996D1B859BE700A63BF2 /* LaunchScreen.xib in Resources */, 200 | 6E26996A1B859BE700A63BF2 /* Images.xcassets in Resources */, 201 | ); 202 | runOnlyForDeploymentPostprocessing = 0; 203 | }; 204 | 6E2699701B859BE700A63BF2 /* Resources */ = { 205 | isa = PBXResourcesBuildPhase; 206 | buildActionMask = 2147483647; 207 | files = ( 208 | ); 209 | runOnlyForDeploymentPostprocessing = 0; 210 | }; 211 | /* End PBXResourcesBuildPhase section */ 212 | 213 | /* Begin PBXSourcesBuildPhase section */ 214 | 6E2699591B859BE700A63BF2 /* Sources */ = { 215 | isa = PBXSourcesBuildPhase; 216 | buildActionMask = 2147483647; 217 | files = ( 218 | 6E2699831B859C0300A63BF2 /* swiftLogoLayer.swift in Sources */, 219 | 6E2699651B859BE700A63BF2 /* ViewController.swift in Sources */, 220 | 6E2699631B859BE700A63BF2 /* AppDelegate.swift in Sources */, 221 | ); 222 | runOnlyForDeploymentPostprocessing = 0; 223 | }; 224 | 6E26996E1B859BE700A63BF2 /* Sources */ = { 225 | isa = PBXSourcesBuildPhase; 226 | buildActionMask = 2147483647; 227 | files = ( 228 | 6E2699791B859BE700A63BF2 /* swiftLogoTests.swift in Sources */, 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | }; 232 | /* End PBXSourcesBuildPhase section */ 233 | 234 | /* Begin PBXTargetDependency section */ 235 | 6E2699741B859BE700A63BF2 /* PBXTargetDependency */ = { 236 | isa = PBXTargetDependency; 237 | target = 6E26995C1B859BE700A63BF2 /* swiftLogo */; 238 | targetProxy = 6E2699731B859BE700A63BF2 /* PBXContainerItemProxy */; 239 | }; 240 | /* End PBXTargetDependency section */ 241 | 242 | /* Begin PBXVariantGroup section */ 243 | 6E2699661B859BE700A63BF2 /* Main.storyboard */ = { 244 | isa = PBXVariantGroup; 245 | children = ( 246 | 6E2699671B859BE700A63BF2 /* Base */, 247 | ); 248 | name = Main.storyboard; 249 | sourceTree = ""; 250 | }; 251 | 6E26996B1B859BE700A63BF2 /* LaunchScreen.xib */ = { 252 | isa = PBXVariantGroup; 253 | children = ( 254 | 6E26996C1B859BE700A63BF2 /* Base */, 255 | ); 256 | name = LaunchScreen.xib; 257 | sourceTree = ""; 258 | }; 259 | /* End PBXVariantGroup section */ 260 | 261 | /* Begin XCBuildConfiguration section */ 262 | 6E26997A1B859BE700A63BF2 /* Debug */ = { 263 | isa = XCBuildConfiguration; 264 | buildSettings = { 265 | ALWAYS_SEARCH_USER_PATHS = NO; 266 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 267 | CLANG_CXX_LIBRARY = "libc++"; 268 | CLANG_ENABLE_MODULES = YES; 269 | CLANG_ENABLE_OBJC_ARC = YES; 270 | CLANG_WARN_BOOL_CONVERSION = YES; 271 | CLANG_WARN_CONSTANT_CONVERSION = YES; 272 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 273 | CLANG_WARN_EMPTY_BODY = YES; 274 | CLANG_WARN_ENUM_CONVERSION = YES; 275 | CLANG_WARN_INT_CONVERSION = YES; 276 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 277 | CLANG_WARN_UNREACHABLE_CODE = YES; 278 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 279 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 280 | COPY_PHASE_STRIP = NO; 281 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 282 | ENABLE_STRICT_OBJC_MSGSEND = YES; 283 | GCC_C_LANGUAGE_STANDARD = gnu99; 284 | GCC_DYNAMIC_NO_PIC = NO; 285 | GCC_NO_COMMON_BLOCKS = YES; 286 | GCC_OPTIMIZATION_LEVEL = 0; 287 | GCC_PREPROCESSOR_DEFINITIONS = ( 288 | "DEBUG=1", 289 | "$(inherited)", 290 | ); 291 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 292 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 293 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 294 | GCC_WARN_UNDECLARED_SELECTOR = YES; 295 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 296 | GCC_WARN_UNUSED_FUNCTION = YES; 297 | GCC_WARN_UNUSED_VARIABLE = YES; 298 | IPHONEOS_DEPLOYMENT_TARGET = 8.4; 299 | MTL_ENABLE_DEBUG_INFO = YES; 300 | ONLY_ACTIVE_ARCH = YES; 301 | SDKROOT = iphoneos; 302 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 303 | }; 304 | name = Debug; 305 | }; 306 | 6E26997B1B859BE700A63BF2 /* Release */ = { 307 | isa = XCBuildConfiguration; 308 | buildSettings = { 309 | ALWAYS_SEARCH_USER_PATHS = NO; 310 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 311 | CLANG_CXX_LIBRARY = "libc++"; 312 | CLANG_ENABLE_MODULES = YES; 313 | CLANG_ENABLE_OBJC_ARC = YES; 314 | CLANG_WARN_BOOL_CONVERSION = YES; 315 | CLANG_WARN_CONSTANT_CONVERSION = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INT_CONVERSION = YES; 320 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 321 | CLANG_WARN_UNREACHABLE_CODE = YES; 322 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 323 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 324 | COPY_PHASE_STRIP = NO; 325 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 326 | ENABLE_NS_ASSERTIONS = NO; 327 | ENABLE_STRICT_OBJC_MSGSEND = YES; 328 | GCC_C_LANGUAGE_STANDARD = gnu99; 329 | GCC_NO_COMMON_BLOCKS = YES; 330 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 331 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 332 | GCC_WARN_UNDECLARED_SELECTOR = YES; 333 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 334 | GCC_WARN_UNUSED_FUNCTION = YES; 335 | GCC_WARN_UNUSED_VARIABLE = YES; 336 | IPHONEOS_DEPLOYMENT_TARGET = 8.4; 337 | MTL_ENABLE_DEBUG_INFO = NO; 338 | SDKROOT = iphoneos; 339 | VALIDATE_PRODUCT = YES; 340 | }; 341 | name = Release; 342 | }; 343 | 6E26997D1B859BE700A63BF2 /* Debug */ = { 344 | isa = XCBuildConfiguration; 345 | buildSettings = { 346 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 347 | INFOPLIST_FILE = swiftLogo/Info.plist; 348 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 349 | PRODUCT_NAME = "$(TARGET_NAME)"; 350 | }; 351 | name = Debug; 352 | }; 353 | 6E26997E1B859BE700A63BF2 /* Release */ = { 354 | isa = XCBuildConfiguration; 355 | buildSettings = { 356 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 357 | INFOPLIST_FILE = swiftLogo/Info.plist; 358 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 359 | PRODUCT_NAME = "$(TARGET_NAME)"; 360 | }; 361 | name = Release; 362 | }; 363 | 6E2699801B859BE700A63BF2 /* Debug */ = { 364 | isa = XCBuildConfiguration; 365 | buildSettings = { 366 | BUNDLE_LOADER = "$(TEST_HOST)"; 367 | FRAMEWORK_SEARCH_PATHS = ( 368 | "$(SDKROOT)/Developer/Library/Frameworks", 369 | "$(inherited)", 370 | ); 371 | GCC_PREPROCESSOR_DEFINITIONS = ( 372 | "DEBUG=1", 373 | "$(inherited)", 374 | ); 375 | INFOPLIST_FILE = swiftLogoTests/Info.plist; 376 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 377 | PRODUCT_NAME = "$(TARGET_NAME)"; 378 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/swiftLogo.app/swiftLogo"; 379 | }; 380 | name = Debug; 381 | }; 382 | 6E2699811B859BE700A63BF2 /* Release */ = { 383 | isa = XCBuildConfiguration; 384 | buildSettings = { 385 | BUNDLE_LOADER = "$(TEST_HOST)"; 386 | FRAMEWORK_SEARCH_PATHS = ( 387 | "$(SDKROOT)/Developer/Library/Frameworks", 388 | "$(inherited)", 389 | ); 390 | INFOPLIST_FILE = swiftLogoTests/Info.plist; 391 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 392 | PRODUCT_NAME = "$(TARGET_NAME)"; 393 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/swiftLogo.app/swiftLogo"; 394 | }; 395 | name = Release; 396 | }; 397 | /* End XCBuildConfiguration section */ 398 | 399 | /* Begin XCConfigurationList section */ 400 | 6E2699581B859BE700A63BF2 /* Build configuration list for PBXProject "swiftLogo" */ = { 401 | isa = XCConfigurationList; 402 | buildConfigurations = ( 403 | 6E26997A1B859BE700A63BF2 /* Debug */, 404 | 6E26997B1B859BE700A63BF2 /* Release */, 405 | ); 406 | defaultConfigurationIsVisible = 0; 407 | defaultConfigurationName = Release; 408 | }; 409 | 6E26997C1B859BE700A63BF2 /* Build configuration list for PBXNativeTarget "swiftLogo" */ = { 410 | isa = XCConfigurationList; 411 | buildConfigurations = ( 412 | 6E26997D1B859BE700A63BF2 /* Debug */, 413 | 6E26997E1B859BE700A63BF2 /* Release */, 414 | ); 415 | defaultConfigurationIsVisible = 0; 416 | }; 417 | 6E26997F1B859BE700A63BF2 /* Build configuration list for PBXNativeTarget "swiftLogoTests" */ = { 418 | isa = XCConfigurationList; 419 | buildConfigurations = ( 420 | 6E2699801B859BE700A63BF2 /* Debug */, 421 | 6E2699811B859BE700A63BF2 /* Release */, 422 | ); 423 | defaultConfigurationIsVisible = 0; 424 | }; 425 | /* End XCConfigurationList section */ 426 | }; 427 | rootObject = 6E2699551B859BE700A63BF2 /* Project object */; 428 | } 429 | -------------------------------------------------------------------------------- /swiftLogo/swiftLogo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /swiftLogo/swiftLogo.xcodeproj/project.xcworkspace/xcuserdata/loveyyn.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShyHornet/swiftLogo/4ca202a4b9693fe8381150cd118c72689b5b893a/swiftLogo/swiftLogo.xcodeproj/project.xcworkspace/xcuserdata/loveyyn.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /swiftLogo/swiftLogo.xcodeproj/xcuserdata/loveyyn.xcuserdatad/xcschemes/swiftLogo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 77 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /swiftLogo/swiftLogo.xcodeproj/xcuserdata/loveyyn.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | swiftLogo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 6E26995C1B859BE700A63BF2 16 | 17 | primary 18 | 19 | 20 | 6E2699711B859BE700A63BF2 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /swiftLogo/swiftLogo/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // swiftLogo 4 | // 5 | // Created by Huangjunwei on 15/8/20. 6 | // Copyright (c) 2015年 Huangjunwei. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /swiftLogo/swiftLogo/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /swiftLogo/swiftLogo/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 | -------------------------------------------------------------------------------- /swiftLogo/swiftLogo/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /swiftLogo/swiftLogo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | NCUT.$(PRODUCT_NAME:rfc1034identifier) 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 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /swiftLogo/swiftLogo/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // swiftLogo 4 | // 5 | // Created by Huangjunwei on 15/8/20. 6 | // Copyright (c) 2015年 Huangjunwei. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | let logo = swiftLogoLayer.logoLayer() 13 | 14 | 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | self.view.backgroundColor = UIColor.grayColor() 18 | 19 | logo.position = CGPoint(x: view.layer.bounds.size.width/2, y: view.layer.bounds.size.height/2) 20 | logo.fillColor = UIColor.whiteColor().CGColor 21 | 22 | self.view.layer.addSublayer(logo) 23 | // Do any additional setup after loading the view, typically from a nib. 24 | } 25 | 26 | override func didReceiveMemoryWarning() { 27 | super.didReceiveMemoryWarning() 28 | // Dispose of any resources that can be recreated. 29 | } 30 | 31 | 32 | } 33 | 34 | -------------------------------------------------------------------------------- /swiftLogo/swiftLogo/swiftLogoLayer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // swiftLogoLayer.swift 3 | // swiftLogo 4 | // 5 | // Created by Huangjunwei on 15/8/20. 6 | // Copyright (c) 2015年 Huangjunwei. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import QuartzCore 11 | 12 | class swiftLogoLayer { 13 | class func logoLayer()->CAShapeLayer{ 14 | 15 | let layer = CAShapeLayer() 16 | 17 | //绘制swift 18 | var bezierPath = UIBezierPath() 19 | bezierPath.moveToPoint(CGPointMake(96.14, 86.59)) 20 | bezierPath.addCurveToPoint(CGPointMake(56.82, 94.83), controlPoint1: CGPointMake(81.83, 85.02), controlPoint2: CGPointMake(87.1, 95.75)) 21 | bezierPath.addCurveToPoint(CGPointMake(20.01, 79.31), controlPoint1: CGPointMake(42.17, 94.39), controlPoint2: CGPointMake(29.06, 87.05)) 22 | bezierPath.addCurveToPoint(CGPointMake(5.25, 62.38), controlPoint1: CGPointMake(10.35, 71.06), controlPoint2: CGPointMake(5.25, 62.38)) 23 | bezierPath.addCurveToPoint(CGPointMake(35.2, 74.85), controlPoint1: CGPointMake(5.25, 62.38), controlPoint2: CGPointMake(17.28, 72.33)) 24 | bezierPath.addCurveToPoint(CGPointMake(64.02, 69.54), controlPoint1: CGPointMake(53.11, 77.37), controlPoint2: CGPointMake(64.02, 69.54)) 25 | bezierPath.addCurveToPoint(CGPointMake(37.43, 44.73), controlPoint1: CGPointMake(64.02, 69.54), controlPoint2: CGPointMake(49.91, 58.13)) 26 | bezierPath.addCurveToPoint(CGPointMake(14.97, 16.34), controlPoint1: CGPointMake(24.96, 31.34), controlPoint2: CGPointMake(14.97, 16.34)) 27 | bezierPath.addCurveToPoint(CGPointMake(40.56, 37.05), controlPoint1: CGPointMake(14.97, 16.34), controlPoint2: CGPointMake(31.85, 30.51)) 28 | bezierPath.addCurveToPoint(CGPointMake(56.82, 47.75), controlPoint1: CGPointMake(45.62, 40.86), controlPoint2: CGPointMake(56.82, 47.75)) 29 | bezierPath.addCurveToPoint(CGPointMake(43.08, 32.22), controlPoint1: CGPointMake(56.82, 47.75), controlPoint2: CGPointMake(47.12, 37.33)) 30 | bezierPath.addCurveToPoint(CGPointMake(27.99, 11.26), controlPoint1: CGPointMake(37.51, 25.17), controlPoint2: CGPointMake(27.99, 11.26)) 31 | bezierPath.addCurveToPoint(CGPointMake(55.05, 35.46), controlPoint1: CGPointMake(27.99, 11.26), controlPoint2: CGPointMake(45.04, 27.34)) 32 | bezierPath.addCurveToPoint(CGPointMake(78.26, 52.03), controlPoint1: CGPointMake(61.79, 40.93), controlPoint2: CGPointMake(78.26, 52.03)) 33 | bezierPath.addCurveToPoint(CGPointMake(80.71, 31.34), controlPoint1: CGPointMake(78.26, 52.03), controlPoint2: CGPointMake(81.63, 45.61)) 34 | bezierPath.addCurveToPoint(CGPointMake(69.08, 3), controlPoint1: CGPointMake(79.8, 17.06), controlPoint2: CGPointMake(69.08, 3)) 35 | bezierPath.addCurveToPoint(CGPointMake(97.29, 34.58), controlPoint1: CGPointMake(69.08, 3), controlPoint2: CGPointMake(89.12, 14.76)) 36 | bezierPath.addCurveToPoint(CGPointMake(100.25, 67.8), controlPoint1: CGPointMake(105.45, 54.4), controlPoint2: CGPointMake(100.25, 67.8)) 37 | bezierPath.addCurveToPoint(CGPointMake(107.29, 81.07), controlPoint1: CGPointMake(100.25, 67.8), controlPoint2: CGPointMake(104.47, 72.3)) 38 | bezierPath.addCurveToPoint(CGPointMake(107.96, 96.25), controlPoint1: CGPointMake(110.12, 89.84), controlPoint2: CGPointMake(107.96, 96.25)) 39 | bezierPath.addCurveToPoint(CGPointMake(96.14, 86.59), controlPoint1: CGPointMake(107.96, 96.25), controlPoint2: CGPointMake(105.27, 87.59)) 40 | bezierPath.closePath() 41 | 42 | //创建logo图层 43 | layer.path = bezierPath.CGPath 44 | layer.bounds = CGPathGetBoundingBox(layer.path) 45 | 46 | return layer 47 | 48 | 49 | } 50 | 51 | } -------------------------------------------------------------------------------- /swiftLogo/swiftLogoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | NCUT.$(PRODUCT_NAME:rfc1034identifier) 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 | -------------------------------------------------------------------------------- /swiftLogo/swiftLogoTests/swiftLogoTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // swiftLogoTests.swift 3 | // swiftLogoTests 4 | // 5 | // Created by Huangjunwei on 15/8/20. 6 | // Copyright (c) 2015年 Huangjunwei. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import XCTest 11 | 12 | class swiftLogoTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | XCTAssert(true, "Pass") 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measureBlock() { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /swiftPath.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Path 12 5 | Created with Sketch. 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /swiftlogo.sketch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShyHornet/swiftLogo/4ca202a4b9693fe8381150cd118c72689b5b893a/swiftlogo.sketch --------------------------------------------------------------------------------