├── .gitignore ├── FadeMessage ├── FadeMessage.xcodeproj │ ├── project.pbxproj │ └── xcuserdata │ │ └── saitjr.xcuserdatad │ │ └── xcschemes │ │ ├── FadeMessage.xcscheme │ │ └── xcschememanagement.plist ├── FadeMessage │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ ├── MessageCell.swift │ ├── ViewController.swift │ └── emma-watson.jpg └── FadeMessageTests │ ├── FadeMessageTests.swift │ └── Info.plist ├── HappyLayerFriends.xcworkspace ├── contents.xcworkspacedata └── xcuserdata │ └── saitjr.xcuserdatad │ ├── UserInterfaceState.xcuserstate │ └── xcdebugger │ └── Breakpoints_v2.xcbkptlist ├── LICENSE ├── LyricsShow_Test ├── LyricsShow_Test.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── LyricsShow_Test │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ ├── KMLyricsView.h │ ├── KMLyricsView.m │ ├── ViewController.h │ ├── ViewController.m │ └── main.m ├── LyricsShow_TestTests │ ├── Info.plist │ └── LyricsShow_TestTests.m └── LyricsShow_TestUITests │ ├── Info.plist │ └── LyricsShow_TestUITests.m ├── README.md ├── TheLyrics ├── TheLyrics.xcodeproj │ └── project.pbxproj ├── TheLyrics │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ ├── Text.png │ └── ViewController.swift └── TheLyricsTests │ ├── Info.plist │ └── TheLyricsTests.swift └── UnlockIPhone ├── UnlockIPhone.xcodeproj └── project.pbxproj ├── UnlockIPhone ├── AppDelegate.swift ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist └── ViewController.swift └── UnlockIPhoneTests ├── Info.plist └── UnlockIPhoneTests.swift /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xcuserstate 23 | 24 | ## Obj-C/Swift specific 25 | *.hmap 26 | *.ipa 27 | *.dSYM.zip 28 | *.dSYM 29 | 30 | ## Playgrounds 31 | timeline.xctimeline 32 | playground.xcworkspace 33 | 34 | # Swift Package Manager 35 | # 36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 37 | # Packages/ 38 | .build/ 39 | 40 | # CocoaPods 41 | # 42 | # We recommend against adding the Pods directory to your .gitignore. However 43 | # you should judge for yourself, the pros and cons are mentioned at: 44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 45 | # 46 | # Pods/ 47 | 48 | # Carthage 49 | # 50 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 51 | # Carthage/Checkouts 52 | 53 | Carthage/Build 54 | 55 | # fastlane 56 | # 57 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 58 | # screenshots whenever they are needed. 59 | # For more information about the recommended setup visit: 60 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 61 | 62 | fastlane/report.xml 63 | fastlane/Preview.html 64 | fastlane/screenshots 65 | fastlane/test_output 66 | -------------------------------------------------------------------------------- /FadeMessage/FadeMessage.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 09DD4B641D56D505009D4ECB /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09DD4B631D56D505009D4ECB /* AppDelegate.swift */; }; 11 | 09DD4B661D56D505009D4ECB /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09DD4B651D56D505009D4ECB /* ViewController.swift */; }; 12 | 09DD4B691D56D505009D4ECB /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 09DD4B671D56D505009D4ECB /* Main.storyboard */; }; 13 | 09DD4B6B1D56D505009D4ECB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 09DD4B6A1D56D505009D4ECB /* Assets.xcassets */; }; 14 | 09DD4B6E1D56D505009D4ECB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 09DD4B6C1D56D505009D4ECB /* LaunchScreen.storyboard */; }; 15 | 09DD4B791D56D505009D4ECB /* FadeMessageTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09DD4B781D56D505009D4ECB /* FadeMessageTests.swift */; }; 16 | 09DD4B851D56D608009D4ECB /* MessageCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09DD4B841D56D608009D4ECB /* MessageCell.swift */; }; 17 | 09DD4B871D56E156009D4ECB /* emma-watson.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 09DD4B861D56E156009D4ECB /* emma-watson.jpg */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 09DD4B751D56D505009D4ECB /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 09DD4B581D56D505009D4ECB /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 09DD4B5F1D56D505009D4ECB; 26 | remoteInfo = FadeMessage; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 09DD4B601D56D505009D4ECB /* FadeMessage.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FadeMessage.app; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 09DD4B631D56D505009D4ECB /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 33 | 09DD4B651D56D505009D4ECB /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 34 | 09DD4B681D56D505009D4ECB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 35 | 09DD4B6A1D56D505009D4ECB /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 36 | 09DD4B6D1D56D505009D4ECB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 37 | 09DD4B6F1D56D505009D4ECB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 38 | 09DD4B741D56D505009D4ECB /* FadeMessageTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FadeMessageTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 09DD4B781D56D505009D4ECB /* FadeMessageTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FadeMessageTests.swift; sourceTree = ""; }; 40 | 09DD4B7A1D56D505009D4ECB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 41 | 09DD4B841D56D608009D4ECB /* MessageCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MessageCell.swift; sourceTree = ""; }; 42 | 09DD4B861D56E156009D4ECB /* emma-watson.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "emma-watson.jpg"; sourceTree = ""; }; 43 | /* End PBXFileReference section */ 44 | 45 | /* Begin PBXFrameworksBuildPhase section */ 46 | 09DD4B5D1D56D505009D4ECB /* Frameworks */ = { 47 | isa = PBXFrameworksBuildPhase; 48 | buildActionMask = 2147483647; 49 | files = ( 50 | ); 51 | runOnlyForDeploymentPostprocessing = 0; 52 | }; 53 | 09DD4B711D56D505009D4ECB /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | ); 58 | runOnlyForDeploymentPostprocessing = 0; 59 | }; 60 | /* End PBXFrameworksBuildPhase section */ 61 | 62 | /* Begin PBXGroup section */ 63 | 09DD4B571D56D505009D4ECB = { 64 | isa = PBXGroup; 65 | children = ( 66 | 09DD4B621D56D505009D4ECB /* FadeMessage */, 67 | 09DD4B771D56D505009D4ECB /* FadeMessageTests */, 68 | 09DD4B611D56D505009D4ECB /* Products */, 69 | ); 70 | sourceTree = ""; 71 | }; 72 | 09DD4B611D56D505009D4ECB /* Products */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 09DD4B601D56D505009D4ECB /* FadeMessage.app */, 76 | 09DD4B741D56D505009D4ECB /* FadeMessageTests.xctest */, 77 | ); 78 | name = Products; 79 | sourceTree = ""; 80 | }; 81 | 09DD4B621D56D505009D4ECB /* FadeMessage */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | 09DD4B631D56D505009D4ECB /* AppDelegate.swift */, 85 | 09DD4B651D56D505009D4ECB /* ViewController.swift */, 86 | 09DD4B841D56D608009D4ECB /* MessageCell.swift */, 87 | 09DD4B831D56D50E009D4ECB /* Support Files */, 88 | ); 89 | path = FadeMessage; 90 | sourceTree = ""; 91 | }; 92 | 09DD4B771D56D505009D4ECB /* FadeMessageTests */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | 09DD4B781D56D505009D4ECB /* FadeMessageTests.swift */, 96 | 09DD4B7A1D56D505009D4ECB /* Info.plist */, 97 | ); 98 | path = FadeMessageTests; 99 | sourceTree = ""; 100 | }; 101 | 09DD4B831D56D50E009D4ECB /* Support Files */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 09DD4B861D56E156009D4ECB /* emma-watson.jpg */, 105 | 09DD4B671D56D505009D4ECB /* Main.storyboard */, 106 | 09DD4B6A1D56D505009D4ECB /* Assets.xcassets */, 107 | 09DD4B6C1D56D505009D4ECB /* LaunchScreen.storyboard */, 108 | 09DD4B6F1D56D505009D4ECB /* Info.plist */, 109 | ); 110 | name = "Support Files"; 111 | sourceTree = ""; 112 | }; 113 | /* End PBXGroup section */ 114 | 115 | /* Begin PBXNativeTarget section */ 116 | 09DD4B5F1D56D505009D4ECB /* FadeMessage */ = { 117 | isa = PBXNativeTarget; 118 | buildConfigurationList = 09DD4B7D1D56D505009D4ECB /* Build configuration list for PBXNativeTarget "FadeMessage" */; 119 | buildPhases = ( 120 | 09DD4B5C1D56D505009D4ECB /* Sources */, 121 | 09DD4B5D1D56D505009D4ECB /* Frameworks */, 122 | 09DD4B5E1D56D505009D4ECB /* Resources */, 123 | ); 124 | buildRules = ( 125 | ); 126 | dependencies = ( 127 | ); 128 | name = FadeMessage; 129 | productName = FadeMessage; 130 | productReference = 09DD4B601D56D505009D4ECB /* FadeMessage.app */; 131 | productType = "com.apple.product-type.application"; 132 | }; 133 | 09DD4B731D56D505009D4ECB /* FadeMessageTests */ = { 134 | isa = PBXNativeTarget; 135 | buildConfigurationList = 09DD4B801D56D505009D4ECB /* Build configuration list for PBXNativeTarget "FadeMessageTests" */; 136 | buildPhases = ( 137 | 09DD4B701D56D505009D4ECB /* Sources */, 138 | 09DD4B711D56D505009D4ECB /* Frameworks */, 139 | 09DD4B721D56D505009D4ECB /* Resources */, 140 | ); 141 | buildRules = ( 142 | ); 143 | dependencies = ( 144 | 09DD4B761D56D505009D4ECB /* PBXTargetDependency */, 145 | ); 146 | name = FadeMessageTests; 147 | productName = FadeMessageTests; 148 | productReference = 09DD4B741D56D505009D4ECB /* FadeMessageTests.xctest */; 149 | productType = "com.apple.product-type.bundle.unit-test"; 150 | }; 151 | /* End PBXNativeTarget section */ 152 | 153 | /* Begin PBXProject section */ 154 | 09DD4B581D56D505009D4ECB /* Project object */ = { 155 | isa = PBXProject; 156 | attributes = { 157 | LastSwiftUpdateCheck = 0730; 158 | LastUpgradeCheck = 0730; 159 | ORGANIZATIONNAME = saitjr; 160 | TargetAttributes = { 161 | 09DD4B5F1D56D505009D4ECB = { 162 | CreatedOnToolsVersion = 7.3.1; 163 | }; 164 | 09DD4B731D56D505009D4ECB = { 165 | CreatedOnToolsVersion = 7.3.1; 166 | TestTargetID = 09DD4B5F1D56D505009D4ECB; 167 | }; 168 | }; 169 | }; 170 | buildConfigurationList = 09DD4B5B1D56D505009D4ECB /* Build configuration list for PBXProject "FadeMessage" */; 171 | compatibilityVersion = "Xcode 3.2"; 172 | developmentRegion = English; 173 | hasScannedForEncodings = 0; 174 | knownRegions = ( 175 | en, 176 | Base, 177 | ); 178 | mainGroup = 09DD4B571D56D505009D4ECB; 179 | productRefGroup = 09DD4B611D56D505009D4ECB /* Products */; 180 | projectDirPath = ""; 181 | projectRoot = ""; 182 | targets = ( 183 | 09DD4B5F1D56D505009D4ECB /* FadeMessage */, 184 | 09DD4B731D56D505009D4ECB /* FadeMessageTests */, 185 | ); 186 | }; 187 | /* End PBXProject section */ 188 | 189 | /* Begin PBXResourcesBuildPhase section */ 190 | 09DD4B5E1D56D505009D4ECB /* Resources */ = { 191 | isa = PBXResourcesBuildPhase; 192 | buildActionMask = 2147483647; 193 | files = ( 194 | 09DD4B6E1D56D505009D4ECB /* LaunchScreen.storyboard in Resources */, 195 | 09DD4B6B1D56D505009D4ECB /* Assets.xcassets in Resources */, 196 | 09DD4B691D56D505009D4ECB /* Main.storyboard in Resources */, 197 | 09DD4B871D56E156009D4ECB /* emma-watson.jpg in Resources */, 198 | ); 199 | runOnlyForDeploymentPostprocessing = 0; 200 | }; 201 | 09DD4B721D56D505009D4ECB /* Resources */ = { 202 | isa = PBXResourcesBuildPhase; 203 | buildActionMask = 2147483647; 204 | files = ( 205 | ); 206 | runOnlyForDeploymentPostprocessing = 0; 207 | }; 208 | /* End PBXResourcesBuildPhase section */ 209 | 210 | /* Begin PBXSourcesBuildPhase section */ 211 | 09DD4B5C1D56D505009D4ECB /* Sources */ = { 212 | isa = PBXSourcesBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | 09DD4B661D56D505009D4ECB /* ViewController.swift in Sources */, 216 | 09DD4B641D56D505009D4ECB /* AppDelegate.swift in Sources */, 217 | 09DD4B851D56D608009D4ECB /* MessageCell.swift in Sources */, 218 | ); 219 | runOnlyForDeploymentPostprocessing = 0; 220 | }; 221 | 09DD4B701D56D505009D4ECB /* Sources */ = { 222 | isa = PBXSourcesBuildPhase; 223 | buildActionMask = 2147483647; 224 | files = ( 225 | 09DD4B791D56D505009D4ECB /* FadeMessageTests.swift in Sources */, 226 | ); 227 | runOnlyForDeploymentPostprocessing = 0; 228 | }; 229 | /* End PBXSourcesBuildPhase section */ 230 | 231 | /* Begin PBXTargetDependency section */ 232 | 09DD4B761D56D505009D4ECB /* PBXTargetDependency */ = { 233 | isa = PBXTargetDependency; 234 | target = 09DD4B5F1D56D505009D4ECB /* FadeMessage */; 235 | targetProxy = 09DD4B751D56D505009D4ECB /* PBXContainerItemProxy */; 236 | }; 237 | /* End PBXTargetDependency section */ 238 | 239 | /* Begin PBXVariantGroup section */ 240 | 09DD4B671D56D505009D4ECB /* Main.storyboard */ = { 241 | isa = PBXVariantGroup; 242 | children = ( 243 | 09DD4B681D56D505009D4ECB /* Base */, 244 | ); 245 | name = Main.storyboard; 246 | sourceTree = ""; 247 | }; 248 | 09DD4B6C1D56D505009D4ECB /* LaunchScreen.storyboard */ = { 249 | isa = PBXVariantGroup; 250 | children = ( 251 | 09DD4B6D1D56D505009D4ECB /* Base */, 252 | ); 253 | name = LaunchScreen.storyboard; 254 | sourceTree = ""; 255 | }; 256 | /* End PBXVariantGroup section */ 257 | 258 | /* Begin XCBuildConfiguration section */ 259 | 09DD4B7B1D56D505009D4ECB /* Debug */ = { 260 | isa = XCBuildConfiguration; 261 | buildSettings = { 262 | ALWAYS_SEARCH_USER_PATHS = NO; 263 | CLANG_ANALYZER_NONNULL = YES; 264 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 265 | CLANG_CXX_LIBRARY = "libc++"; 266 | CLANG_ENABLE_MODULES = YES; 267 | CLANG_ENABLE_OBJC_ARC = YES; 268 | CLANG_WARN_BOOL_CONVERSION = YES; 269 | CLANG_WARN_CONSTANT_CONVERSION = YES; 270 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 271 | CLANG_WARN_EMPTY_BODY = YES; 272 | CLANG_WARN_ENUM_CONVERSION = YES; 273 | CLANG_WARN_INT_CONVERSION = YES; 274 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 275 | CLANG_WARN_UNREACHABLE_CODE = YES; 276 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 277 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 278 | COPY_PHASE_STRIP = NO; 279 | DEBUG_INFORMATION_FORMAT = dwarf; 280 | ENABLE_STRICT_OBJC_MSGSEND = YES; 281 | ENABLE_TESTABILITY = YES; 282 | GCC_C_LANGUAGE_STANDARD = gnu99; 283 | GCC_DYNAMIC_NO_PIC = NO; 284 | GCC_NO_COMMON_BLOCKS = YES; 285 | GCC_OPTIMIZATION_LEVEL = 0; 286 | GCC_PREPROCESSOR_DEFINITIONS = ( 287 | "DEBUG=1", 288 | "$(inherited)", 289 | ); 290 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 291 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 292 | GCC_WARN_UNDECLARED_SELECTOR = YES; 293 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 294 | GCC_WARN_UNUSED_FUNCTION = YES; 295 | GCC_WARN_UNUSED_VARIABLE = YES; 296 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 297 | MTL_ENABLE_DEBUG_INFO = YES; 298 | ONLY_ACTIVE_ARCH = YES; 299 | SDKROOT = iphoneos; 300 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 301 | }; 302 | name = Debug; 303 | }; 304 | 09DD4B7C1D56D505009D4ECB /* Release */ = { 305 | isa = XCBuildConfiguration; 306 | buildSettings = { 307 | ALWAYS_SEARCH_USER_PATHS = NO; 308 | CLANG_ANALYZER_NONNULL = YES; 309 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 310 | CLANG_CXX_LIBRARY = "libc++"; 311 | CLANG_ENABLE_MODULES = YES; 312 | CLANG_ENABLE_OBJC_ARC = YES; 313 | CLANG_WARN_BOOL_CONVERSION = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 316 | CLANG_WARN_EMPTY_BODY = YES; 317 | CLANG_WARN_ENUM_CONVERSION = YES; 318 | CLANG_WARN_INT_CONVERSION = YES; 319 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 320 | CLANG_WARN_UNREACHABLE_CODE = YES; 321 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 322 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 323 | COPY_PHASE_STRIP = NO; 324 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 325 | ENABLE_NS_ASSERTIONS = NO; 326 | ENABLE_STRICT_OBJC_MSGSEND = YES; 327 | GCC_C_LANGUAGE_STANDARD = gnu99; 328 | GCC_NO_COMMON_BLOCKS = YES; 329 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 330 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 331 | GCC_WARN_UNDECLARED_SELECTOR = YES; 332 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 333 | GCC_WARN_UNUSED_FUNCTION = YES; 334 | GCC_WARN_UNUSED_VARIABLE = YES; 335 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 336 | MTL_ENABLE_DEBUG_INFO = NO; 337 | SDKROOT = iphoneos; 338 | VALIDATE_PRODUCT = YES; 339 | }; 340 | name = Release; 341 | }; 342 | 09DD4B7E1D56D505009D4ECB /* Debug */ = { 343 | isa = XCBuildConfiguration; 344 | buildSettings = { 345 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 346 | INFOPLIST_FILE = FadeMessage/Info.plist; 347 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 348 | PRODUCT_BUNDLE_IDENTIFIER = com.saitjr.FadeMessage; 349 | PRODUCT_NAME = "$(TARGET_NAME)"; 350 | }; 351 | name = Debug; 352 | }; 353 | 09DD4B7F1D56D505009D4ECB /* Release */ = { 354 | isa = XCBuildConfiguration; 355 | buildSettings = { 356 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 357 | INFOPLIST_FILE = FadeMessage/Info.plist; 358 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 359 | PRODUCT_BUNDLE_IDENTIFIER = com.saitjr.FadeMessage; 360 | PRODUCT_NAME = "$(TARGET_NAME)"; 361 | }; 362 | name = Release; 363 | }; 364 | 09DD4B811D56D505009D4ECB /* Debug */ = { 365 | isa = XCBuildConfiguration; 366 | buildSettings = { 367 | BUNDLE_LOADER = "$(TEST_HOST)"; 368 | INFOPLIST_FILE = FadeMessageTests/Info.plist; 369 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 370 | PRODUCT_BUNDLE_IDENTIFIER = com.saitjr.FadeMessageTests; 371 | PRODUCT_NAME = "$(TARGET_NAME)"; 372 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FadeMessage.app/FadeMessage"; 373 | }; 374 | name = Debug; 375 | }; 376 | 09DD4B821D56D505009D4ECB /* Release */ = { 377 | isa = XCBuildConfiguration; 378 | buildSettings = { 379 | BUNDLE_LOADER = "$(TEST_HOST)"; 380 | INFOPLIST_FILE = FadeMessageTests/Info.plist; 381 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 382 | PRODUCT_BUNDLE_IDENTIFIER = com.saitjr.FadeMessageTests; 383 | PRODUCT_NAME = "$(TARGET_NAME)"; 384 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FadeMessage.app/FadeMessage"; 385 | }; 386 | name = Release; 387 | }; 388 | /* End XCBuildConfiguration section */ 389 | 390 | /* Begin XCConfigurationList section */ 391 | 09DD4B5B1D56D505009D4ECB /* Build configuration list for PBXProject "FadeMessage" */ = { 392 | isa = XCConfigurationList; 393 | buildConfigurations = ( 394 | 09DD4B7B1D56D505009D4ECB /* Debug */, 395 | 09DD4B7C1D56D505009D4ECB /* Release */, 396 | ); 397 | defaultConfigurationIsVisible = 0; 398 | defaultConfigurationName = Release; 399 | }; 400 | 09DD4B7D1D56D505009D4ECB /* Build configuration list for PBXNativeTarget "FadeMessage" */ = { 401 | isa = XCConfigurationList; 402 | buildConfigurations = ( 403 | 09DD4B7E1D56D505009D4ECB /* Debug */, 404 | 09DD4B7F1D56D505009D4ECB /* Release */, 405 | ); 406 | defaultConfigurationIsVisible = 0; 407 | }; 408 | 09DD4B801D56D505009D4ECB /* Build configuration list for PBXNativeTarget "FadeMessageTests" */ = { 409 | isa = XCConfigurationList; 410 | buildConfigurations = ( 411 | 09DD4B811D56D505009D4ECB /* Debug */, 412 | 09DD4B821D56D505009D4ECB /* Release */, 413 | ); 414 | defaultConfigurationIsVisible = 0; 415 | }; 416 | /* End XCConfigurationList section */ 417 | }; 418 | rootObject = 09DD4B581D56D505009D4ECB /* Project object */; 419 | } 420 | -------------------------------------------------------------------------------- /FadeMessage/FadeMessage.xcodeproj/xcuserdata/saitjr.xcuserdatad/xcschemes/FadeMessage.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 66 | 72 | 73 | 74 | 75 | 76 | 77 | 83 | 85 | 91 | 92 | 93 | 94 | 96 | 97 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /FadeMessage/FadeMessage.xcodeproj/xcuserdata/saitjr.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | FadeMessage.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 09DD4B5F1D56D505009D4ECB 16 | 17 | primary 18 | 19 | 20 | 09DD4B731D56D505009D4ECB 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /FadeMessage/FadeMessage/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // FadeMessage 4 | // 5 | // Created by saitjr on 8/7/16. 6 | // Copyright © 2016 saitjr. 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 | -------------------------------------------------------------------------------- /FadeMessage/FadeMessage/Assets.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 | } -------------------------------------------------------------------------------- /FadeMessage/FadeMessage/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /FadeMessage/FadeMessage/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 | -------------------------------------------------------------------------------- /FadeMessage/FadeMessage/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 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /FadeMessage/FadeMessage/MessageCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MessageCell.swift 3 | // FadeMessage 4 | // 5 | // Created by saitjr on 8/7/16. 6 | // Copyright © 2016 saitjr. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class MessageCell: UITableViewCell { 12 | 13 | override init(style: UITableViewCellStyle, reuseIdentifier: String?) { 14 | super.init(style: style, reuseIdentifier: reuseIdentifier) 15 | setupUI() 16 | } 17 | 18 | required init?(coder aDecoder: NSCoder) { 19 | super.init(coder: aDecoder) 20 | setupUI() 21 | } 22 | } 23 | 24 | extension MessageCell { 25 | private func setupUI() { 26 | backgroundColor = .clearColor() 27 | selectionStyle = .None 28 | 29 | let label = UILabel() 30 | label.frame = CGRect(x: 10, y: 5, width: 300, height: 40) 31 | label.text = " 这是一条测试消息" 32 | label.textColor = .whiteColor() 33 | label.backgroundColor = .orangeColor() 34 | label.layer.cornerRadius = 5 35 | label.layer.masksToBounds = true 36 | contentView.addSubview(label) 37 | 38 | } 39 | } -------------------------------------------------------------------------------- /FadeMessage/FadeMessage/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // FadeMessage 4 | // 5 | // Created by saitjr on 8/7/16. 6 | // Copyright © 2016 saitjr. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | let identifier = "MessageCell" 14 | 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | // Do any additional setup after loading the view, typically from a nib. 18 | setupUI() 19 | } 20 | } 21 | 22 | extension ViewController { 23 | private func setupUI() { 24 | let imageView = UIImageView(image: UIImage(named: "emma-watson.jpg")) 25 | imageView.frame = view.bounds 26 | imageView.contentMode = .ScaleAspectFill 27 | view.addSubview(imageView) 28 | 29 | let tableViewSuperView = UIView() 30 | tableViewSuperView.frame = CGRect(x: 0, y: 200, width: view.frame.size.width, height: view.frame.size.height - 200) 31 | view.addSubview(tableViewSuperView) 32 | 33 | let gradientLayer = CAGradientLayer() 34 | gradientLayer.colors = [UIColor.blackColor().colorWithAlphaComponent(0.2).CGColor, UIColor.blackColor().CGColor] 35 | gradientLayer.frame = tableViewSuperView.bounds; 36 | gradientLayer.locations = [0, 0.2, 1] 37 | tableViewSuperView.layer.mask = gradientLayer 38 | 39 | let tableView = UITableView() 40 | tableView.frame = tableViewSuperView.bounds 41 | tableView.rowHeight = 50 42 | tableView.backgroundColor = .clearColor() 43 | tableView.separatorStyle = .None 44 | tableView.showsVerticalScrollIndicator = false 45 | tableView.registerClass(MessageCell.self, forCellReuseIdentifier: identifier) 46 | tableView.dataSource = self 47 | tableViewSuperView.addSubview(tableView) 48 | } 49 | } 50 | 51 | extension ViewController: UITableViewDataSource { 52 | func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { 53 | let cell = tableView.dequeueReusableCellWithIdentifier(identifier) ?? MessageCell() 54 | return cell 55 | } 56 | 57 | func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 58 | return 30 59 | } 60 | } -------------------------------------------------------------------------------- /FadeMessage/FadeMessage/emma-watson.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saitjr/HappyLayerFriends/13e3ed4ede5a8dc965193d6b64212c1c17fc5912/FadeMessage/FadeMessage/emma-watson.jpg -------------------------------------------------------------------------------- /FadeMessage/FadeMessageTests/FadeMessageTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FadeMessageTests.swift 3 | // FadeMessageTests 4 | // 5 | // Created by saitjr on 8/7/16. 6 | // Copyright © 2016 saitjr. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import FadeMessage 11 | 12 | class FadeMessageTests: 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 | // Use XCTAssert and related functions to verify your tests produce the correct results. 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 | -------------------------------------------------------------------------------- /FadeMessage/FadeMessageTests/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 | -------------------------------------------------------------------------------- /HappyLayerFriends.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /HappyLayerFriends.xcworkspace/xcuserdata/saitjr.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saitjr/HappyLayerFriends/13e3ed4ede5a8dc965193d6b64212c1c17fc5912/HappyLayerFriends.xcworkspace/xcuserdata/saitjr.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /HappyLayerFriends.xcworkspace/xcuserdata/saitjr.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 saitjr 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_Test.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 2569E4241D893855008B60E6 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 2569E4231D893855008B60E6 /* main.m */; }; 11 | 2569E4271D893855008B60E6 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 2569E4261D893855008B60E6 /* AppDelegate.m */; }; 12 | 2569E42A1D893855008B60E6 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2569E4291D893855008B60E6 /* ViewController.m */; }; 13 | 2569E42D1D893855008B60E6 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2569E42B1D893855008B60E6 /* Main.storyboard */; }; 14 | 2569E42F1D893855008B60E6 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2569E42E1D893855008B60E6 /* Assets.xcassets */; }; 15 | 2569E4321D893855008B60E6 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2569E4301D893855008B60E6 /* LaunchScreen.storyboard */; }; 16 | 2569E43D1D893855008B60E6 /* LyricsShow_TestTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2569E43C1D893855008B60E6 /* LyricsShow_TestTests.m */; }; 17 | 2569E4481D893855008B60E6 /* LyricsShow_TestUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2569E4471D893855008B60E6 /* LyricsShow_TestUITests.m */; }; 18 | 2569E4581D89399B008B60E6 /* KMLyricsView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2569E4571D89399B008B60E6 /* KMLyricsView.m */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | 2569E4391D893855008B60E6 /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = 2569E4171D893855008B60E6 /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = 2569E41E1D893855008B60E6; 27 | remoteInfo = LyricsShow_Test; 28 | }; 29 | 2569E4441D893855008B60E6 /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 2569E4171D893855008B60E6 /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 2569E41E1D893855008B60E6; 34 | remoteInfo = LyricsShow_Test; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 2569E41F1D893855008B60E6 /* LyricsShow_Test.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LyricsShow_Test.app; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 2569E4231D893855008B60E6 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 41 | 2569E4251D893855008B60E6 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 42 | 2569E4261D893855008B60E6 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 43 | 2569E4281D893855008B60E6 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 44 | 2569E4291D893855008B60E6 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 45 | 2569E42C1D893855008B60E6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 46 | 2569E42E1D893855008B60E6 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 47 | 2569E4311D893855008B60E6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 48 | 2569E4331D893855008B60E6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 2569E4381D893855008B60E6 /* LyricsShow_TestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LyricsShow_TestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 2569E43C1D893855008B60E6 /* LyricsShow_TestTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LyricsShow_TestTests.m; sourceTree = ""; }; 51 | 2569E43E1D893855008B60E6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | 2569E4431D893855008B60E6 /* LyricsShow_TestUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LyricsShow_TestUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 2569E4471D893855008B60E6 /* LyricsShow_TestUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LyricsShow_TestUITests.m; sourceTree = ""; }; 54 | 2569E4491D893855008B60E6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | 2569E4561D89399B008B60E6 /* KMLyricsView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KMLyricsView.h; sourceTree = ""; }; 56 | 2569E4571D89399B008B60E6 /* KMLyricsView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KMLyricsView.m; sourceTree = ""; }; 57 | /* End PBXFileReference section */ 58 | 59 | /* Begin PBXFrameworksBuildPhase section */ 60 | 2569E41C1D893855008B60E6 /* Frameworks */ = { 61 | isa = PBXFrameworksBuildPhase; 62 | buildActionMask = 2147483647; 63 | files = ( 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | 2569E4351D893855008B60E6 /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | 2569E4401D893855008B60E6 /* Frameworks */ = { 75 | isa = PBXFrameworksBuildPhase; 76 | buildActionMask = 2147483647; 77 | files = ( 78 | ); 79 | runOnlyForDeploymentPostprocessing = 0; 80 | }; 81 | /* End PBXFrameworksBuildPhase section */ 82 | 83 | /* Begin PBXGroup section */ 84 | 2569E4161D893855008B60E6 = { 85 | isa = PBXGroup; 86 | children = ( 87 | 2569E4211D893855008B60E6 /* LyricsShow_Test */, 88 | 2569E43B1D893855008B60E6 /* LyricsShow_TestTests */, 89 | 2569E4461D893855008B60E6 /* LyricsShow_TestUITests */, 90 | 2569E4201D893855008B60E6 /* Products */, 91 | ); 92 | sourceTree = ""; 93 | }; 94 | 2569E4201D893855008B60E6 /* Products */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 2569E41F1D893855008B60E6 /* LyricsShow_Test.app */, 98 | 2569E4381D893855008B60E6 /* LyricsShow_TestTests.xctest */, 99 | 2569E4431D893855008B60E6 /* LyricsShow_TestUITests.xctest */, 100 | ); 101 | name = Products; 102 | sourceTree = ""; 103 | }; 104 | 2569E4211D893855008B60E6 /* LyricsShow_Test */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 2569E4551D89397C008B60E6 /* KMLyricsView */, 108 | 2569E4251D893855008B60E6 /* AppDelegate.h */, 109 | 2569E4261D893855008B60E6 /* AppDelegate.m */, 110 | 2569E4281D893855008B60E6 /* ViewController.h */, 111 | 2569E4291D893855008B60E6 /* ViewController.m */, 112 | 2569E42B1D893855008B60E6 /* Main.storyboard */, 113 | 2569E42E1D893855008B60E6 /* Assets.xcassets */, 114 | 2569E4301D893855008B60E6 /* LaunchScreen.storyboard */, 115 | 2569E4331D893855008B60E6 /* Info.plist */, 116 | 2569E4221D893855008B60E6 /* Supporting Files */, 117 | ); 118 | path = LyricsShow_Test; 119 | sourceTree = ""; 120 | }; 121 | 2569E4221D893855008B60E6 /* Supporting Files */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 2569E4231D893855008B60E6 /* main.m */, 125 | ); 126 | name = "Supporting Files"; 127 | sourceTree = ""; 128 | }; 129 | 2569E43B1D893855008B60E6 /* LyricsShow_TestTests */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | 2569E43C1D893855008B60E6 /* LyricsShow_TestTests.m */, 133 | 2569E43E1D893855008B60E6 /* Info.plist */, 134 | ); 135 | path = LyricsShow_TestTests; 136 | sourceTree = ""; 137 | }; 138 | 2569E4461D893855008B60E6 /* LyricsShow_TestUITests */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | 2569E4471D893855008B60E6 /* LyricsShow_TestUITests.m */, 142 | 2569E4491D893855008B60E6 /* Info.plist */, 143 | ); 144 | path = LyricsShow_TestUITests; 145 | sourceTree = ""; 146 | }; 147 | 2569E4551D89397C008B60E6 /* KMLyricsView */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | 2569E4561D89399B008B60E6 /* KMLyricsView.h */, 151 | 2569E4571D89399B008B60E6 /* KMLyricsView.m */, 152 | ); 153 | name = KMLyricsView; 154 | sourceTree = ""; 155 | }; 156 | /* End PBXGroup section */ 157 | 158 | /* Begin PBXNativeTarget section */ 159 | 2569E41E1D893855008B60E6 /* LyricsShow_Test */ = { 160 | isa = PBXNativeTarget; 161 | buildConfigurationList = 2569E44C1D893855008B60E6 /* Build configuration list for PBXNativeTarget "LyricsShow_Test" */; 162 | buildPhases = ( 163 | 2569E41B1D893855008B60E6 /* Sources */, 164 | 2569E41C1D893855008B60E6 /* Frameworks */, 165 | 2569E41D1D893855008B60E6 /* Resources */, 166 | ); 167 | buildRules = ( 168 | ); 169 | dependencies = ( 170 | ); 171 | name = LyricsShow_Test; 172 | productName = LyricsShow_Test; 173 | productReference = 2569E41F1D893855008B60E6 /* LyricsShow_Test.app */; 174 | productType = "com.apple.product-type.application"; 175 | }; 176 | 2569E4371D893855008B60E6 /* LyricsShow_TestTests */ = { 177 | isa = PBXNativeTarget; 178 | buildConfigurationList = 2569E44F1D893855008B60E6 /* Build configuration list for PBXNativeTarget "LyricsShow_TestTests" */; 179 | buildPhases = ( 180 | 2569E4341D893855008B60E6 /* Sources */, 181 | 2569E4351D893855008B60E6 /* Frameworks */, 182 | 2569E4361D893855008B60E6 /* Resources */, 183 | ); 184 | buildRules = ( 185 | ); 186 | dependencies = ( 187 | 2569E43A1D893855008B60E6 /* PBXTargetDependency */, 188 | ); 189 | name = LyricsShow_TestTests; 190 | productName = LyricsShow_TestTests; 191 | productReference = 2569E4381D893855008B60E6 /* LyricsShow_TestTests.xctest */; 192 | productType = "com.apple.product-type.bundle.unit-test"; 193 | }; 194 | 2569E4421D893855008B60E6 /* LyricsShow_TestUITests */ = { 195 | isa = PBXNativeTarget; 196 | buildConfigurationList = 2569E4521D893855008B60E6 /* Build configuration list for PBXNativeTarget "LyricsShow_TestUITests" */; 197 | buildPhases = ( 198 | 2569E43F1D893855008B60E6 /* Sources */, 199 | 2569E4401D893855008B60E6 /* Frameworks */, 200 | 2569E4411D893855008B60E6 /* Resources */, 201 | ); 202 | buildRules = ( 203 | ); 204 | dependencies = ( 205 | 2569E4451D893855008B60E6 /* PBXTargetDependency */, 206 | ); 207 | name = LyricsShow_TestUITests; 208 | productName = LyricsShow_TestUITests; 209 | productReference = 2569E4431D893855008B60E6 /* LyricsShow_TestUITests.xctest */; 210 | productType = "com.apple.product-type.bundle.ui-testing"; 211 | }; 212 | /* End PBXNativeTarget section */ 213 | 214 | /* Begin PBXProject section */ 215 | 2569E4171D893855008B60E6 /* Project object */ = { 216 | isa = PBXProject; 217 | attributes = { 218 | LastUpgradeCheck = 0730; 219 | ORGANIZATIONNAME = Kimi; 220 | TargetAttributes = { 221 | 2569E41E1D893855008B60E6 = { 222 | CreatedOnToolsVersion = 7.3; 223 | }; 224 | 2569E4371D893855008B60E6 = { 225 | CreatedOnToolsVersion = 7.3; 226 | TestTargetID = 2569E41E1D893855008B60E6; 227 | }; 228 | 2569E4421D893855008B60E6 = { 229 | CreatedOnToolsVersion = 7.3; 230 | TestTargetID = 2569E41E1D893855008B60E6; 231 | }; 232 | }; 233 | }; 234 | buildConfigurationList = 2569E41A1D893855008B60E6 /* Build configuration list for PBXProject "LyricsShow_Test" */; 235 | compatibilityVersion = "Xcode 3.2"; 236 | developmentRegion = English; 237 | hasScannedForEncodings = 0; 238 | knownRegions = ( 239 | en, 240 | Base, 241 | ); 242 | mainGroup = 2569E4161D893855008B60E6; 243 | productRefGroup = 2569E4201D893855008B60E6 /* Products */; 244 | projectDirPath = ""; 245 | projectRoot = ""; 246 | targets = ( 247 | 2569E41E1D893855008B60E6 /* LyricsShow_Test */, 248 | 2569E4371D893855008B60E6 /* LyricsShow_TestTests */, 249 | 2569E4421D893855008B60E6 /* LyricsShow_TestUITests */, 250 | ); 251 | }; 252 | /* End PBXProject section */ 253 | 254 | /* Begin PBXResourcesBuildPhase section */ 255 | 2569E41D1D893855008B60E6 /* Resources */ = { 256 | isa = PBXResourcesBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | 2569E4321D893855008B60E6 /* LaunchScreen.storyboard in Resources */, 260 | 2569E42F1D893855008B60E6 /* Assets.xcassets in Resources */, 261 | 2569E42D1D893855008B60E6 /* Main.storyboard in Resources */, 262 | ); 263 | runOnlyForDeploymentPostprocessing = 0; 264 | }; 265 | 2569E4361D893855008B60E6 /* Resources */ = { 266 | isa = PBXResourcesBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | ); 270 | runOnlyForDeploymentPostprocessing = 0; 271 | }; 272 | 2569E4411D893855008B60E6 /* Resources */ = { 273 | isa = PBXResourcesBuildPhase; 274 | buildActionMask = 2147483647; 275 | files = ( 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | }; 279 | /* End PBXResourcesBuildPhase section */ 280 | 281 | /* Begin PBXSourcesBuildPhase section */ 282 | 2569E41B1D893855008B60E6 /* Sources */ = { 283 | isa = PBXSourcesBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | 2569E42A1D893855008B60E6 /* ViewController.m in Sources */, 287 | 2569E4271D893855008B60E6 /* AppDelegate.m in Sources */, 288 | 2569E4581D89399B008B60E6 /* KMLyricsView.m in Sources */, 289 | 2569E4241D893855008B60E6 /* main.m in Sources */, 290 | ); 291 | runOnlyForDeploymentPostprocessing = 0; 292 | }; 293 | 2569E4341D893855008B60E6 /* Sources */ = { 294 | isa = PBXSourcesBuildPhase; 295 | buildActionMask = 2147483647; 296 | files = ( 297 | 2569E43D1D893855008B60E6 /* LyricsShow_TestTests.m in Sources */, 298 | ); 299 | runOnlyForDeploymentPostprocessing = 0; 300 | }; 301 | 2569E43F1D893855008B60E6 /* Sources */ = { 302 | isa = PBXSourcesBuildPhase; 303 | buildActionMask = 2147483647; 304 | files = ( 305 | 2569E4481D893855008B60E6 /* LyricsShow_TestUITests.m in Sources */, 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | }; 309 | /* End PBXSourcesBuildPhase section */ 310 | 311 | /* Begin PBXTargetDependency section */ 312 | 2569E43A1D893855008B60E6 /* PBXTargetDependency */ = { 313 | isa = PBXTargetDependency; 314 | target = 2569E41E1D893855008B60E6 /* LyricsShow_Test */; 315 | targetProxy = 2569E4391D893855008B60E6 /* PBXContainerItemProxy */; 316 | }; 317 | 2569E4451D893855008B60E6 /* PBXTargetDependency */ = { 318 | isa = PBXTargetDependency; 319 | target = 2569E41E1D893855008B60E6 /* LyricsShow_Test */; 320 | targetProxy = 2569E4441D893855008B60E6 /* PBXContainerItemProxy */; 321 | }; 322 | /* End PBXTargetDependency section */ 323 | 324 | /* Begin PBXVariantGroup section */ 325 | 2569E42B1D893855008B60E6 /* Main.storyboard */ = { 326 | isa = PBXVariantGroup; 327 | children = ( 328 | 2569E42C1D893855008B60E6 /* Base */, 329 | ); 330 | name = Main.storyboard; 331 | sourceTree = ""; 332 | }; 333 | 2569E4301D893855008B60E6 /* LaunchScreen.storyboard */ = { 334 | isa = PBXVariantGroup; 335 | children = ( 336 | 2569E4311D893855008B60E6 /* Base */, 337 | ); 338 | name = LaunchScreen.storyboard; 339 | sourceTree = ""; 340 | }; 341 | /* End PBXVariantGroup section */ 342 | 343 | /* Begin XCBuildConfiguration section */ 344 | 2569E44A1D893855008B60E6 /* Debug */ = { 345 | isa = XCBuildConfiguration; 346 | buildSettings = { 347 | ALWAYS_SEARCH_USER_PATHS = NO; 348 | CLANG_ANALYZER_NONNULL = YES; 349 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 350 | CLANG_CXX_LIBRARY = "libc++"; 351 | CLANG_ENABLE_MODULES = YES; 352 | CLANG_ENABLE_OBJC_ARC = YES; 353 | CLANG_WARN_BOOL_CONVERSION = YES; 354 | CLANG_WARN_CONSTANT_CONVERSION = YES; 355 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 356 | CLANG_WARN_EMPTY_BODY = YES; 357 | CLANG_WARN_ENUM_CONVERSION = YES; 358 | CLANG_WARN_INT_CONVERSION = YES; 359 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 360 | CLANG_WARN_UNREACHABLE_CODE = YES; 361 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 362 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 363 | COPY_PHASE_STRIP = NO; 364 | DEBUG_INFORMATION_FORMAT = dwarf; 365 | ENABLE_STRICT_OBJC_MSGSEND = YES; 366 | ENABLE_TESTABILITY = YES; 367 | GCC_C_LANGUAGE_STANDARD = gnu99; 368 | GCC_DYNAMIC_NO_PIC = NO; 369 | GCC_NO_COMMON_BLOCKS = YES; 370 | GCC_OPTIMIZATION_LEVEL = 0; 371 | GCC_PREPROCESSOR_DEFINITIONS = ( 372 | "DEBUG=1", 373 | "$(inherited)", 374 | ); 375 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 376 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 377 | GCC_WARN_UNDECLARED_SELECTOR = YES; 378 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 379 | GCC_WARN_UNUSED_FUNCTION = YES; 380 | GCC_WARN_UNUSED_VARIABLE = YES; 381 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 382 | MTL_ENABLE_DEBUG_INFO = YES; 383 | ONLY_ACTIVE_ARCH = YES; 384 | SDKROOT = iphoneos; 385 | TARGETED_DEVICE_FAMILY = "1,2"; 386 | }; 387 | name = Debug; 388 | }; 389 | 2569E44B1D893855008B60E6 /* Release */ = { 390 | isa = XCBuildConfiguration; 391 | buildSettings = { 392 | ALWAYS_SEARCH_USER_PATHS = NO; 393 | CLANG_ANALYZER_NONNULL = YES; 394 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 395 | CLANG_CXX_LIBRARY = "libc++"; 396 | CLANG_ENABLE_MODULES = YES; 397 | CLANG_ENABLE_OBJC_ARC = YES; 398 | CLANG_WARN_BOOL_CONVERSION = YES; 399 | CLANG_WARN_CONSTANT_CONVERSION = YES; 400 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 401 | CLANG_WARN_EMPTY_BODY = YES; 402 | CLANG_WARN_ENUM_CONVERSION = YES; 403 | CLANG_WARN_INT_CONVERSION = YES; 404 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 405 | CLANG_WARN_UNREACHABLE_CODE = YES; 406 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 407 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 408 | COPY_PHASE_STRIP = NO; 409 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 410 | ENABLE_NS_ASSERTIONS = NO; 411 | ENABLE_STRICT_OBJC_MSGSEND = YES; 412 | GCC_C_LANGUAGE_STANDARD = gnu99; 413 | GCC_NO_COMMON_BLOCKS = YES; 414 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 415 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 416 | GCC_WARN_UNDECLARED_SELECTOR = YES; 417 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 418 | GCC_WARN_UNUSED_FUNCTION = YES; 419 | GCC_WARN_UNUSED_VARIABLE = YES; 420 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 421 | MTL_ENABLE_DEBUG_INFO = NO; 422 | SDKROOT = iphoneos; 423 | TARGETED_DEVICE_FAMILY = "1,2"; 424 | VALIDATE_PRODUCT = YES; 425 | }; 426 | name = Release; 427 | }; 428 | 2569E44D1D893855008B60E6 /* Debug */ = { 429 | isa = XCBuildConfiguration; 430 | buildSettings = { 431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 432 | INFOPLIST_FILE = LyricsShow_Test/Info.plist; 433 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 434 | PRODUCT_BUNDLE_IDENTIFIER = "Kimi.LyricsShow-Test"; 435 | PRODUCT_NAME = "$(TARGET_NAME)"; 436 | }; 437 | name = Debug; 438 | }; 439 | 2569E44E1D893855008B60E6 /* Release */ = { 440 | isa = XCBuildConfiguration; 441 | buildSettings = { 442 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 443 | INFOPLIST_FILE = LyricsShow_Test/Info.plist; 444 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 445 | PRODUCT_BUNDLE_IDENTIFIER = "Kimi.LyricsShow-Test"; 446 | PRODUCT_NAME = "$(TARGET_NAME)"; 447 | }; 448 | name = Release; 449 | }; 450 | 2569E4501D893855008B60E6 /* Debug */ = { 451 | isa = XCBuildConfiguration; 452 | buildSettings = { 453 | BUNDLE_LOADER = "$(TEST_HOST)"; 454 | INFOPLIST_FILE = LyricsShow_TestTests/Info.plist; 455 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 456 | PRODUCT_BUNDLE_IDENTIFIER = "Kimi.LyricsShow-TestTests"; 457 | PRODUCT_NAME = "$(TARGET_NAME)"; 458 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LyricsShow_Test.app/LyricsShow_Test"; 459 | }; 460 | name = Debug; 461 | }; 462 | 2569E4511D893855008B60E6 /* Release */ = { 463 | isa = XCBuildConfiguration; 464 | buildSettings = { 465 | BUNDLE_LOADER = "$(TEST_HOST)"; 466 | INFOPLIST_FILE = LyricsShow_TestTests/Info.plist; 467 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 468 | PRODUCT_BUNDLE_IDENTIFIER = "Kimi.LyricsShow-TestTests"; 469 | PRODUCT_NAME = "$(TARGET_NAME)"; 470 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LyricsShow_Test.app/LyricsShow_Test"; 471 | }; 472 | name = Release; 473 | }; 474 | 2569E4531D893855008B60E6 /* Debug */ = { 475 | isa = XCBuildConfiguration; 476 | buildSettings = { 477 | INFOPLIST_FILE = LyricsShow_TestUITests/Info.plist; 478 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 479 | PRODUCT_BUNDLE_IDENTIFIER = "Kimi.LyricsShow-TestUITests"; 480 | PRODUCT_NAME = "$(TARGET_NAME)"; 481 | TEST_TARGET_NAME = LyricsShow_Test; 482 | }; 483 | name = Debug; 484 | }; 485 | 2569E4541D893855008B60E6 /* Release */ = { 486 | isa = XCBuildConfiguration; 487 | buildSettings = { 488 | INFOPLIST_FILE = LyricsShow_TestUITests/Info.plist; 489 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 490 | PRODUCT_BUNDLE_IDENTIFIER = "Kimi.LyricsShow-TestUITests"; 491 | PRODUCT_NAME = "$(TARGET_NAME)"; 492 | TEST_TARGET_NAME = LyricsShow_Test; 493 | }; 494 | name = Release; 495 | }; 496 | /* End XCBuildConfiguration section */ 497 | 498 | /* Begin XCConfigurationList section */ 499 | 2569E41A1D893855008B60E6 /* Build configuration list for PBXProject "LyricsShow_Test" */ = { 500 | isa = XCConfigurationList; 501 | buildConfigurations = ( 502 | 2569E44A1D893855008B60E6 /* Debug */, 503 | 2569E44B1D893855008B60E6 /* Release */, 504 | ); 505 | defaultConfigurationIsVisible = 0; 506 | defaultConfigurationName = Release; 507 | }; 508 | 2569E44C1D893855008B60E6 /* Build configuration list for PBXNativeTarget "LyricsShow_Test" */ = { 509 | isa = XCConfigurationList; 510 | buildConfigurations = ( 511 | 2569E44D1D893855008B60E6 /* Debug */, 512 | 2569E44E1D893855008B60E6 /* Release */, 513 | ); 514 | defaultConfigurationIsVisible = 0; 515 | }; 516 | 2569E44F1D893855008B60E6 /* Build configuration list for PBXNativeTarget "LyricsShow_TestTests" */ = { 517 | isa = XCConfigurationList; 518 | buildConfigurations = ( 519 | 2569E4501D893855008B60E6 /* Debug */, 520 | 2569E4511D893855008B60E6 /* Release */, 521 | ); 522 | defaultConfigurationIsVisible = 0; 523 | }; 524 | 2569E4521D893855008B60E6 /* Build configuration list for PBXNativeTarget "LyricsShow_TestUITests" */ = { 525 | isa = XCConfigurationList; 526 | buildConfigurations = ( 527 | 2569E4531D893855008B60E6 /* Debug */, 528 | 2569E4541D893855008B60E6 /* Release */, 529 | ); 530 | defaultConfigurationIsVisible = 0; 531 | }; 532 | /* End XCConfigurationList section */ 533 | }; 534 | rootObject = 2569E4171D893855008B60E6 /* Project object */; 535 | } 536 | -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_Test.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_Test/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // LyricsShow_Test 4 | // 5 | // Created by nali on 16/9/14. 6 | // Copyright © 2016年 Kimi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_Test/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // LyricsShow_Test 4 | // 5 | // Created by nali on 16/9/14. 6 | // Copyright © 2016年 Kimi. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // 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. 25 | // 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. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // 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. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // 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. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // 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. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_Test/Assets.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 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_Test/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_Test/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_Test/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 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_Test/KMLyricsView.h: -------------------------------------------------------------------------------- 1 | // 2 | // KMLyricsView.h 3 | // LyricsShow_Test 4 | // 5 | // Created by nali on 16/9/14. 6 | // Copyright © 2016年 Kimi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface KMLyricsView : UIView 12 | 13 | @property (strong, nonatomic) UIColor *lyricsDidReadColor; //!< 歌词已读颜色 14 | @property (strong, nonatomic) UIColor *lyricsUnreadColor; //!< 歌词未读颜色 15 | @property (strong, nonatomic) NSString *lyricsText; //!< 歌词内容 16 | - (instancetype)initWithFrame:(CGRect)frame; 17 | @end 18 | -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_Test/KMLyricsView.m: -------------------------------------------------------------------------------- 1 | // 2 | // KMLyricsView.m 3 | // LyricsShow_Test 4 | // 5 | // Created by nali on 16/9/14. 6 | // Copyright © 2016年 Kimi. All rights reserved. 7 | // 8 | 9 | #define USE_DEBUG 0 10 | 11 | #import "KMLyricsView.h" 12 | 13 | @implementation KMLyricsView 14 | { 15 | CGRect _selfBounds; 16 | CGPoint _selfBoundsCenter; 17 | CGFloat _selfBoundsX; 18 | CGFloat _selfBoundsY; 19 | CGFloat _selfBoundsWidth; 20 | CGFloat _selfBoundsHeight; 21 | 22 | CAGradientLayer *_gradientLayer; 23 | CABasicAnimation *_scrollAnimation; 24 | } 25 | 26 | - (instancetype)initWithFrame:(CGRect)frame 27 | { 28 | self = [super initWithFrame:frame]; 29 | if (self) { 30 | [self setupBoundsAndFrame]; 31 | [self drawLyricsView]; 32 | 33 | #if USE_DEBUG 34 | self.backgroundColor = [UIColor lightGrayColor]; 35 | #else 36 | self.backgroundColor = [UIColor clearColor]; 37 | #endif 38 | 39 | } 40 | return self; 41 | } 42 | 43 | - (void)layoutSubviews 44 | { 45 | [self setupBoundsAndFrame]; 46 | [self reloadLyricsView]; 47 | } 48 | 49 | - (void)setupBoundsAndFrame 50 | { 51 | _selfBounds = self.bounds; 52 | _selfBoundsX = _selfBounds.origin.x; 53 | _selfBoundsY = _selfBounds.origin.y; 54 | _selfBoundsWidth = _selfBounds.size.width; 55 | _selfBoundsHeight = _selfBounds.size.height; 56 | _selfBoundsCenter = CGPointMake(_selfBoundsX + _selfBoundsWidth/2, 57 | _selfBoundsY + _selfBoundsHeight/2); 58 | } 59 | 60 | - (void)drawLyricsView 61 | { 62 | if (_gradientLayer) { 63 | [_gradientLayer removeFromSuperlayer]; 64 | } 65 | 66 | _gradientLayer = [self createGridientLayerWithDidReadColor:_lyricsDidReadColor unreadColor:_lyricsUnreadColor]; 67 | [self.layer addSublayer:_gradientLayer]; 68 | 69 | UIImage *lyricsTextImage = [self createLyricsTextImageView]; 70 | CALayer *maskLayer = [self createLyricsTextMaskLayerWithAnImage:lyricsTextImage]; 71 | _gradientLayer.mask = maskLayer; 72 | 73 | [self addLyricsAnimation]; 74 | } 75 | 76 | - (void)reloadLyricsView 77 | { 78 | // if (!_gradientLayer) { 79 | // [self drawLyricsView]; 80 | // } 81 | // else { 82 | // _gradientLayer.frame = _selfBounds; 83 | // } 84 | [self drawLyricsView]; 85 | } 86 | 87 | #pragma mark - setUpLyricsColor 88 | - (void)setLyricsDidReadColor:(UIColor *)lyricsDidReadColor 89 | { 90 | if (!_gradientLayer) { 91 | [self drawLyricsView]; 92 | } 93 | 94 | _lyricsDidReadColor = lyricsDidReadColor; 95 | 96 | [self reloadLyricsView]; 97 | } 98 | 99 | - (void)setLyricsUnreadColor:(UIColor *)lyricsUnreadColor 100 | { 101 | if (!_gradientLayer) { 102 | [self drawLyricsView]; 103 | } 104 | 105 | _lyricsUnreadColor = lyricsUnreadColor; 106 | 107 | [self reloadLyricsView]; 108 | } 109 | 110 | - (CAGradientLayer *)createGridientLayerWithDidReadColor:(UIColor *)color1 unreadColor:(UIColor *)color2 111 | { 112 | UIColor *didReadColor = (color1)? color1 : [UIColor greenColor]; 113 | UIColor *unreadColor = (color2)? color2 : [UIColor grayColor]; 114 | 115 | CAGradientLayer *gradientLayer = [CAGradientLayer layer]; 116 | gradientLayer.frame = _selfBounds; 117 | gradientLayer.colors = @[(__bridge id)didReadColor.CGColor, 118 | (__bridge id)unreadColor.CGColor]; 119 | gradientLayer.locations = @[@0.0, @1.0]; 120 | gradientLayer.startPoint = CGPointMake(0.0, 0.5); 121 | gradientLayer.endPoint = CGPointMake(1.0, 0.5); 122 | 123 | return gradientLayer; 124 | } 125 | 126 | - (UIImage *)createLyricsTextImageView 127 | { 128 | NSString *text = @"Hello Music!"; 129 | NSMutableParagraphStyle *style = [[NSMutableParagraphStyle alloc] init]; 130 | style.alignment = NSTextAlignmentCenter; 131 | NSDictionary *attributesDic = @{ 132 | NSFontAttributeName : [UIFont fontWithName:@"HelveticaNeue-Thin" size:50.0], 133 | NSParagraphStyleAttributeName : style 134 | }; 135 | 136 | UIGraphicsBeginImageContextWithOptions(_selfBounds.size, NO, 0.0); 137 | [text drawInRect:_selfBounds withAttributes:attributesDic]; 138 | UIImage *textImage = UIGraphicsGetImageFromCurrentImageContext(); 139 | UIGraphicsEndImageContext(); 140 | 141 | return textImage; 142 | } 143 | 144 | - (CALayer *)createLyricsTextMaskLayerWithAnImage:(UIImage *)image 145 | { 146 | CALayer *maskLayer = [CALayer layer]; 147 | maskLayer.frame = CGRectMake(_selfBoundsX, _selfBoundsY, _selfBoundsWidth, _selfBoundsHeight); 148 | maskLayer.position = CGPointMake(_selfBoundsCenter.x, _selfBoundsCenter.y+_selfBoundsHeight/4); 149 | maskLayer.contents = (__bridge id)image.CGImage; 150 | 151 | return maskLayer; 152 | } 153 | 154 | - (CABasicAnimation *)createScrollAnimation 155 | { 156 | CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"locations"]; 157 | animation.fromValue = @[@0.0, @0.05]; 158 | animation.toValue = @[@0.95, @1.0]; 159 | animation.duration = 3.0; 160 | animation.repeatCount = FLT_MAX; 161 | 162 | return animation; 163 | } 164 | 165 | - (void)addLyricsAnimation 166 | { 167 | [_gradientLayer removeAllAnimations]; 168 | _scrollAnimation = [self createScrollAnimation]; 169 | [_gradientLayer addAnimation:_scrollAnimation forKey:@"LocationAnimation"]; 170 | } 171 | 172 | @end 173 | -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_Test/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // LyricsShow_Test 4 | // 5 | // Created by nali on 16/9/14. 6 | // Copyright © 2016年 Kimi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_Test/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // LyricsShow_Test 4 | // 5 | // Created by nali on 16/9/14. 6 | // Copyright © 2016年 Kimi. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "KMLyricsView.h" 11 | 12 | @interface ViewController () 13 | 14 | @end 15 | 16 | @implementation ViewController 17 | { 18 | KMLyricsView *_lyricsView; 19 | } 20 | 21 | - (void)viewDidLoad { 22 | [super viewDidLoad]; 23 | // Do any additional setup after loading the view, typically from a nib. 24 | 25 | self.view.backgroundColor = [UIColor blackColor]; 26 | _lyricsView = [[KMLyricsView alloc] initWithFrame:CGRectMake(0.0, 0.0, [UIScreen mainScreen].bounds.size.width, 100.0)]; 27 | _lyricsView.center = self.view.center; 28 | [self.view addSubview:_lyricsView]; 29 | } 30 | 31 | - (void)didReceiveMemoryWarning { 32 | [super didReceiveMemoryWarning]; 33 | // Dispose of any resources that can be recreated. 34 | } 35 | - (IBAction)clickChangeColors:(UIButton *)sender { 36 | CGFloat red = arc4random() / (CGFloat)INT_MAX; 37 | CGFloat green = arc4random() / (CGFloat)INT_MAX; 38 | CGFloat blue = arc4random() / (CGFloat)INT_MAX; 39 | 40 | UIColor *didReadColor = [UIColor colorWithRed:red green:green blue:blue alpha:1.0]; 41 | UIColor *unreadColor = [UIColor colorWithRed:(1.0-red) green:(1.0-green) blue:(1.0-blue) alpha:1.0]; 42 | _lyricsView.lyricsDidReadColor = didReadColor; 43 | _lyricsView.lyricsUnreadColor = unreadColor; 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_Test/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // LyricsShow_Test 4 | // 5 | // Created by nali on 16/9/14. 6 | // Copyright © 2016年 Kimi. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_TestTests/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 | -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_TestTests/LyricsShow_TestTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // LyricsShow_TestTests.m 3 | // LyricsShow_TestTests 4 | // 5 | // Created by nali on 16/9/14. 6 | // Copyright © 2016年 Kimi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LyricsShow_TestTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation LyricsShow_TestTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_TestUITests/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 | -------------------------------------------------------------------------------- /LyricsShow_Test/LyricsShow_TestUITests/LyricsShow_TestUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // LyricsShow_TestUITests.m 3 | // LyricsShow_TestUITests 4 | // 5 | // Created by nali on 16/9/14. 6 | // Copyright © 2016年 Kimi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LyricsShow_TestUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation LyricsShow_TestUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HappyLayerFriends 2 | HappyLayerFriends 3 | -------------------------------------------------------------------------------- /TheLyrics/TheLyrics.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 09C8F17C1D58D54200E08A3F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09C8F17B1D58D54200E08A3F /* AppDelegate.swift */; }; 11 | 09C8F17E1D58D54200E08A3F /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09C8F17D1D58D54200E08A3F /* ViewController.swift */; }; 12 | 09C8F1811D58D54200E08A3F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 09C8F17F1D58D54200E08A3F /* Main.storyboard */; }; 13 | 09C8F1831D58D54200E08A3F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 09C8F1821D58D54200E08A3F /* Assets.xcassets */; }; 14 | 09C8F1861D58D54200E08A3F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 09C8F1841D58D54200E08A3F /* LaunchScreen.storyboard */; }; 15 | 09C8F1911D58D54200E08A3F /* TheLyricsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09C8F1901D58D54200E08A3F /* TheLyricsTests.swift */; }; 16 | 09C8F19D1D58D7D100E08A3F /* Text.png in Resources */ = {isa = PBXBuildFile; fileRef = 09C8F19C1D58D7D100E08A3F /* Text.png */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 09C8F18D1D58D54200E08A3F /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 09C8F1701D58D54200E08A3F /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 09C8F1771D58D54200E08A3F; 25 | remoteInfo = TheLyrics; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 09C8F1781D58D54200E08A3F /* TheLyrics.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TheLyrics.app; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | 09C8F17B1D58D54200E08A3F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 32 | 09C8F17D1D58D54200E08A3F /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 33 | 09C8F1801D58D54200E08A3F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 34 | 09C8F1821D58D54200E08A3F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 35 | 09C8F1851D58D54200E08A3F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 36 | 09C8F1871D58D54200E08A3F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 37 | 09C8F18C1D58D54200E08A3F /* TheLyricsTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TheLyricsTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 38 | 09C8F1901D58D54200E08A3F /* TheLyricsTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TheLyricsTests.swift; sourceTree = ""; }; 39 | 09C8F1921D58D54200E08A3F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 40 | 09C8F19C1D58D7D100E08A3F /* Text.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Text.png; sourceTree = ""; }; 41 | /* End PBXFileReference section */ 42 | 43 | /* Begin PBXFrameworksBuildPhase section */ 44 | 09C8F1751D58D54200E08A3F /* Frameworks */ = { 45 | isa = PBXFrameworksBuildPhase; 46 | buildActionMask = 2147483647; 47 | files = ( 48 | ); 49 | runOnlyForDeploymentPostprocessing = 0; 50 | }; 51 | 09C8F1891D58D54200E08A3F /* Frameworks */ = { 52 | isa = PBXFrameworksBuildPhase; 53 | buildActionMask = 2147483647; 54 | files = ( 55 | ); 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | /* End PBXFrameworksBuildPhase section */ 59 | 60 | /* Begin PBXGroup section */ 61 | 09C8F16F1D58D54200E08A3F = { 62 | isa = PBXGroup; 63 | children = ( 64 | 09C8F17A1D58D54200E08A3F /* TheLyrics */, 65 | 09C8F18F1D58D54200E08A3F /* TheLyricsTests */, 66 | 09C8F1791D58D54200E08A3F /* Products */, 67 | ); 68 | sourceTree = ""; 69 | }; 70 | 09C8F1791D58D54200E08A3F /* Products */ = { 71 | isa = PBXGroup; 72 | children = ( 73 | 09C8F1781D58D54200E08A3F /* TheLyrics.app */, 74 | 09C8F18C1D58D54200E08A3F /* TheLyricsTests.xctest */, 75 | ); 76 | name = Products; 77 | sourceTree = ""; 78 | }; 79 | 09C8F17A1D58D54200E08A3F /* TheLyrics */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | 09C8F17B1D58D54200E08A3F /* AppDelegate.swift */, 83 | 09C8F17D1D58D54200E08A3F /* ViewController.swift */, 84 | 09C8F19B1D58D54A00E08A3F /* Support Files */, 85 | ); 86 | path = TheLyrics; 87 | sourceTree = ""; 88 | }; 89 | 09C8F18F1D58D54200E08A3F /* TheLyricsTests */ = { 90 | isa = PBXGroup; 91 | children = ( 92 | 09C8F1901D58D54200E08A3F /* TheLyricsTests.swift */, 93 | 09C8F1921D58D54200E08A3F /* Info.plist */, 94 | ); 95 | path = TheLyricsTests; 96 | sourceTree = ""; 97 | }; 98 | 09C8F19B1D58D54A00E08A3F /* Support Files */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 09C8F19C1D58D7D100E08A3F /* Text.png */, 102 | 09C8F17F1D58D54200E08A3F /* Main.storyboard */, 103 | 09C8F1821D58D54200E08A3F /* Assets.xcassets */, 104 | 09C8F1841D58D54200E08A3F /* LaunchScreen.storyboard */, 105 | 09C8F1871D58D54200E08A3F /* Info.plist */, 106 | ); 107 | name = "Support Files"; 108 | sourceTree = ""; 109 | }; 110 | /* End PBXGroup section */ 111 | 112 | /* Begin PBXNativeTarget section */ 113 | 09C8F1771D58D54200E08A3F /* TheLyrics */ = { 114 | isa = PBXNativeTarget; 115 | buildConfigurationList = 09C8F1951D58D54200E08A3F /* Build configuration list for PBXNativeTarget "TheLyrics" */; 116 | buildPhases = ( 117 | 09C8F1741D58D54200E08A3F /* Sources */, 118 | 09C8F1751D58D54200E08A3F /* Frameworks */, 119 | 09C8F1761D58D54200E08A3F /* Resources */, 120 | ); 121 | buildRules = ( 122 | ); 123 | dependencies = ( 124 | ); 125 | name = TheLyrics; 126 | productName = TheLyrics; 127 | productReference = 09C8F1781D58D54200E08A3F /* TheLyrics.app */; 128 | productType = "com.apple.product-type.application"; 129 | }; 130 | 09C8F18B1D58D54200E08A3F /* TheLyricsTests */ = { 131 | isa = PBXNativeTarget; 132 | buildConfigurationList = 09C8F1981D58D54200E08A3F /* Build configuration list for PBXNativeTarget "TheLyricsTests" */; 133 | buildPhases = ( 134 | 09C8F1881D58D54200E08A3F /* Sources */, 135 | 09C8F1891D58D54200E08A3F /* Frameworks */, 136 | 09C8F18A1D58D54200E08A3F /* Resources */, 137 | ); 138 | buildRules = ( 139 | ); 140 | dependencies = ( 141 | 09C8F18E1D58D54200E08A3F /* PBXTargetDependency */, 142 | ); 143 | name = TheLyricsTests; 144 | productName = TheLyricsTests; 145 | productReference = 09C8F18C1D58D54200E08A3F /* TheLyricsTests.xctest */; 146 | productType = "com.apple.product-type.bundle.unit-test"; 147 | }; 148 | /* End PBXNativeTarget section */ 149 | 150 | /* Begin PBXProject section */ 151 | 09C8F1701D58D54200E08A3F /* Project object */ = { 152 | isa = PBXProject; 153 | attributes = { 154 | LastSwiftUpdateCheck = 0730; 155 | LastUpgradeCheck = 0730; 156 | ORGANIZATIONNAME = saitjr; 157 | TargetAttributes = { 158 | 09C8F1771D58D54200E08A3F = { 159 | CreatedOnToolsVersion = 7.3.1; 160 | }; 161 | 09C8F18B1D58D54200E08A3F = { 162 | CreatedOnToolsVersion = 7.3.1; 163 | TestTargetID = 09C8F1771D58D54200E08A3F; 164 | }; 165 | }; 166 | }; 167 | buildConfigurationList = 09C8F1731D58D54200E08A3F /* Build configuration list for PBXProject "TheLyrics" */; 168 | compatibilityVersion = "Xcode 3.2"; 169 | developmentRegion = English; 170 | hasScannedForEncodings = 0; 171 | knownRegions = ( 172 | en, 173 | Base, 174 | ); 175 | mainGroup = 09C8F16F1D58D54200E08A3F; 176 | productRefGroup = 09C8F1791D58D54200E08A3F /* Products */; 177 | projectDirPath = ""; 178 | projectRoot = ""; 179 | targets = ( 180 | 09C8F1771D58D54200E08A3F /* TheLyrics */, 181 | 09C8F18B1D58D54200E08A3F /* TheLyricsTests */, 182 | ); 183 | }; 184 | /* End PBXProject section */ 185 | 186 | /* Begin PBXResourcesBuildPhase section */ 187 | 09C8F1761D58D54200E08A3F /* Resources */ = { 188 | isa = PBXResourcesBuildPhase; 189 | buildActionMask = 2147483647; 190 | files = ( 191 | 09C8F19D1D58D7D100E08A3F /* Text.png in Resources */, 192 | 09C8F1861D58D54200E08A3F /* LaunchScreen.storyboard in Resources */, 193 | 09C8F1831D58D54200E08A3F /* Assets.xcassets in Resources */, 194 | 09C8F1811D58D54200E08A3F /* Main.storyboard in Resources */, 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | 09C8F18A1D58D54200E08A3F /* Resources */ = { 199 | isa = PBXResourcesBuildPhase; 200 | buildActionMask = 2147483647; 201 | files = ( 202 | ); 203 | runOnlyForDeploymentPostprocessing = 0; 204 | }; 205 | /* End PBXResourcesBuildPhase section */ 206 | 207 | /* Begin PBXSourcesBuildPhase section */ 208 | 09C8F1741D58D54200E08A3F /* Sources */ = { 209 | isa = PBXSourcesBuildPhase; 210 | buildActionMask = 2147483647; 211 | files = ( 212 | 09C8F17E1D58D54200E08A3F /* ViewController.swift in Sources */, 213 | 09C8F17C1D58D54200E08A3F /* AppDelegate.swift in Sources */, 214 | ); 215 | runOnlyForDeploymentPostprocessing = 0; 216 | }; 217 | 09C8F1881D58D54200E08A3F /* Sources */ = { 218 | isa = PBXSourcesBuildPhase; 219 | buildActionMask = 2147483647; 220 | files = ( 221 | 09C8F1911D58D54200E08A3F /* TheLyricsTests.swift in Sources */, 222 | ); 223 | runOnlyForDeploymentPostprocessing = 0; 224 | }; 225 | /* End PBXSourcesBuildPhase section */ 226 | 227 | /* Begin PBXTargetDependency section */ 228 | 09C8F18E1D58D54200E08A3F /* PBXTargetDependency */ = { 229 | isa = PBXTargetDependency; 230 | target = 09C8F1771D58D54200E08A3F /* TheLyrics */; 231 | targetProxy = 09C8F18D1D58D54200E08A3F /* PBXContainerItemProxy */; 232 | }; 233 | /* End PBXTargetDependency section */ 234 | 235 | /* Begin PBXVariantGroup section */ 236 | 09C8F17F1D58D54200E08A3F /* Main.storyboard */ = { 237 | isa = PBXVariantGroup; 238 | children = ( 239 | 09C8F1801D58D54200E08A3F /* Base */, 240 | ); 241 | name = Main.storyboard; 242 | sourceTree = ""; 243 | }; 244 | 09C8F1841D58D54200E08A3F /* LaunchScreen.storyboard */ = { 245 | isa = PBXVariantGroup; 246 | children = ( 247 | 09C8F1851D58D54200E08A3F /* Base */, 248 | ); 249 | name = LaunchScreen.storyboard; 250 | sourceTree = ""; 251 | }; 252 | /* End PBXVariantGroup section */ 253 | 254 | /* Begin XCBuildConfiguration section */ 255 | 09C8F1931D58D54200E08A3F /* Debug */ = { 256 | isa = XCBuildConfiguration; 257 | buildSettings = { 258 | ALWAYS_SEARCH_USER_PATHS = NO; 259 | CLANG_ANALYZER_NONNULL = YES; 260 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 261 | CLANG_CXX_LIBRARY = "libc++"; 262 | CLANG_ENABLE_MODULES = YES; 263 | CLANG_ENABLE_OBJC_ARC = YES; 264 | CLANG_WARN_BOOL_CONVERSION = YES; 265 | CLANG_WARN_CONSTANT_CONVERSION = YES; 266 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 267 | CLANG_WARN_EMPTY_BODY = YES; 268 | CLANG_WARN_ENUM_CONVERSION = YES; 269 | CLANG_WARN_INT_CONVERSION = YES; 270 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 271 | CLANG_WARN_UNREACHABLE_CODE = YES; 272 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 273 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 274 | COPY_PHASE_STRIP = NO; 275 | DEBUG_INFORMATION_FORMAT = dwarf; 276 | ENABLE_STRICT_OBJC_MSGSEND = YES; 277 | ENABLE_TESTABILITY = YES; 278 | GCC_C_LANGUAGE_STANDARD = gnu99; 279 | GCC_DYNAMIC_NO_PIC = NO; 280 | GCC_NO_COMMON_BLOCKS = YES; 281 | GCC_OPTIMIZATION_LEVEL = 0; 282 | GCC_PREPROCESSOR_DEFINITIONS = ( 283 | "DEBUG=1", 284 | "$(inherited)", 285 | ); 286 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 287 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 288 | GCC_WARN_UNDECLARED_SELECTOR = YES; 289 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 290 | GCC_WARN_UNUSED_FUNCTION = YES; 291 | GCC_WARN_UNUSED_VARIABLE = YES; 292 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 293 | MTL_ENABLE_DEBUG_INFO = YES; 294 | ONLY_ACTIVE_ARCH = YES; 295 | SDKROOT = iphoneos; 296 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 297 | }; 298 | name = Debug; 299 | }; 300 | 09C8F1941D58D54200E08A3F /* Release */ = { 301 | isa = XCBuildConfiguration; 302 | buildSettings = { 303 | ALWAYS_SEARCH_USER_PATHS = NO; 304 | CLANG_ANALYZER_NONNULL = YES; 305 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 306 | CLANG_CXX_LIBRARY = "libc++"; 307 | CLANG_ENABLE_MODULES = YES; 308 | CLANG_ENABLE_OBJC_ARC = YES; 309 | CLANG_WARN_BOOL_CONVERSION = YES; 310 | CLANG_WARN_CONSTANT_CONVERSION = YES; 311 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 312 | CLANG_WARN_EMPTY_BODY = YES; 313 | CLANG_WARN_ENUM_CONVERSION = YES; 314 | CLANG_WARN_INT_CONVERSION = YES; 315 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 316 | CLANG_WARN_UNREACHABLE_CODE = YES; 317 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 318 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 319 | COPY_PHASE_STRIP = NO; 320 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 321 | ENABLE_NS_ASSERTIONS = NO; 322 | ENABLE_STRICT_OBJC_MSGSEND = YES; 323 | GCC_C_LANGUAGE_STANDARD = gnu99; 324 | GCC_NO_COMMON_BLOCKS = YES; 325 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 326 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 327 | GCC_WARN_UNDECLARED_SELECTOR = YES; 328 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 329 | GCC_WARN_UNUSED_FUNCTION = YES; 330 | GCC_WARN_UNUSED_VARIABLE = YES; 331 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 332 | MTL_ENABLE_DEBUG_INFO = NO; 333 | SDKROOT = iphoneos; 334 | VALIDATE_PRODUCT = YES; 335 | }; 336 | name = Release; 337 | }; 338 | 09C8F1961D58D54200E08A3F /* Debug */ = { 339 | isa = XCBuildConfiguration; 340 | buildSettings = { 341 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 342 | INFOPLIST_FILE = TheLyrics/Info.plist; 343 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 344 | PRODUCT_BUNDLE_IDENTIFIER = com.saitjr.TheLyrics; 345 | PRODUCT_NAME = "$(TARGET_NAME)"; 346 | }; 347 | name = Debug; 348 | }; 349 | 09C8F1971D58D54200E08A3F /* Release */ = { 350 | isa = XCBuildConfiguration; 351 | buildSettings = { 352 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 353 | INFOPLIST_FILE = TheLyrics/Info.plist; 354 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 355 | PRODUCT_BUNDLE_IDENTIFIER = com.saitjr.TheLyrics; 356 | PRODUCT_NAME = "$(TARGET_NAME)"; 357 | }; 358 | name = Release; 359 | }; 360 | 09C8F1991D58D54200E08A3F /* Debug */ = { 361 | isa = XCBuildConfiguration; 362 | buildSettings = { 363 | BUNDLE_LOADER = "$(TEST_HOST)"; 364 | INFOPLIST_FILE = TheLyricsTests/Info.plist; 365 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 366 | PRODUCT_BUNDLE_IDENTIFIER = com.saitjr.TheLyricsTests; 367 | PRODUCT_NAME = "$(TARGET_NAME)"; 368 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TheLyrics.app/TheLyrics"; 369 | }; 370 | name = Debug; 371 | }; 372 | 09C8F19A1D58D54200E08A3F /* Release */ = { 373 | isa = XCBuildConfiguration; 374 | buildSettings = { 375 | BUNDLE_LOADER = "$(TEST_HOST)"; 376 | INFOPLIST_FILE = TheLyricsTests/Info.plist; 377 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 378 | PRODUCT_BUNDLE_IDENTIFIER = com.saitjr.TheLyricsTests; 379 | PRODUCT_NAME = "$(TARGET_NAME)"; 380 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TheLyrics.app/TheLyrics"; 381 | }; 382 | name = Release; 383 | }; 384 | /* End XCBuildConfiguration section */ 385 | 386 | /* Begin XCConfigurationList section */ 387 | 09C8F1731D58D54200E08A3F /* Build configuration list for PBXProject "TheLyrics" */ = { 388 | isa = XCConfigurationList; 389 | buildConfigurations = ( 390 | 09C8F1931D58D54200E08A3F /* Debug */, 391 | 09C8F1941D58D54200E08A3F /* Release */, 392 | ); 393 | defaultConfigurationIsVisible = 0; 394 | defaultConfigurationName = Release; 395 | }; 396 | 09C8F1951D58D54200E08A3F /* Build configuration list for PBXNativeTarget "TheLyrics" */ = { 397 | isa = XCConfigurationList; 398 | buildConfigurations = ( 399 | 09C8F1961D58D54200E08A3F /* Debug */, 400 | 09C8F1971D58D54200E08A3F /* Release */, 401 | ); 402 | defaultConfigurationIsVisible = 0; 403 | }; 404 | 09C8F1981D58D54200E08A3F /* Build configuration list for PBXNativeTarget "TheLyricsTests" */ = { 405 | isa = XCConfigurationList; 406 | buildConfigurations = ( 407 | 09C8F1991D58D54200E08A3F /* Debug */, 408 | 09C8F19A1D58D54200E08A3F /* Release */, 409 | ); 410 | defaultConfigurationIsVisible = 0; 411 | }; 412 | /* End XCConfigurationList section */ 413 | }; 414 | rootObject = 09C8F1701D58D54200E08A3F /* Project object */; 415 | } 416 | -------------------------------------------------------------------------------- /TheLyrics/TheLyrics/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // TheLyrics 4 | // 5 | // Created by saitjr on 8/8/16. 6 | // Copyright © 2016 saitjr. 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 | -------------------------------------------------------------------------------- /TheLyrics/TheLyrics/Assets.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 | } -------------------------------------------------------------------------------- /TheLyrics/TheLyrics/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /TheLyrics/TheLyrics/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 | -------------------------------------------------------------------------------- /TheLyrics/TheLyrics/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 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /TheLyrics/TheLyrics/Text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saitjr/HappyLayerFriends/13e3ed4ede5a8dc965193d6b64212c1c17fc5912/TheLyrics/TheLyrics/Text.png -------------------------------------------------------------------------------- /TheLyrics/TheLyrics/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // TheLyrics 4 | // 5 | // Created by saitjr on 8/8/16. 6 | // Copyright © 2016 saitjr. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | // Do any additional setup after loading the view, typically from a nib. 16 | setupUI() 17 | } 18 | } 19 | 20 | extension ViewController { 21 | private func setupUI() { 22 | view.backgroundColor = .brownColor() 23 | 24 | let orangeView = UIView() 25 | orangeView.frame = CGRect(x: 0, y: 0, width: 100, height: 60) 26 | orangeView.center = CGPoint(x: orangeView.center.x, y: view.center.y) 27 | orangeView.backgroundColor = .orangeColor() 28 | view.addSubview(orangeView) 29 | 30 | let imageView = UIImageView(image: UIImage(named: "Text.png")) 31 | imageView.bounds = CGRect(x: 0, y: 0, width: view.bounds.size.width, height: 80) 32 | imageView.center = view.center 33 | imageView.contentMode = .ScaleAspectFit 34 | view.addSubview(imageView) 35 | 36 | UIView.animateWithDuration(3, delay: 0, options: [.Repeat, .Autoreverse], 37 | animations: { 38 | orangeView.frame.origin.x = self.view.bounds.size.width - orangeView.bounds.size.width 39 | }, completion: nil) 40 | } 41 | } -------------------------------------------------------------------------------- /TheLyrics/TheLyricsTests/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 | -------------------------------------------------------------------------------- /TheLyrics/TheLyricsTests/TheLyricsTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TheLyricsTests.swift 3 | // TheLyricsTests 4 | // 5 | // Created by saitjr on 8/8/16. 6 | // Copyright © 2016 saitjr. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import TheLyrics 11 | 12 | class TheLyricsTests: 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 | // Use XCTAssert and related functions to verify your tests produce the correct results. 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 | -------------------------------------------------------------------------------- /UnlockIPhone/UnlockIPhone.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 09DD4BC41D5789EF009D4ECB /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09DD4BC31D5789EF009D4ECB /* AppDelegate.swift */; }; 11 | 09DD4BC61D5789EF009D4ECB /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09DD4BC51D5789EF009D4ECB /* ViewController.swift */; }; 12 | 09DD4BC91D5789EF009D4ECB /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 09DD4BC71D5789EF009D4ECB /* Main.storyboard */; }; 13 | 09DD4BCB1D5789EF009D4ECB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 09DD4BCA1D5789EF009D4ECB /* Assets.xcassets */; }; 14 | 09DD4BCE1D5789EF009D4ECB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 09DD4BCC1D5789EF009D4ECB /* LaunchScreen.storyboard */; }; 15 | 09DD4BD91D5789EF009D4ECB /* UnlockIPhoneTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09DD4BD81D5789EF009D4ECB /* UnlockIPhoneTests.swift */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXContainerItemProxy section */ 19 | 09DD4BD51D5789EF009D4ECB /* PBXContainerItemProxy */ = { 20 | isa = PBXContainerItemProxy; 21 | containerPortal = 09DD4BB81D5789EF009D4ECB /* Project object */; 22 | proxyType = 1; 23 | remoteGlobalIDString = 09DD4BBF1D5789EF009D4ECB; 24 | remoteInfo = UnlockIPhone; 25 | }; 26 | /* End PBXContainerItemProxy section */ 27 | 28 | /* Begin PBXFileReference section */ 29 | 09DD4BC01D5789EF009D4ECB /* UnlockIPhone.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = UnlockIPhone.app; sourceTree = BUILT_PRODUCTS_DIR; }; 30 | 09DD4BC31D5789EF009D4ECB /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 31 | 09DD4BC51D5789EF009D4ECB /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 32 | 09DD4BC81D5789EF009D4ECB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 33 | 09DD4BCA1D5789EF009D4ECB /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 34 | 09DD4BCD1D5789EF009D4ECB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 35 | 09DD4BCF1D5789EF009D4ECB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 36 | 09DD4BD41D5789EF009D4ECB /* UnlockIPhoneTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UnlockIPhoneTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 09DD4BD81D5789EF009D4ECB /* UnlockIPhoneTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UnlockIPhoneTests.swift; sourceTree = ""; }; 38 | 09DD4BDA1D5789EF009D4ECB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 39 | /* End PBXFileReference section */ 40 | 41 | /* Begin PBXFrameworksBuildPhase section */ 42 | 09DD4BBD1D5789EF009D4ECB /* Frameworks */ = { 43 | isa = PBXFrameworksBuildPhase; 44 | buildActionMask = 2147483647; 45 | files = ( 46 | ); 47 | runOnlyForDeploymentPostprocessing = 0; 48 | }; 49 | 09DD4BD11D5789EF009D4ECB /* Frameworks */ = { 50 | isa = PBXFrameworksBuildPhase; 51 | buildActionMask = 2147483647; 52 | files = ( 53 | ); 54 | runOnlyForDeploymentPostprocessing = 0; 55 | }; 56 | /* End PBXFrameworksBuildPhase section */ 57 | 58 | /* Begin PBXGroup section */ 59 | 09DD4BB71D5789EF009D4ECB = { 60 | isa = PBXGroup; 61 | children = ( 62 | 09DD4BC21D5789EF009D4ECB /* UnlockIPhone */, 63 | 09DD4BD71D5789EF009D4ECB /* UnlockIPhoneTests */, 64 | 09DD4BC11D5789EF009D4ECB /* Products */, 65 | ); 66 | sourceTree = ""; 67 | }; 68 | 09DD4BC11D5789EF009D4ECB /* Products */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | 09DD4BC01D5789EF009D4ECB /* UnlockIPhone.app */, 72 | 09DD4BD41D5789EF009D4ECB /* UnlockIPhoneTests.xctest */, 73 | ); 74 | name = Products; 75 | sourceTree = ""; 76 | }; 77 | 09DD4BC21D5789EF009D4ECB /* UnlockIPhone */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 09DD4BC31D5789EF009D4ECB /* AppDelegate.swift */, 81 | 09DD4BC51D5789EF009D4ECB /* ViewController.swift */, 82 | 09DD4BE31D5789F7009D4ECB /* Support Files */, 83 | ); 84 | path = UnlockIPhone; 85 | sourceTree = ""; 86 | }; 87 | 09DD4BD71D5789EF009D4ECB /* UnlockIPhoneTests */ = { 88 | isa = PBXGroup; 89 | children = ( 90 | 09DD4BD81D5789EF009D4ECB /* UnlockIPhoneTests.swift */, 91 | 09DD4BDA1D5789EF009D4ECB /* Info.plist */, 92 | ); 93 | path = UnlockIPhoneTests; 94 | sourceTree = ""; 95 | }; 96 | 09DD4BE31D5789F7009D4ECB /* Support Files */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | 09DD4BC71D5789EF009D4ECB /* Main.storyboard */, 100 | 09DD4BCA1D5789EF009D4ECB /* Assets.xcassets */, 101 | 09DD4BCC1D5789EF009D4ECB /* LaunchScreen.storyboard */, 102 | 09DD4BCF1D5789EF009D4ECB /* Info.plist */, 103 | ); 104 | name = "Support Files"; 105 | sourceTree = ""; 106 | }; 107 | /* End PBXGroup section */ 108 | 109 | /* Begin PBXNativeTarget section */ 110 | 09DD4BBF1D5789EF009D4ECB /* UnlockIPhone */ = { 111 | isa = PBXNativeTarget; 112 | buildConfigurationList = 09DD4BDD1D5789EF009D4ECB /* Build configuration list for PBXNativeTarget "UnlockIPhone" */; 113 | buildPhases = ( 114 | 09DD4BBC1D5789EF009D4ECB /* Sources */, 115 | 09DD4BBD1D5789EF009D4ECB /* Frameworks */, 116 | 09DD4BBE1D5789EF009D4ECB /* Resources */, 117 | ); 118 | buildRules = ( 119 | ); 120 | dependencies = ( 121 | ); 122 | name = UnlockIPhone; 123 | productName = UnlockIPhone; 124 | productReference = 09DD4BC01D5789EF009D4ECB /* UnlockIPhone.app */; 125 | productType = "com.apple.product-type.application"; 126 | }; 127 | 09DD4BD31D5789EF009D4ECB /* UnlockIPhoneTests */ = { 128 | isa = PBXNativeTarget; 129 | buildConfigurationList = 09DD4BE01D5789EF009D4ECB /* Build configuration list for PBXNativeTarget "UnlockIPhoneTests" */; 130 | buildPhases = ( 131 | 09DD4BD01D5789EF009D4ECB /* Sources */, 132 | 09DD4BD11D5789EF009D4ECB /* Frameworks */, 133 | 09DD4BD21D5789EF009D4ECB /* Resources */, 134 | ); 135 | buildRules = ( 136 | ); 137 | dependencies = ( 138 | 09DD4BD61D5789EF009D4ECB /* PBXTargetDependency */, 139 | ); 140 | name = UnlockIPhoneTests; 141 | productName = UnlockIPhoneTests; 142 | productReference = 09DD4BD41D5789EF009D4ECB /* UnlockIPhoneTests.xctest */; 143 | productType = "com.apple.product-type.bundle.unit-test"; 144 | }; 145 | /* End PBXNativeTarget section */ 146 | 147 | /* Begin PBXProject section */ 148 | 09DD4BB81D5789EF009D4ECB /* Project object */ = { 149 | isa = PBXProject; 150 | attributes = { 151 | LastSwiftUpdateCheck = 0730; 152 | LastUpgradeCheck = 0730; 153 | ORGANIZATIONNAME = saitjr; 154 | TargetAttributes = { 155 | 09DD4BBF1D5789EF009D4ECB = { 156 | CreatedOnToolsVersion = 7.3.1; 157 | }; 158 | 09DD4BD31D5789EF009D4ECB = { 159 | CreatedOnToolsVersion = 7.3.1; 160 | TestTargetID = 09DD4BBF1D5789EF009D4ECB; 161 | }; 162 | }; 163 | }; 164 | buildConfigurationList = 09DD4BBB1D5789EF009D4ECB /* Build configuration list for PBXProject "UnlockIPhone" */; 165 | compatibilityVersion = "Xcode 3.2"; 166 | developmentRegion = English; 167 | hasScannedForEncodings = 0; 168 | knownRegions = ( 169 | en, 170 | Base, 171 | ); 172 | mainGroup = 09DD4BB71D5789EF009D4ECB; 173 | productRefGroup = 09DD4BC11D5789EF009D4ECB /* Products */; 174 | projectDirPath = ""; 175 | projectRoot = ""; 176 | targets = ( 177 | 09DD4BBF1D5789EF009D4ECB /* UnlockIPhone */, 178 | 09DD4BD31D5789EF009D4ECB /* UnlockIPhoneTests */, 179 | ); 180 | }; 181 | /* End PBXProject section */ 182 | 183 | /* Begin PBXResourcesBuildPhase section */ 184 | 09DD4BBE1D5789EF009D4ECB /* Resources */ = { 185 | isa = PBXResourcesBuildPhase; 186 | buildActionMask = 2147483647; 187 | files = ( 188 | 09DD4BCE1D5789EF009D4ECB /* LaunchScreen.storyboard in Resources */, 189 | 09DD4BCB1D5789EF009D4ECB /* Assets.xcassets in Resources */, 190 | 09DD4BC91D5789EF009D4ECB /* Main.storyboard in Resources */, 191 | ); 192 | runOnlyForDeploymentPostprocessing = 0; 193 | }; 194 | 09DD4BD21D5789EF009D4ECB /* Resources */ = { 195 | isa = PBXResourcesBuildPhase; 196 | buildActionMask = 2147483647; 197 | files = ( 198 | ); 199 | runOnlyForDeploymentPostprocessing = 0; 200 | }; 201 | /* End PBXResourcesBuildPhase section */ 202 | 203 | /* Begin PBXSourcesBuildPhase section */ 204 | 09DD4BBC1D5789EF009D4ECB /* Sources */ = { 205 | isa = PBXSourcesBuildPhase; 206 | buildActionMask = 2147483647; 207 | files = ( 208 | 09DD4BC61D5789EF009D4ECB /* ViewController.swift in Sources */, 209 | 09DD4BC41D5789EF009D4ECB /* AppDelegate.swift in Sources */, 210 | ); 211 | runOnlyForDeploymentPostprocessing = 0; 212 | }; 213 | 09DD4BD01D5789EF009D4ECB /* Sources */ = { 214 | isa = PBXSourcesBuildPhase; 215 | buildActionMask = 2147483647; 216 | files = ( 217 | 09DD4BD91D5789EF009D4ECB /* UnlockIPhoneTests.swift in Sources */, 218 | ); 219 | runOnlyForDeploymentPostprocessing = 0; 220 | }; 221 | /* End PBXSourcesBuildPhase section */ 222 | 223 | /* Begin PBXTargetDependency section */ 224 | 09DD4BD61D5789EF009D4ECB /* PBXTargetDependency */ = { 225 | isa = PBXTargetDependency; 226 | target = 09DD4BBF1D5789EF009D4ECB /* UnlockIPhone */; 227 | targetProxy = 09DD4BD51D5789EF009D4ECB /* PBXContainerItemProxy */; 228 | }; 229 | /* End PBXTargetDependency section */ 230 | 231 | /* Begin PBXVariantGroup section */ 232 | 09DD4BC71D5789EF009D4ECB /* Main.storyboard */ = { 233 | isa = PBXVariantGroup; 234 | children = ( 235 | 09DD4BC81D5789EF009D4ECB /* Base */, 236 | ); 237 | name = Main.storyboard; 238 | sourceTree = ""; 239 | }; 240 | 09DD4BCC1D5789EF009D4ECB /* LaunchScreen.storyboard */ = { 241 | isa = PBXVariantGroup; 242 | children = ( 243 | 09DD4BCD1D5789EF009D4ECB /* Base */, 244 | ); 245 | name = LaunchScreen.storyboard; 246 | sourceTree = ""; 247 | }; 248 | /* End PBXVariantGroup section */ 249 | 250 | /* Begin XCBuildConfiguration section */ 251 | 09DD4BDB1D5789EF009D4ECB /* Debug */ = { 252 | isa = XCBuildConfiguration; 253 | buildSettings = { 254 | ALWAYS_SEARCH_USER_PATHS = NO; 255 | CLANG_ANALYZER_NONNULL = YES; 256 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 257 | CLANG_CXX_LIBRARY = "libc++"; 258 | CLANG_ENABLE_MODULES = YES; 259 | CLANG_ENABLE_OBJC_ARC = YES; 260 | CLANG_WARN_BOOL_CONVERSION = YES; 261 | CLANG_WARN_CONSTANT_CONVERSION = YES; 262 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 263 | CLANG_WARN_EMPTY_BODY = YES; 264 | CLANG_WARN_ENUM_CONVERSION = YES; 265 | CLANG_WARN_INT_CONVERSION = YES; 266 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 267 | CLANG_WARN_UNREACHABLE_CODE = YES; 268 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 269 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 270 | COPY_PHASE_STRIP = NO; 271 | DEBUG_INFORMATION_FORMAT = dwarf; 272 | ENABLE_STRICT_OBJC_MSGSEND = YES; 273 | ENABLE_TESTABILITY = YES; 274 | GCC_C_LANGUAGE_STANDARD = gnu99; 275 | GCC_DYNAMIC_NO_PIC = NO; 276 | GCC_NO_COMMON_BLOCKS = YES; 277 | GCC_OPTIMIZATION_LEVEL = 0; 278 | GCC_PREPROCESSOR_DEFINITIONS = ( 279 | "DEBUG=1", 280 | "$(inherited)", 281 | ); 282 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 283 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 284 | GCC_WARN_UNDECLARED_SELECTOR = YES; 285 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 286 | GCC_WARN_UNUSED_FUNCTION = YES; 287 | GCC_WARN_UNUSED_VARIABLE = YES; 288 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 289 | MTL_ENABLE_DEBUG_INFO = YES; 290 | ONLY_ACTIVE_ARCH = YES; 291 | SDKROOT = iphoneos; 292 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 293 | }; 294 | name = Debug; 295 | }; 296 | 09DD4BDC1D5789EF009D4ECB /* Release */ = { 297 | isa = XCBuildConfiguration; 298 | buildSettings = { 299 | ALWAYS_SEARCH_USER_PATHS = NO; 300 | CLANG_ANALYZER_NONNULL = YES; 301 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 302 | CLANG_CXX_LIBRARY = "libc++"; 303 | CLANG_ENABLE_MODULES = YES; 304 | CLANG_ENABLE_OBJC_ARC = YES; 305 | CLANG_WARN_BOOL_CONVERSION = YES; 306 | CLANG_WARN_CONSTANT_CONVERSION = YES; 307 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 308 | CLANG_WARN_EMPTY_BODY = YES; 309 | CLANG_WARN_ENUM_CONVERSION = YES; 310 | CLANG_WARN_INT_CONVERSION = YES; 311 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 312 | CLANG_WARN_UNREACHABLE_CODE = YES; 313 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 314 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 315 | COPY_PHASE_STRIP = NO; 316 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 317 | ENABLE_NS_ASSERTIONS = NO; 318 | ENABLE_STRICT_OBJC_MSGSEND = YES; 319 | GCC_C_LANGUAGE_STANDARD = gnu99; 320 | GCC_NO_COMMON_BLOCKS = YES; 321 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 322 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 323 | GCC_WARN_UNDECLARED_SELECTOR = YES; 324 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 325 | GCC_WARN_UNUSED_FUNCTION = YES; 326 | GCC_WARN_UNUSED_VARIABLE = YES; 327 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 328 | MTL_ENABLE_DEBUG_INFO = NO; 329 | SDKROOT = iphoneos; 330 | VALIDATE_PRODUCT = YES; 331 | }; 332 | name = Release; 333 | }; 334 | 09DD4BDE1D5789EF009D4ECB /* Debug */ = { 335 | isa = XCBuildConfiguration; 336 | buildSettings = { 337 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 338 | INFOPLIST_FILE = UnlockIPhone/Info.plist; 339 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 340 | PRODUCT_BUNDLE_IDENTIFIER = com.saitjr.UnlockIPhone; 341 | PRODUCT_NAME = "$(TARGET_NAME)"; 342 | }; 343 | name = Debug; 344 | }; 345 | 09DD4BDF1D5789EF009D4ECB /* Release */ = { 346 | isa = XCBuildConfiguration; 347 | buildSettings = { 348 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 349 | INFOPLIST_FILE = UnlockIPhone/Info.plist; 350 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 351 | PRODUCT_BUNDLE_IDENTIFIER = com.saitjr.UnlockIPhone; 352 | PRODUCT_NAME = "$(TARGET_NAME)"; 353 | }; 354 | name = Release; 355 | }; 356 | 09DD4BE11D5789EF009D4ECB /* Debug */ = { 357 | isa = XCBuildConfiguration; 358 | buildSettings = { 359 | BUNDLE_LOADER = "$(TEST_HOST)"; 360 | INFOPLIST_FILE = UnlockIPhoneTests/Info.plist; 361 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 362 | PRODUCT_BUNDLE_IDENTIFIER = com.saitjr.UnlockIPhoneTests; 363 | PRODUCT_NAME = "$(TARGET_NAME)"; 364 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UnlockIPhone.app/UnlockIPhone"; 365 | }; 366 | name = Debug; 367 | }; 368 | 09DD4BE21D5789EF009D4ECB /* Release */ = { 369 | isa = XCBuildConfiguration; 370 | buildSettings = { 371 | BUNDLE_LOADER = "$(TEST_HOST)"; 372 | INFOPLIST_FILE = UnlockIPhoneTests/Info.plist; 373 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 374 | PRODUCT_BUNDLE_IDENTIFIER = com.saitjr.UnlockIPhoneTests; 375 | PRODUCT_NAME = "$(TARGET_NAME)"; 376 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UnlockIPhone.app/UnlockIPhone"; 377 | }; 378 | name = Release; 379 | }; 380 | /* End XCBuildConfiguration section */ 381 | 382 | /* Begin XCConfigurationList section */ 383 | 09DD4BBB1D5789EF009D4ECB /* Build configuration list for PBXProject "UnlockIPhone" */ = { 384 | isa = XCConfigurationList; 385 | buildConfigurations = ( 386 | 09DD4BDB1D5789EF009D4ECB /* Debug */, 387 | 09DD4BDC1D5789EF009D4ECB /* Release */, 388 | ); 389 | defaultConfigurationIsVisible = 0; 390 | defaultConfigurationName = Release; 391 | }; 392 | 09DD4BDD1D5789EF009D4ECB /* Build configuration list for PBXNativeTarget "UnlockIPhone" */ = { 393 | isa = XCConfigurationList; 394 | buildConfigurations = ( 395 | 09DD4BDE1D5789EF009D4ECB /* Debug */, 396 | 09DD4BDF1D5789EF009D4ECB /* Release */, 397 | ); 398 | defaultConfigurationIsVisible = 0; 399 | }; 400 | 09DD4BE01D5789EF009D4ECB /* Build configuration list for PBXNativeTarget "UnlockIPhoneTests" */ = { 401 | isa = XCConfigurationList; 402 | buildConfigurations = ( 403 | 09DD4BE11D5789EF009D4ECB /* Debug */, 404 | 09DD4BE21D5789EF009D4ECB /* Release */, 405 | ); 406 | defaultConfigurationIsVisible = 0; 407 | }; 408 | /* End XCConfigurationList section */ 409 | }; 410 | rootObject = 09DD4BB81D5789EF009D4ECB /* Project object */; 411 | } 412 | -------------------------------------------------------------------------------- /UnlockIPhone/UnlockIPhone/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // UnlockIPhone 4 | // 5 | // Created by saitjr on 8/7/16. 6 | // Copyright © 2016 saitjr. 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 | -------------------------------------------------------------------------------- /UnlockIPhone/UnlockIPhone/Assets.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 | } -------------------------------------------------------------------------------- /UnlockIPhone/UnlockIPhone/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /UnlockIPhone/UnlockIPhone/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 | -------------------------------------------------------------------------------- /UnlockIPhone/UnlockIPhone/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 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /UnlockIPhone/UnlockIPhone/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // UnlockIPhone 4 | // 5 | // Created by saitjr on 8/7/16. 6 | // Copyright © 2016 saitjr. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | // Do any additional setup after loading the view, typically from a nib. 16 | setupUI() 17 | } 18 | } 19 | 20 | extension ViewController { 21 | private func setupUI() { 22 | view.backgroundColor = .blackColor() 23 | 24 | let containerView = UIView() 25 | containerView.bounds = CGRect(x: 0, y: 0, width: 300, height: 80) 26 | containerView.center = view.center 27 | view.addSubview(containerView) 28 | 29 | let gradientLayer = CAGradientLayer() 30 | gradientLayer.frame = containerView.bounds 31 | gradientLayer.colors = [UIColor.blackColor().CGColor, UIColor.whiteColor().CGColor, UIColor.blackColor().CGColor] 32 | gradientLayer.locations = [0.25, 0.5, 0.75] 33 | gradientLayer.startPoint = CGPoint(x: 0, y: 0.5) 34 | gradientLayer.endPoint = CGPoint(x: 1, y: 0.5) 35 | containerView.layer.addSublayer(gradientLayer) 36 | 37 | let text: NSString = "Saitjr" 38 | let style = NSMutableParagraphStyle() 39 | style.alignment = .Center 40 | let textAttribute: [String: AnyObject] = [NSFontAttributeName: UIFont(name: "HelveticaNeue-Thin", size: 30)!, NSParagraphStyleAttributeName: style] 41 | UIGraphicsBeginImageContextWithOptions(view.bounds.size, false, 0) 42 | text.drawInRect(containerView.bounds, withAttributes: textAttribute) 43 | let image = UIGraphicsGetImageFromCurrentImageContext() 44 | UIGraphicsEndImageContext() 45 | 46 | let textLayer = CALayer() 47 | textLayer.frame = view.bounds.offsetBy(dx: 0, dy: 20) 48 | textLayer.contents = image.CGImage 49 | gradientLayer.mask = textLayer 50 | 51 | gradientLayer.addAnimation(animation(), forKey: "LocationAnimation") 52 | } 53 | 54 | private func animation() -> CABasicAnimation { 55 | let animation = CABasicAnimation(keyPath: "locations") 56 | animation.fromValue = [0.0, 0.0, 0.25] 57 | animation.toValue = [0.75, 1.0, 1.0] 58 | animation.duration = 3.0 59 | animation.repeatCount = Float.infinity 60 | return animation 61 | } 62 | } -------------------------------------------------------------------------------- /UnlockIPhone/UnlockIPhoneTests/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 | -------------------------------------------------------------------------------- /UnlockIPhone/UnlockIPhoneTests/UnlockIPhoneTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UnlockIPhoneTests.swift 3 | // UnlockIPhoneTests 4 | // 5 | // Created by saitjr on 8/7/16. 6 | // Copyright © 2016 saitjr. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import UnlockIPhone 11 | 12 | class UnlockIPhoneTests: 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 | // Use XCTAssert and related functions to verify your tests produce the correct results. 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 | --------------------------------------------------------------------------------