├── .gitignore ├── DesignCode.xcodeproj ├── project.pbxproj └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── DesignCode ├── AppDelegate.swift ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon.png │ │ ├── icon_20pt@2x.png │ │ ├── icon_20pt@3x.png │ │ ├── icon_29pt.png │ │ ├── icon_29pt@2x.png │ │ ├── icon_29pt@3x.png │ │ ├── icon_40pt@2x.png │ │ ├── icon_40pt@3x.png │ │ ├── icon_60pt@2x.png │ │ ├── icon_60pt@3x.png │ │ ├── icon_76pt@2x.png │ │ └── icon_83.5@2x.png │ ├── Background.imageset │ │ ├── Background.pdf │ │ └── Contents.json │ ├── Certificate1.imageset │ │ ├── Certificate1.pdf │ │ └── Contents.json │ ├── Certificate2.imageset │ │ ├── Certificate2.pdf │ │ └── Contents.json │ ├── Certificate3.imageset │ │ ├── Certificate3.pdf │ │ └── Contents.json │ ├── Certificate4.imageset │ │ ├── Certificate4.pdf │ │ └── Contents.json │ ├── Colors │ │ ├── Contents.json │ │ ├── accent.colorset │ │ │ └── Contents.json │ │ ├── accentShadow.colorset │ │ │ └── Contents.json │ │ ├── background.colorset │ │ │ └── Contents.json │ │ ├── background10.colorset │ │ │ └── Contents.json │ │ ├── background2.colorset │ │ │ └── Contents.json │ │ ├── background3.colorset │ │ │ └── Contents.json │ │ ├── background4.colorset │ │ │ └── Contents.json │ │ ├── background5.colorset │ │ │ └── Contents.json │ │ ├── background6.colorset │ │ │ └── Contents.json │ │ ├── background7.colorset │ │ │ └── Contents.json │ │ ├── background8.colorset │ │ │ └── Contents.json │ │ ├── background9.colorset │ │ │ └── Contents.json │ │ ├── backgroundShadow3.colorset │ │ │ └── Contents.json │ │ ├── backgroundShadow4.colorset │ │ │ └── Contents.json │ │ ├── buttonShadow.colorset │ │ │ └── Contents.json │ │ ├── gradient1.colorset │ │ │ └── Contents.json │ │ ├── gradient2.colorset │ │ │ └── Contents.json │ │ ├── icons.colorset │ │ │ └── Contents.json │ │ ├── primary.colorset │ │ │ └── Contents.json │ │ └── secondary.colorset │ │ │ └── Contents.json │ ├── Contents.json │ ├── IconCards.imageset │ │ ├── Contents.json │ │ └── IconCards.pdf │ ├── IconHome.imageset │ │ ├── Contents.json │ │ └── IconHome.pdf │ ├── IconSettings.imageset │ │ ├── Contents.json │ │ └── IconSettings.pdf │ ├── Illustration1.imageset │ │ ├── Contents.json │ │ └── Illustration1.pdf │ ├── Illustration2.imageset │ │ ├── Contents.json │ │ └── Illustration2.pdf │ ├── Illustration3.imageset │ │ ├── Contents.json │ │ └── Illustration3.pdf │ ├── Illustration4.imageset │ │ ├── Contents.json │ │ └── Illustration4.pdf │ ├── Illustration5.imageset │ │ ├── Contents.json │ │ └── Illustration5.pdf │ └── Logo.imageset │ │ ├── Contents.json │ │ └── Logo.pdf ├── Base.lproj │ └── LaunchScreen.storyboard ├── BlurView.swift ├── CertificateRow.swift ├── ContentView.swift ├── Home.swift ├── HomeList.swift ├── Info.plist ├── Preview Content │ └── Preview Assets.xcassets │ │ └── Contents.json ├── SceneDelegate.swift ├── Settings.swift ├── TabBar.swift ├── UpdateDetail.swift ├── UpdateList.swift └── UpdateStore.swift ├── DesignCodeTests ├── DesignCodeTests.swift └── Info.plist ├── DesignCodeUITests ├── DesignCodeUITests.swift └── Info.plist ├── LICENSE ├── README.md └── screenshot ├── 0000001.gif ├── 0000002.gif └── 0000003.gif /.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 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | ## Playgrounds 32 | timeline.xctimeline 33 | playground.xcworkspace 34 | 35 | # Swift Package Manager 36 | # 37 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 38 | # Packages/ 39 | # Package.pins 40 | # Package.resolved 41 | .build/ 42 | 43 | # CocoaPods 44 | # 45 | # We recommend against adding the Pods directory to your .gitignore. However 46 | # you should judge for yourself, the pros and cons are mentioned at: 47 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 48 | # 49 | # Pods/ 50 | 51 | # Carthage 52 | # 53 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 54 | # Carthage/Checkouts 55 | 56 | Carthage/Build 57 | 58 | # fastlane 59 | # 60 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 61 | # screenshots whenever they are needed. 62 | # For more information about the recommended setup visit: 63 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 64 | 65 | fastlane/report.xml 66 | fastlane/Preview.html 67 | fastlane/screenshots/**/*.png 68 | fastlane/test_output 69 | -------------------------------------------------------------------------------- /DesignCode.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | B62AE1FB233C7FC700503B70 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62AE1FA233C7FC700503B70 /* AppDelegate.swift */; }; 11 | B62AE1FD233C7FC700503B70 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62AE1FC233C7FC700503B70 /* SceneDelegate.swift */; }; 12 | B62AE1FF233C7FC700503B70 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62AE1FE233C7FC700503B70 /* ContentView.swift */; }; 13 | B62AE201233C7FC800503B70 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B62AE200233C7FC800503B70 /* Assets.xcassets */; }; 14 | B62AE204233C7FC800503B70 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B62AE203233C7FC800503B70 /* Preview Assets.xcassets */; }; 15 | B62AE207233C7FC800503B70 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B62AE205233C7FC800503B70 /* LaunchScreen.storyboard */; }; 16 | B62AE212233C7FC800503B70 /* DesignCodeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62AE211233C7FC800503B70 /* DesignCodeTests.swift */; }; 17 | B62AE21D233C7FC800503B70 /* DesignCodeUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62AE21C233C7FC800503B70 /* DesignCodeUITests.swift */; }; 18 | B62AE22B233CA7A200503B70 /* Home.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62AE22A233CA7A200503B70 /* Home.swift */; }; 19 | B62AE22D233D9CA600503B70 /* HomeList.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62AE22C233D9CA600503B70 /* HomeList.swift */; }; 20 | B62AE22F233DB29400503B70 /* BlurView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62AE22E233DB29400503B70 /* BlurView.swift */; }; 21 | B62AE231233DB93D00503B70 /* UpdateList.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62AE230233DB93D00503B70 /* UpdateList.swift */; }; 22 | B62AE233233DCB6B00503B70 /* UpdateDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62AE232233DCB6B00503B70 /* UpdateDetail.swift */; }; 23 | B62AE235233DCE6000503B70 /* UpdateStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62AE234233DCE6000503B70 /* UpdateStore.swift */; }; 24 | B62AE237233DD2CA00503B70 /* TabBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62AE236233DD2CA00503B70 /* TabBar.swift */; }; 25 | B62AE239233DDA6700503B70 /* Settings.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62AE238233DDA6700503B70 /* Settings.swift */; }; 26 | B62AE23B233DE15100503B70 /* CertificateRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = B62AE23A233DE15100503B70 /* CertificateRow.swift */; }; 27 | /* End PBXBuildFile section */ 28 | 29 | /* Begin PBXContainerItemProxy section */ 30 | B62AE20E233C7FC800503B70 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = B62AE1EF233C7FC700503B70 /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = B62AE1F6233C7FC700503B70; 35 | remoteInfo = DesignCode; 36 | }; 37 | B62AE219233C7FC800503B70 /* PBXContainerItemProxy */ = { 38 | isa = PBXContainerItemProxy; 39 | containerPortal = B62AE1EF233C7FC700503B70 /* Project object */; 40 | proxyType = 1; 41 | remoteGlobalIDString = B62AE1F6233C7FC700503B70; 42 | remoteInfo = DesignCode; 43 | }; 44 | /* End PBXContainerItemProxy section */ 45 | 46 | /* Begin PBXFileReference section */ 47 | B62AE1F7233C7FC700503B70 /* DesignCode.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DesignCode.app; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | B62AE1FA233C7FC700503B70 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 49 | B62AE1FC233C7FC700503B70 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; 50 | B62AE1FE233C7FC700503B70 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; 51 | B62AE200233C7FC800503B70 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 52 | B62AE203233C7FC800503B70 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; 53 | B62AE206233C7FC800503B70 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 54 | B62AE208233C7FC800503B70 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | B62AE20D233C7FC800503B70 /* DesignCodeTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DesignCodeTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | B62AE211233C7FC800503B70 /* DesignCodeTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DesignCodeTests.swift; sourceTree = ""; }; 57 | B62AE213233C7FC800503B70 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | B62AE218233C7FC800503B70 /* DesignCodeUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DesignCodeUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | B62AE21C233C7FC800503B70 /* DesignCodeUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DesignCodeUITests.swift; sourceTree = ""; }; 60 | B62AE21E233C7FC800503B70 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 61 | B62AE22A233CA7A200503B70 /* Home.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Home.swift; sourceTree = ""; }; 62 | B62AE22C233D9CA600503B70 /* HomeList.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeList.swift; sourceTree = ""; }; 63 | B62AE22E233DB29400503B70 /* BlurView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BlurView.swift; sourceTree = ""; }; 64 | B62AE230233DB93D00503B70 /* UpdateList.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpdateList.swift; sourceTree = ""; }; 65 | B62AE232233DCB6B00503B70 /* UpdateDetail.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpdateDetail.swift; sourceTree = ""; }; 66 | B62AE234233DCE6000503B70 /* UpdateStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpdateStore.swift; sourceTree = ""; }; 67 | B62AE236233DD2CA00503B70 /* TabBar.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabBar.swift; sourceTree = ""; }; 68 | B62AE238233DDA6700503B70 /* Settings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Settings.swift; sourceTree = ""; }; 69 | B62AE23A233DE15100503B70 /* CertificateRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CertificateRow.swift; sourceTree = ""; }; 70 | /* End PBXFileReference section */ 71 | 72 | /* Begin PBXFrameworksBuildPhase section */ 73 | B62AE1F4233C7FC700503B70 /* Frameworks */ = { 74 | isa = PBXFrameworksBuildPhase; 75 | buildActionMask = 2147483647; 76 | files = ( 77 | ); 78 | runOnlyForDeploymentPostprocessing = 0; 79 | }; 80 | B62AE20A233C7FC800503B70 /* Frameworks */ = { 81 | isa = PBXFrameworksBuildPhase; 82 | buildActionMask = 2147483647; 83 | files = ( 84 | ); 85 | runOnlyForDeploymentPostprocessing = 0; 86 | }; 87 | B62AE215233C7FC800503B70 /* Frameworks */ = { 88 | isa = PBXFrameworksBuildPhase; 89 | buildActionMask = 2147483647; 90 | files = ( 91 | ); 92 | runOnlyForDeploymentPostprocessing = 0; 93 | }; 94 | /* End PBXFrameworksBuildPhase section */ 95 | 96 | /* Begin PBXGroup section */ 97 | B62AE1EE233C7FC700503B70 = { 98 | isa = PBXGroup; 99 | children = ( 100 | B62AE1F9233C7FC700503B70 /* DesignCode */, 101 | B62AE210233C7FC800503B70 /* DesignCodeTests */, 102 | B62AE21B233C7FC800503B70 /* DesignCodeUITests */, 103 | B62AE1F8233C7FC700503B70 /* Products */, 104 | ); 105 | sourceTree = ""; 106 | }; 107 | B62AE1F8233C7FC700503B70 /* Products */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | B62AE1F7233C7FC700503B70 /* DesignCode.app */, 111 | B62AE20D233C7FC800503B70 /* DesignCodeTests.xctest */, 112 | B62AE218233C7FC800503B70 /* DesignCodeUITests.xctest */, 113 | ); 114 | name = Products; 115 | sourceTree = ""; 116 | }; 117 | B62AE1F9233C7FC700503B70 /* DesignCode */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | B62AE1FA233C7FC700503B70 /* AppDelegate.swift */, 121 | B62AE1FC233C7FC700503B70 /* SceneDelegate.swift */, 122 | B62AE236233DD2CA00503B70 /* TabBar.swift */, 123 | B62AE1FE233C7FC700503B70 /* ContentView.swift */, 124 | B62AE22A233CA7A200503B70 /* Home.swift */, 125 | B62AE238233DDA6700503B70 /* Settings.swift */, 126 | B62AE230233DB93D00503B70 /* UpdateList.swift */, 127 | B62AE232233DCB6B00503B70 /* UpdateDetail.swift */, 128 | B62AE234233DCE6000503B70 /* UpdateStore.swift */, 129 | B62AE22C233D9CA600503B70 /* HomeList.swift */, 130 | B62AE23A233DE15100503B70 /* CertificateRow.swift */, 131 | B62AE22E233DB29400503B70 /* BlurView.swift */, 132 | B62AE200233C7FC800503B70 /* Assets.xcassets */, 133 | B62AE205233C7FC800503B70 /* LaunchScreen.storyboard */, 134 | B62AE208233C7FC800503B70 /* Info.plist */, 135 | B62AE202233C7FC800503B70 /* Preview Content */, 136 | ); 137 | path = DesignCode; 138 | sourceTree = ""; 139 | }; 140 | B62AE202233C7FC800503B70 /* Preview Content */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | B62AE203233C7FC800503B70 /* Preview Assets.xcassets */, 144 | ); 145 | path = "Preview Content"; 146 | sourceTree = ""; 147 | }; 148 | B62AE210233C7FC800503B70 /* DesignCodeTests */ = { 149 | isa = PBXGroup; 150 | children = ( 151 | B62AE211233C7FC800503B70 /* DesignCodeTests.swift */, 152 | B62AE213233C7FC800503B70 /* Info.plist */, 153 | ); 154 | path = DesignCodeTests; 155 | sourceTree = ""; 156 | }; 157 | B62AE21B233C7FC800503B70 /* DesignCodeUITests */ = { 158 | isa = PBXGroup; 159 | children = ( 160 | B62AE21C233C7FC800503B70 /* DesignCodeUITests.swift */, 161 | B62AE21E233C7FC800503B70 /* Info.plist */, 162 | ); 163 | path = DesignCodeUITests; 164 | sourceTree = ""; 165 | }; 166 | /* End PBXGroup section */ 167 | 168 | /* Begin PBXNativeTarget section */ 169 | B62AE1F6233C7FC700503B70 /* DesignCode */ = { 170 | isa = PBXNativeTarget; 171 | buildConfigurationList = B62AE221233C7FC800503B70 /* Build configuration list for PBXNativeTarget "DesignCode" */; 172 | buildPhases = ( 173 | B62AE1F3233C7FC700503B70 /* Sources */, 174 | B62AE1F4233C7FC700503B70 /* Frameworks */, 175 | B62AE1F5233C7FC700503B70 /* Resources */, 176 | ); 177 | buildRules = ( 178 | ); 179 | dependencies = ( 180 | ); 181 | name = DesignCode; 182 | productName = DesignCode; 183 | productReference = B62AE1F7233C7FC700503B70 /* DesignCode.app */; 184 | productType = "com.apple.product-type.application"; 185 | }; 186 | B62AE20C233C7FC800503B70 /* DesignCodeTests */ = { 187 | isa = PBXNativeTarget; 188 | buildConfigurationList = B62AE224233C7FC800503B70 /* Build configuration list for PBXNativeTarget "DesignCodeTests" */; 189 | buildPhases = ( 190 | B62AE209233C7FC800503B70 /* Sources */, 191 | B62AE20A233C7FC800503B70 /* Frameworks */, 192 | B62AE20B233C7FC800503B70 /* Resources */, 193 | ); 194 | buildRules = ( 195 | ); 196 | dependencies = ( 197 | B62AE20F233C7FC800503B70 /* PBXTargetDependency */, 198 | ); 199 | name = DesignCodeTests; 200 | productName = DesignCodeTests; 201 | productReference = B62AE20D233C7FC800503B70 /* DesignCodeTests.xctest */; 202 | productType = "com.apple.product-type.bundle.unit-test"; 203 | }; 204 | B62AE217233C7FC800503B70 /* DesignCodeUITests */ = { 205 | isa = PBXNativeTarget; 206 | buildConfigurationList = B62AE227233C7FC800503B70 /* Build configuration list for PBXNativeTarget "DesignCodeUITests" */; 207 | buildPhases = ( 208 | B62AE214233C7FC800503B70 /* Sources */, 209 | B62AE215233C7FC800503B70 /* Frameworks */, 210 | B62AE216233C7FC800503B70 /* Resources */, 211 | ); 212 | buildRules = ( 213 | ); 214 | dependencies = ( 215 | B62AE21A233C7FC800503B70 /* PBXTargetDependency */, 216 | ); 217 | name = DesignCodeUITests; 218 | productName = DesignCodeUITests; 219 | productReference = B62AE218233C7FC800503B70 /* DesignCodeUITests.xctest */; 220 | productType = "com.apple.product-type.bundle.ui-testing"; 221 | }; 222 | /* End PBXNativeTarget section */ 223 | 224 | /* Begin PBXProject section */ 225 | B62AE1EF233C7FC700503B70 /* Project object */ = { 226 | isa = PBXProject; 227 | attributes = { 228 | LastSwiftUpdateCheck = 1100; 229 | LastUpgradeCheck = 1100; 230 | ORGANIZATIONNAME = Wei; 231 | TargetAttributes = { 232 | B62AE1F6233C7FC700503B70 = { 233 | CreatedOnToolsVersion = 11.0; 234 | }; 235 | B62AE20C233C7FC800503B70 = { 236 | CreatedOnToolsVersion = 11.0; 237 | TestTargetID = B62AE1F6233C7FC700503B70; 238 | }; 239 | B62AE217233C7FC800503B70 = { 240 | CreatedOnToolsVersion = 11.0; 241 | TestTargetID = B62AE1F6233C7FC700503B70; 242 | }; 243 | }; 244 | }; 245 | buildConfigurationList = B62AE1F2233C7FC700503B70 /* Build configuration list for PBXProject "DesignCode" */; 246 | compatibilityVersion = "Xcode 9.3"; 247 | developmentRegion = en; 248 | hasScannedForEncodings = 0; 249 | knownRegions = ( 250 | en, 251 | Base, 252 | ); 253 | mainGroup = B62AE1EE233C7FC700503B70; 254 | productRefGroup = B62AE1F8233C7FC700503B70 /* Products */; 255 | projectDirPath = ""; 256 | projectRoot = ""; 257 | targets = ( 258 | B62AE1F6233C7FC700503B70 /* DesignCode */, 259 | B62AE20C233C7FC800503B70 /* DesignCodeTests */, 260 | B62AE217233C7FC800503B70 /* DesignCodeUITests */, 261 | ); 262 | }; 263 | /* End PBXProject section */ 264 | 265 | /* Begin PBXResourcesBuildPhase section */ 266 | B62AE1F5233C7FC700503B70 /* Resources */ = { 267 | isa = PBXResourcesBuildPhase; 268 | buildActionMask = 2147483647; 269 | files = ( 270 | B62AE207233C7FC800503B70 /* LaunchScreen.storyboard in Resources */, 271 | B62AE204233C7FC800503B70 /* Preview Assets.xcassets in Resources */, 272 | B62AE201233C7FC800503B70 /* Assets.xcassets in Resources */, 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | }; 276 | B62AE20B233C7FC800503B70 /* Resources */ = { 277 | isa = PBXResourcesBuildPhase; 278 | buildActionMask = 2147483647; 279 | files = ( 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | }; 283 | B62AE216233C7FC800503B70 /* Resources */ = { 284 | isa = PBXResourcesBuildPhase; 285 | buildActionMask = 2147483647; 286 | files = ( 287 | ); 288 | runOnlyForDeploymentPostprocessing = 0; 289 | }; 290 | /* End PBXResourcesBuildPhase section */ 291 | 292 | /* Begin PBXSourcesBuildPhase section */ 293 | B62AE1F3233C7FC700503B70 /* Sources */ = { 294 | isa = PBXSourcesBuildPhase; 295 | buildActionMask = 2147483647; 296 | files = ( 297 | B62AE1FB233C7FC700503B70 /* AppDelegate.swift in Sources */, 298 | B62AE235233DCE6000503B70 /* UpdateStore.swift in Sources */, 299 | B62AE231233DB93D00503B70 /* UpdateList.swift in Sources */, 300 | B62AE22D233D9CA600503B70 /* HomeList.swift in Sources */, 301 | B62AE233233DCB6B00503B70 /* UpdateDetail.swift in Sources */, 302 | B62AE1FD233C7FC700503B70 /* SceneDelegate.swift in Sources */, 303 | B62AE22B233CA7A200503B70 /* Home.swift in Sources */, 304 | B62AE1FF233C7FC700503B70 /* ContentView.swift in Sources */, 305 | B62AE22F233DB29400503B70 /* BlurView.swift in Sources */, 306 | B62AE239233DDA6700503B70 /* Settings.swift in Sources */, 307 | B62AE23B233DE15100503B70 /* CertificateRow.swift in Sources */, 308 | B62AE237233DD2CA00503B70 /* TabBar.swift in Sources */, 309 | ); 310 | runOnlyForDeploymentPostprocessing = 0; 311 | }; 312 | B62AE209233C7FC800503B70 /* Sources */ = { 313 | isa = PBXSourcesBuildPhase; 314 | buildActionMask = 2147483647; 315 | files = ( 316 | B62AE212233C7FC800503B70 /* DesignCodeTests.swift in Sources */, 317 | ); 318 | runOnlyForDeploymentPostprocessing = 0; 319 | }; 320 | B62AE214233C7FC800503B70 /* Sources */ = { 321 | isa = PBXSourcesBuildPhase; 322 | buildActionMask = 2147483647; 323 | files = ( 324 | B62AE21D233C7FC800503B70 /* DesignCodeUITests.swift in Sources */, 325 | ); 326 | runOnlyForDeploymentPostprocessing = 0; 327 | }; 328 | /* End PBXSourcesBuildPhase section */ 329 | 330 | /* Begin PBXTargetDependency section */ 331 | B62AE20F233C7FC800503B70 /* PBXTargetDependency */ = { 332 | isa = PBXTargetDependency; 333 | target = B62AE1F6233C7FC700503B70 /* DesignCode */; 334 | targetProxy = B62AE20E233C7FC800503B70 /* PBXContainerItemProxy */; 335 | }; 336 | B62AE21A233C7FC800503B70 /* PBXTargetDependency */ = { 337 | isa = PBXTargetDependency; 338 | target = B62AE1F6233C7FC700503B70 /* DesignCode */; 339 | targetProxy = B62AE219233C7FC800503B70 /* PBXContainerItemProxy */; 340 | }; 341 | /* End PBXTargetDependency section */ 342 | 343 | /* Begin PBXVariantGroup section */ 344 | B62AE205233C7FC800503B70 /* LaunchScreen.storyboard */ = { 345 | isa = PBXVariantGroup; 346 | children = ( 347 | B62AE206233C7FC800503B70 /* Base */, 348 | ); 349 | name = LaunchScreen.storyboard; 350 | sourceTree = ""; 351 | }; 352 | /* End PBXVariantGroup section */ 353 | 354 | /* Begin XCBuildConfiguration section */ 355 | B62AE21F233C7FC800503B70 /* Debug */ = { 356 | isa = XCBuildConfiguration; 357 | buildSettings = { 358 | ALWAYS_SEARCH_USER_PATHS = NO; 359 | CLANG_ANALYZER_NONNULL = YES; 360 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 361 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 362 | CLANG_CXX_LIBRARY = "libc++"; 363 | CLANG_ENABLE_MODULES = YES; 364 | CLANG_ENABLE_OBJC_ARC = YES; 365 | CLANG_ENABLE_OBJC_WEAK = YES; 366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 367 | CLANG_WARN_BOOL_CONVERSION = YES; 368 | CLANG_WARN_COMMA = YES; 369 | CLANG_WARN_CONSTANT_CONVERSION = YES; 370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 372 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 373 | CLANG_WARN_EMPTY_BODY = YES; 374 | CLANG_WARN_ENUM_CONVERSION = YES; 375 | CLANG_WARN_INFINITE_RECURSION = YES; 376 | CLANG_WARN_INT_CONVERSION = YES; 377 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 378 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 379 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 380 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 381 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 382 | CLANG_WARN_STRICT_PROTOTYPES = YES; 383 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 384 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 385 | CLANG_WARN_UNREACHABLE_CODE = YES; 386 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 387 | COPY_PHASE_STRIP = NO; 388 | DEBUG_INFORMATION_FORMAT = dwarf; 389 | ENABLE_STRICT_OBJC_MSGSEND = YES; 390 | ENABLE_TESTABILITY = YES; 391 | GCC_C_LANGUAGE_STANDARD = gnu11; 392 | GCC_DYNAMIC_NO_PIC = NO; 393 | GCC_NO_COMMON_BLOCKS = YES; 394 | GCC_OPTIMIZATION_LEVEL = 0; 395 | GCC_PREPROCESSOR_DEFINITIONS = ( 396 | "DEBUG=1", 397 | "$(inherited)", 398 | ); 399 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 400 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 401 | GCC_WARN_UNDECLARED_SELECTOR = YES; 402 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 403 | GCC_WARN_UNUSED_FUNCTION = YES; 404 | GCC_WARN_UNUSED_VARIABLE = YES; 405 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 406 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 407 | MTL_FAST_MATH = YES; 408 | ONLY_ACTIVE_ARCH = YES; 409 | SDKROOT = iphoneos; 410 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 411 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 412 | }; 413 | name = Debug; 414 | }; 415 | B62AE220233C7FC800503B70 /* Release */ = { 416 | isa = XCBuildConfiguration; 417 | buildSettings = { 418 | ALWAYS_SEARCH_USER_PATHS = NO; 419 | CLANG_ANALYZER_NONNULL = YES; 420 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 421 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 422 | CLANG_CXX_LIBRARY = "libc++"; 423 | CLANG_ENABLE_MODULES = YES; 424 | CLANG_ENABLE_OBJC_ARC = YES; 425 | CLANG_ENABLE_OBJC_WEAK = YES; 426 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 427 | CLANG_WARN_BOOL_CONVERSION = YES; 428 | CLANG_WARN_COMMA = YES; 429 | CLANG_WARN_CONSTANT_CONVERSION = YES; 430 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 431 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 432 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 433 | CLANG_WARN_EMPTY_BODY = YES; 434 | CLANG_WARN_ENUM_CONVERSION = YES; 435 | CLANG_WARN_INFINITE_RECURSION = YES; 436 | CLANG_WARN_INT_CONVERSION = YES; 437 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 438 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 439 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 440 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 441 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 442 | CLANG_WARN_STRICT_PROTOTYPES = YES; 443 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 444 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 445 | CLANG_WARN_UNREACHABLE_CODE = YES; 446 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 447 | COPY_PHASE_STRIP = NO; 448 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 449 | ENABLE_NS_ASSERTIONS = NO; 450 | ENABLE_STRICT_OBJC_MSGSEND = YES; 451 | GCC_C_LANGUAGE_STANDARD = gnu11; 452 | GCC_NO_COMMON_BLOCKS = YES; 453 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 454 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 455 | GCC_WARN_UNDECLARED_SELECTOR = YES; 456 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 457 | GCC_WARN_UNUSED_FUNCTION = YES; 458 | GCC_WARN_UNUSED_VARIABLE = YES; 459 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 460 | MTL_ENABLE_DEBUG_INFO = NO; 461 | MTL_FAST_MATH = YES; 462 | SDKROOT = iphoneos; 463 | SWIFT_COMPILATION_MODE = wholemodule; 464 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 465 | VALIDATE_PRODUCT = YES; 466 | }; 467 | name = Release; 468 | }; 469 | B62AE222233C7FC800503B70 /* Debug */ = { 470 | isa = XCBuildConfiguration; 471 | buildSettings = { 472 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 473 | CODE_SIGN_STYLE = Automatic; 474 | DEVELOPMENT_ASSET_PATHS = "\"DesignCode/Preview Content\""; 475 | ENABLE_PREVIEWS = YES; 476 | INFOPLIST_FILE = DesignCode/Info.plist; 477 | LD_RUNPATH_SEARCH_PATHS = ( 478 | "$(inherited)", 479 | "@executable_path/Frameworks", 480 | ); 481 | PRODUCT_BUNDLE_IDENTIFIER = dev.bughub.DesignCode; 482 | PRODUCT_NAME = "$(TARGET_NAME)"; 483 | SWIFT_VERSION = 5.0; 484 | TARGETED_DEVICE_FAMILY = "1,2"; 485 | }; 486 | name = Debug; 487 | }; 488 | B62AE223233C7FC800503B70 /* Release */ = { 489 | isa = XCBuildConfiguration; 490 | buildSettings = { 491 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 492 | CODE_SIGN_STYLE = Automatic; 493 | DEVELOPMENT_ASSET_PATHS = "\"DesignCode/Preview Content\""; 494 | ENABLE_PREVIEWS = YES; 495 | INFOPLIST_FILE = DesignCode/Info.plist; 496 | LD_RUNPATH_SEARCH_PATHS = ( 497 | "$(inherited)", 498 | "@executable_path/Frameworks", 499 | ); 500 | PRODUCT_BUNDLE_IDENTIFIER = dev.bughub.DesignCode; 501 | PRODUCT_NAME = "$(TARGET_NAME)"; 502 | SWIFT_VERSION = 5.0; 503 | TARGETED_DEVICE_FAMILY = "1,2"; 504 | }; 505 | name = Release; 506 | }; 507 | B62AE225233C7FC800503B70 /* Debug */ = { 508 | isa = XCBuildConfiguration; 509 | buildSettings = { 510 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 511 | BUNDLE_LOADER = "$(TEST_HOST)"; 512 | CODE_SIGN_STYLE = Automatic; 513 | INFOPLIST_FILE = DesignCodeTests/Info.plist; 514 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 515 | LD_RUNPATH_SEARCH_PATHS = ( 516 | "$(inherited)", 517 | "@executable_path/Frameworks", 518 | "@loader_path/Frameworks", 519 | ); 520 | PRODUCT_BUNDLE_IDENTIFIER = dev.bughub.DesignCodeTests; 521 | PRODUCT_NAME = "$(TARGET_NAME)"; 522 | SWIFT_VERSION = 5.0; 523 | TARGETED_DEVICE_FAMILY = "1,2"; 524 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DesignCode.app/DesignCode"; 525 | }; 526 | name = Debug; 527 | }; 528 | B62AE226233C7FC800503B70 /* Release */ = { 529 | isa = XCBuildConfiguration; 530 | buildSettings = { 531 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 532 | BUNDLE_LOADER = "$(TEST_HOST)"; 533 | CODE_SIGN_STYLE = Automatic; 534 | INFOPLIST_FILE = DesignCodeTests/Info.plist; 535 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 536 | LD_RUNPATH_SEARCH_PATHS = ( 537 | "$(inherited)", 538 | "@executable_path/Frameworks", 539 | "@loader_path/Frameworks", 540 | ); 541 | PRODUCT_BUNDLE_IDENTIFIER = dev.bughub.DesignCodeTests; 542 | PRODUCT_NAME = "$(TARGET_NAME)"; 543 | SWIFT_VERSION = 5.0; 544 | TARGETED_DEVICE_FAMILY = "1,2"; 545 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DesignCode.app/DesignCode"; 546 | }; 547 | name = Release; 548 | }; 549 | B62AE228233C7FC800503B70 /* Debug */ = { 550 | isa = XCBuildConfiguration; 551 | buildSettings = { 552 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 553 | CODE_SIGN_STYLE = Automatic; 554 | INFOPLIST_FILE = DesignCodeUITests/Info.plist; 555 | LD_RUNPATH_SEARCH_PATHS = ( 556 | "$(inherited)", 557 | "@executable_path/Frameworks", 558 | "@loader_path/Frameworks", 559 | ); 560 | PRODUCT_BUNDLE_IDENTIFIER = dev.bughub.DesignCodeUITests; 561 | PRODUCT_NAME = "$(TARGET_NAME)"; 562 | SWIFT_VERSION = 5.0; 563 | TARGETED_DEVICE_FAMILY = "1,2"; 564 | TEST_TARGET_NAME = DesignCode; 565 | }; 566 | name = Debug; 567 | }; 568 | B62AE229233C7FC800503B70 /* Release */ = { 569 | isa = XCBuildConfiguration; 570 | buildSettings = { 571 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 572 | CODE_SIGN_STYLE = Automatic; 573 | INFOPLIST_FILE = DesignCodeUITests/Info.plist; 574 | LD_RUNPATH_SEARCH_PATHS = ( 575 | "$(inherited)", 576 | "@executable_path/Frameworks", 577 | "@loader_path/Frameworks", 578 | ); 579 | PRODUCT_BUNDLE_IDENTIFIER = dev.bughub.DesignCodeUITests; 580 | PRODUCT_NAME = "$(TARGET_NAME)"; 581 | SWIFT_VERSION = 5.0; 582 | TARGETED_DEVICE_FAMILY = "1,2"; 583 | TEST_TARGET_NAME = DesignCode; 584 | }; 585 | name = Release; 586 | }; 587 | /* End XCBuildConfiguration section */ 588 | 589 | /* Begin XCConfigurationList section */ 590 | B62AE1F2233C7FC700503B70 /* Build configuration list for PBXProject "DesignCode" */ = { 591 | isa = XCConfigurationList; 592 | buildConfigurations = ( 593 | B62AE21F233C7FC800503B70 /* Debug */, 594 | B62AE220233C7FC800503B70 /* Release */, 595 | ); 596 | defaultConfigurationIsVisible = 0; 597 | defaultConfigurationName = Release; 598 | }; 599 | B62AE221233C7FC800503B70 /* Build configuration list for PBXNativeTarget "DesignCode" */ = { 600 | isa = XCConfigurationList; 601 | buildConfigurations = ( 602 | B62AE222233C7FC800503B70 /* Debug */, 603 | B62AE223233C7FC800503B70 /* Release */, 604 | ); 605 | defaultConfigurationIsVisible = 0; 606 | defaultConfigurationName = Release; 607 | }; 608 | B62AE224233C7FC800503B70 /* Build configuration list for PBXNativeTarget "DesignCodeTests" */ = { 609 | isa = XCConfigurationList; 610 | buildConfigurations = ( 611 | B62AE225233C7FC800503B70 /* Debug */, 612 | B62AE226233C7FC800503B70 /* Release */, 613 | ); 614 | defaultConfigurationIsVisible = 0; 615 | defaultConfigurationName = Release; 616 | }; 617 | B62AE227233C7FC800503B70 /* Build configuration list for PBXNativeTarget "DesignCodeUITests" */ = { 618 | isa = XCConfigurationList; 619 | buildConfigurations = ( 620 | B62AE228233C7FC800503B70 /* Debug */, 621 | B62AE229233C7FC800503B70 /* Release */, 622 | ); 623 | defaultConfigurationIsVisible = 0; 624 | defaultConfigurationName = Release; 625 | }; 626 | /* End XCConfigurationList section */ 627 | }; 628 | rootObject = B62AE1EF233C7FC700503B70 /* Project object */; 629 | } 630 | -------------------------------------------------------------------------------- /DesignCode.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DesignCode.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /DesignCode/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // DesignCode 4 | // 5 | // Created by Wei on 2019/9/26. 6 | // Copyright © 2019 Wei. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | 15 | 16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 17 | // Override point for customization after application launch. 18 | return true 19 | } 20 | 21 | // MARK: UISceneSession Lifecycle 22 | 23 | func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { 24 | // Called when a new scene session is being created. 25 | // Use this method to select a configuration to create the new scene with. 26 | return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) 27 | } 28 | 29 | func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { 30 | // Called when the user discards a scene session. 31 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. 32 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return. 33 | } 34 | 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "icon_20pt@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "icon_20pt@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "icon_29pt.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "icon_29pt@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "icon_29pt@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "icon_40pt@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "icon_40pt@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "icon_60pt@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "icon_60pt@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "idiom" : "ipad", 59 | "size" : "20x20", 60 | "scale" : "1x" 61 | }, 62 | { 63 | "idiom" : "ipad", 64 | "size" : "20x20", 65 | "scale" : "2x" 66 | }, 67 | { 68 | "idiom" : "ipad", 69 | "size" : "29x29", 70 | "scale" : "1x" 71 | }, 72 | { 73 | "idiom" : "ipad", 74 | "size" : "29x29", 75 | "scale" : "2x" 76 | }, 77 | { 78 | "idiom" : "ipad", 79 | "size" : "40x40", 80 | "scale" : "1x" 81 | }, 82 | { 83 | "idiom" : "ipad", 84 | "size" : "40x40", 85 | "scale" : "2x" 86 | }, 87 | { 88 | "idiom" : "ipad", 89 | "size" : "76x76", 90 | "scale" : "1x" 91 | }, 92 | { 93 | "size" : "76x76", 94 | "idiom" : "ipad", 95 | "filename" : "icon_76pt@2x.png", 96 | "scale" : "2x" 97 | }, 98 | { 99 | "size" : "83.5x83.5", 100 | "idiom" : "ipad", 101 | "filename" : "icon_83.5@2x.png", 102 | "scale" : "2x" 103 | }, 104 | { 105 | "size" : "1024x1024", 106 | "idiom" : "ios-marketing", 107 | "filename" : "Icon.png", 108 | "scale" : "1x" 109 | } 110 | ], 111 | "info" : { 112 | "version" : 1, 113 | "author" : "xcode" 114 | } 115 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/AppIcon.appiconset/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/AppIcon.appiconset/Icon.png -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/AppIcon.appiconset/icon_20pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/AppIcon.appiconset/icon_20pt@2x.png -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/AppIcon.appiconset/icon_20pt@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/AppIcon.appiconset/icon_20pt@3x.png -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/AppIcon.appiconset/icon_29pt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/AppIcon.appiconset/icon_29pt.png -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/AppIcon.appiconset/icon_29pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/AppIcon.appiconset/icon_29pt@2x.png -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/AppIcon.appiconset/icon_29pt@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/AppIcon.appiconset/icon_29pt@3x.png -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/AppIcon.appiconset/icon_40pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/AppIcon.appiconset/icon_40pt@2x.png -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/AppIcon.appiconset/icon_40pt@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/AppIcon.appiconset/icon_40pt@3x.png -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/AppIcon.appiconset/icon_60pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/AppIcon.appiconset/icon_60pt@2x.png -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/AppIcon.appiconset/icon_60pt@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/AppIcon.appiconset/icon_60pt@3x.png -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/AppIcon.appiconset/icon_76pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/AppIcon.appiconset/icon_76pt@2x.png -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/AppIcon.appiconset/icon_83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/AppIcon.appiconset/icon_83.5@2x.png -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Background.imageset/Background.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/Background.imageset/Background.pdf -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Background.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Background.pdf", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Certificate1.imageset/Certificate1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/Certificate1.imageset/Certificate1.pdf -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Certificate1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Certificate1.pdf", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Certificate2.imageset/Certificate2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/Certificate2.imageset/Certificate2.pdf -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Certificate2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Certificate2.pdf", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Certificate3.imageset/Certificate3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/Certificate3.imageset/Certificate3.pdf -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Certificate3.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Certificate3.pdf", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Certificate4.imageset/Certificate4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/Certificate4.imageset/Certificate4.pdf -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Certificate4.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Certificate4.pdf", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/accent.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "display-p3", 11 | "components" : { 12 | "red" : "0x5E", 13 | "alpha" : "1.000", 14 | "blue" : "0xFA", 15 | "green" : "0xCD" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/accentShadow.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "display-p3", 11 | "components" : { 12 | "red" : "0x5E", 13 | "alpha" : "0.300", 14 | "blue" : "0xFA", 15 | "green" : "0xCD" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/background.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "0xE6", 13 | "alpha" : "1.000", 14 | "blue" : "0xF3", 15 | "green" : "0xEA" 16 | } 17 | } 18 | }, 19 | { 20 | "idiom" : "universal", 21 | "appearances" : [ 22 | { 23 | "appearance" : "luminosity", 24 | "value" : "light" 25 | } 26 | ], 27 | "color" : { 28 | "color-space" : "srgb", 29 | "components" : { 30 | "red" : "0.902", 31 | "alpha" : "1.000", 32 | "blue" : "0.953", 33 | "green" : "0.918" 34 | } 35 | } 36 | }, 37 | { 38 | "idiom" : "universal", 39 | "appearances" : [ 40 | { 41 | "appearance" : "luminosity", 42 | "value" : "dark" 43 | } 44 | ], 45 | "color" : { 46 | "color-space" : "srgb", 47 | "components" : { 48 | "red" : "0x00", 49 | "alpha" : "1.000", 50 | "blue" : "0x00", 51 | "green" : "0x00" 52 | } 53 | } 54 | } 55 | ] 56 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/background10.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "0xC9", 13 | "alpha" : "1.000", 14 | "blue" : "0x7A", 15 | "green" : "0x3C" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/background2.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "0x00", 13 | "alpha" : "1.000", 14 | "blue" : "0x00", 15 | "green" : "0x00" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/background3.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "0x45", 13 | "alpha" : "1.000", 14 | "blue" : "0xC9", 15 | "green" : "0x3C" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/background4.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "0xEC", 13 | "alpha" : "1.000", 14 | "blue" : "0x7B", 15 | "green" : "0x7E" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/background5.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "0.263", 13 | "alpha" : "1.000", 14 | "blue" : "0.808", 15 | "green" : "0.765" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/background6.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "0x3F", 13 | "alpha" : "1.000", 14 | "blue" : "0xFF", 15 | "green" : "0xA2" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/background7.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "0x3F", 13 | "alpha" : "1.000", 14 | "blue" : "0xFF", 15 | "green" : "0x54" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/background8.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "0x45", 13 | "alpha" : "1.000", 14 | "blue" : "0xC9", 15 | "green" : "0x3C" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/background9.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "0x80", 13 | "alpha" : "1.000", 14 | "blue" : "0xC9", 15 | "green" : "0x3C" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/backgroundShadow3.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "0.271", 13 | "alpha" : "0.300", 14 | "blue" : "0.788", 15 | "green" : "0.235" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/backgroundShadow4.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "0.925", 13 | "alpha" : "0.300", 14 | "blue" : "0.482", 15 | "green" : "0.494" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/buttonShadow.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "0x00", 13 | "alpha" : "0.250", 14 | "blue" : "0x00", 15 | "green" : "0x00" 16 | } 17 | } 18 | }, 19 | { 20 | "idiom" : "universal", 21 | "appearances" : [ 22 | { 23 | "appearance" : "luminosity", 24 | "value" : "dark" 25 | } 26 | ], 27 | "color" : { 28 | "color-space" : "srgb", 29 | "components" : { 30 | "red" : "0.000", 31 | "alpha" : "1.000", 32 | "blue" : "0.000", 33 | "green" : "0.000" 34 | } 35 | } 36 | } 37 | ] 38 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/gradient1.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "extended-srgb", 11 | "components" : { 12 | "red" : "0.271", 13 | "alpha" : "1.000", 14 | "blue" : "0.788", 15 | "green" : "0.235" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/gradient2.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "extended-srgb", 11 | "components" : { 12 | "red" : "0.447", 13 | "alpha" : "1.000", 14 | "blue" : "0.792", 15 | "green" : "0.424" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/icons.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "0xA9", 13 | "alpha" : "1.000", 14 | "blue" : "0xD4", 15 | "green" : "0xBB" 16 | } 17 | } 18 | }, 19 | { 20 | "idiom" : "universal", 21 | "appearances" : [ 22 | { 23 | "appearance" : "luminosity", 24 | "value" : "dark" 25 | } 26 | ], 27 | "color" : { 28 | "color-space" : "srgb", 29 | "components" : { 30 | "red" : "0x66", 31 | "alpha" : "1.000", 32 | "blue" : "0x66", 33 | "green" : "0x66" 34 | } 35 | } 36 | } 37 | ] 38 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/primary.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "1.000", 13 | "alpha" : "1.000", 14 | "blue" : "1.000", 15 | "green" : "1.000" 16 | } 17 | } 18 | }, 19 | { 20 | "idiom" : "universal", 21 | "appearances" : [ 22 | { 23 | "appearance" : "luminosity", 24 | "value" : "dark" 25 | } 26 | ], 27 | "color" : { 28 | "color-space" : "srgb", 29 | "components" : { 30 | "red" : "1.000", 31 | "alpha" : "0.700", 32 | "blue" : "1.000", 33 | "green" : "1.000" 34 | } 35 | } 36 | } 37 | ] 38 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Colors/secondary.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | }, 6 | "colors" : [ 7 | { 8 | "idiom" : "universal", 9 | "color" : { 10 | "color-space" : "srgb", 11 | "components" : { 12 | "red" : "1.000", 13 | "alpha" : "0.600", 14 | "blue" : "1.000", 15 | "green" : "1.000" 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/IconCards.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "IconCards.pdf", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/IconCards.imageset/IconCards.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/IconCards.imageset/IconCards.pdf -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/IconHome.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "IconHome.pdf", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/IconHome.imageset/IconHome.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/IconHome.imageset/IconHome.pdf -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/IconSettings.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "IconSettings.pdf", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/IconSettings.imageset/IconSettings.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/IconSettings.imageset/IconSettings.pdf -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Illustration1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Illustration1.pdf", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Illustration1.imageset/Illustration1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/Illustration1.imageset/Illustration1.pdf -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Illustration2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Illustration2.pdf", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Illustration2.imageset/Illustration2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/Illustration2.imageset/Illustration2.pdf -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Illustration3.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Illustration3.pdf", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Illustration3.imageset/Illustration3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/Illustration3.imageset/Illustration3.pdf -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Illustration4.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Illustration4.pdf", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Illustration4.imageset/Illustration4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/Illustration4.imageset/Illustration4.pdf -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Illustration5.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Illustration5.pdf", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Illustration5.imageset/Illustration5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/Illustration5.imageset/Illustration5.pdf -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Logo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Logo.pdf", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DesignCode/Assets.xcassets/Logo.imageset/Logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/DesignCode/Assets.xcassets/Logo.imageset/Logo.pdf -------------------------------------------------------------------------------- /DesignCode/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 | -------------------------------------------------------------------------------- /DesignCode/BlurView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BlurView.swift 3 | // DesignCode 4 | // 5 | // Created by Wei on 2019/9/27. 6 | // Copyright © 2019 Wei. All rights reserved. 7 | // 8 | 9 | import SwiftUI 10 | 11 | struct BlurView: UIViewRepresentable { 12 | let style: UIBlurEffect.Style 13 | 14 | func makeUIView(context: Context) -> UIView { 15 | let view = UIView(frame: .zero) 16 | view.backgroundColor = .clear 17 | let blurEffect = UIBlurEffect(style: style) 18 | let blurView = UIVisualEffectView(effect: blurEffect) 19 | blurView.translatesAutoresizingMaskIntoConstraints = false 20 | view.insertSubview(blurView, at: 0) 21 | 22 | NSLayoutConstraint.activate([ 23 | blurView.heightAnchor.constraint(equalTo: view.heightAnchor), 24 | blurView.widthAnchor.constraint(equalTo: view.widthAnchor)]) 25 | return view 26 | } 27 | 28 | func updateUIView(_ uiView: UIView, context: Context) { 29 | 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /DesignCode/CertificateRow.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CertificateRow.swift 3 | // DesignCode 4 | // 5 | // Created by Wei on 2019/9/27. 6 | // Copyright © 2019 Wei. All rights reserved. 7 | // 8 | 9 | import SwiftUI 10 | 11 | struct CertificateRow: View { 12 | var body: some View { 13 | VStack(alignment: .leading) { 14 | Text("Certifiates") 15 | .font(.system(size: 20)) 16 | .fontWeight(.heavy) 17 | .padding(.leading, 40) 18 | 19 | ScrollView(.horizontal, showsIndicators: false){ 20 | HStack(spacing: 20) { 21 | ForEach(certificateData) {item in 22 | CertificateView(certificate: item) 23 | } 24 | }.padding() 25 | } 26 | }.padding(.top, 20) 27 | } 28 | } 29 | 30 | struct Certificate: Identifiable { 31 | var id = UUID() 32 | var title: String 33 | var image: String 34 | var width: Int 35 | var height: Int 36 | } 37 | 38 | let certificateData = [ 39 | Certificate(title: "UI Design", image: "Certificate1", width: 230, height: 150), 40 | Certificate(title: "SwiftUI", image: "Certificate2", width: 230, height: 150), 41 | Certificate(title: "Sketch", image: "Certificate3", width: 230, height: 150), 42 | Certificate(title: "Framer", image: "Certificate4", width: 230, height: 150) 43 | ] 44 | 45 | struct CertificateRow_Previews: PreviewProvider { 46 | static var previews: some View { 47 | CertificateRow() 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /DesignCode/ContentView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ContentView.swift 3 | // DesignCode 4 | // 5 | // Created by Wei on 2019/9/26. 6 | // Copyright © 2019 Wei. All rights reserved. 7 | // 8 | 9 | import SwiftUI 10 | 11 | struct ContentView: View { 12 | 13 | @State var show: Bool = false 14 | @State var viewState = CGSize.zero 15 | 16 | var body: some View { 17 | ZStack { 18 | 19 | BlurView(style: .systemMaterial) 20 | 21 | TitleView() 22 | // .blur(radius: show ? 20 : 0) 23 | .animation(.default) 24 | 25 | CardBottomView() 26 | // .blur(radius: show ? 20 : 0) 27 | .animation(.default) 28 | 29 | BackCardView() 30 | .offset(x: 0, y: show ? -400 : -40) 31 | .scaleEffect(0.85) 32 | .rotationEffect(Angle(degrees: show ? 15 : 0)) 33 | .rotation3DEffect(Angle(degrees:show ? 50 : 0), axis: (x: 10.0, y: 10.0, z: 10.0)) 34 | .animation(.easeInOut(duration: 0.7)) 35 | .offset(x: viewState.width, y:viewState.height) 36 | 37 | BackCardView() 38 | .offset(x: 0, y: show ? -200 : -20) 39 | .scaleEffect(0.9) 40 | .rotationEffect(Angle(degrees: show ? 10 : 0)) 41 | .rotation3DEffect(Angle(degrees:show ? 40 : 0), axis: (x: 10.0, y: 10.0, z: 10.0)) 42 | .animation(.easeInOut(duration: 0.5)) 43 | .offset(x: viewState.width, y:viewState.height) 44 | 45 | CertificateView() 46 | .offset(x: viewState.width, y:viewState.height) 47 | .scaleEffect(0.95) 48 | .rotationEffect(Angle(degrees: show ? 5 : 0)) 49 | .rotation3DEffect(Angle(degrees:show ? 30 : 0), axis: (x: 10.0, y: 10.0, z: 10.0)) 50 | .animation(.spring()) 51 | .onTapGesture { 52 | self.show.toggle() 53 | }.gesture( 54 | DragGesture().onChanged { value in 55 | self.viewState = value.translation 56 | self.show = true 57 | } 58 | .onEnded{ value in 59 | self.viewState = CGSize.zero 60 | self.show = false 61 | } 62 | ) 63 | } 64 | } 65 | } 66 | 67 | struct TitleView:View { 68 | var body: some View { 69 | VStack() { 70 | HStack { 71 | Text("Certificates") 72 | .font(.largeTitle) 73 | .bold() 74 | Spacer() 75 | } 76 | Image("Illustration5") 77 | Spacer() 78 | }.padding() 79 | } 80 | } 81 | 82 | struct CardBottomView:View { 83 | var body: some View { 84 | VStack(spacing: 20.0) { 85 | Rectangle() 86 | .frame(width: 60, height: 6) 87 | .background(Color.gray) 88 | .opacity(0.1) 89 | .cornerRadius(3) 90 | Text("This certificate is proof that Meng To has achieved the UI Design course with approval from a Design+Code instructor.") 91 | .lineLimit(10) 92 | Spacer() 93 | } 94 | .frame(minWidth: 0, maxWidth: .infinity) 95 | .padding() 96 | .padding(.horizontal) 97 | .background(BlurView(style: .systemThickMaterial)) 98 | .cornerRadius(30) 99 | .shadow(radius: 20) 100 | .offset(y: 600) 101 | } 102 | } 103 | 104 | struct CertificateView: View { 105 | var certificate: Certificate = Certificate(title: "UI Design", image: "Background", width: 340, height: 220) 106 | var body: some View { 107 | VStack { 108 | HStack{ 109 | VStack(alignment: .leading){ 110 | Text(certificate.title) 111 | .font(.headline) 112 | .bold() 113 | .foregroundColor(Color("primary")) 114 | .padding(.top) 115 | Text("certificate") 116 | .foregroundColor(Color("accent")) 117 | } 118 | Spacer() 119 | Image("Logo") 120 | .resizable() 121 | .frame(width: 30.0, height: 30.0) 122 | }.padding(.horizontal) 123 | Spacer() 124 | Image(certificate.image) 125 | .frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity) 126 | .offset(y: 50) 127 | } 128 | .frame(width: CGFloat(certificate.width), height: CGFloat(certificate.height)) 129 | .background(Color.black) 130 | .cornerRadius(10) 131 | .shadow(radius: 20) 132 | } 133 | } 134 | 135 | struct BackCardView:View { 136 | var body: some View { 137 | VStack{ 138 | Text("Card Back") 139 | } 140 | .frame(width: 340.0, height: 220.0) 141 | .background(Color.green) 142 | .cornerRadius(10) 143 | .shadow(radius: 20) 144 | } 145 | } 146 | 147 | struct ContentView_Previews: PreviewProvider { 148 | static var previews: some View { 149 | ContentView() 150 | } 151 | } 152 | -------------------------------------------------------------------------------- /DesignCode/Home.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Home.swift 3 | // DesignCode 4 | // 5 | // Created by Wei on 2019/9/26. 6 | // Copyright © 2019 Wei. All rights reserved. 7 | // 8 | 9 | import SwiftUI 10 | 11 | struct Home: View { 12 | 13 | var menuItems = ["My Account", "Billing", "Team", "Sign out"] 14 | 15 | 16 | @State var show = false 17 | @State var showProfile = false 18 | 19 | var body: some View { 20 | ZStack { 21 | 22 | HomeList() 23 | // .blur(radius: show ? 20 : 0) 24 | .scaleEffect( showProfile ? 0.95 : 1) 25 | .animation(.default) 26 | 27 | ContentView() 28 | .cornerRadius(30) 29 | .shadow(radius: 20) 30 | .animation(.spring()) 31 | .offset(y: showProfile ? 70 : UIScreen.main.bounds.height) 32 | 33 | MenuButton(show: $show) 34 | 35 | MenuRightButtons(show: $showProfile) 36 | 37 | MenuView(show: $show) 38 | 39 | } 40 | } 41 | } 42 | 43 | struct MenuRightButtons:View { 44 | @Binding var show: Bool 45 | var body: some View { 46 | ZStack(alignment: .topTrailing) { 47 | HStack { 48 | Button(action: { 49 | self.show.toggle() 50 | }) { 51 | CircleButton(icon: "person.crop.circle") 52 | } 53 | Button(action: { 54 | self.show.toggle() 55 | }) { 56 | CircleButton(icon: "bell") 57 | } 58 | } 59 | //为了把ZStack撑大 60 | Spacer() 61 | } 62 | } 63 | } 64 | 65 | struct MenuButton:View { 66 | @Binding var show: Bool 67 | var body: some View { 68 | ZStack(alignment: .topLeading) { 69 | Button(action: { 70 | self.show.toggle() 71 | }) { 72 | HStack { 73 | Spacer() 74 | Image(systemName: "list.dash") 75 | .foregroundColor(.primary) 76 | } 77 | .padding(.trailing, 20) 78 | .frame(width: 90, height: 60) 79 | .background(BlurView(style: .systemUltraThinMaterial)) 80 | .cornerRadius(30) 81 | .shadow(color: Color("buttonShadow"), radius: 10, x: 0, y: 10) 82 | .offset(x: -25) 83 | } 84 | //为了把ZStack撑大 85 | Spacer() 86 | } 87 | } 88 | } 89 | 90 | struct CircleButton:View { 91 | var icon: String 92 | var body: some View { 93 | HStack { 94 | Image(systemName: icon) 95 | .foregroundColor(.primary) 96 | } 97 | .frame(width: 44, height: 44) 98 | .background(BlurView(style: .systemUltraThinMaterial)) 99 | .cornerRadius(30) 100 | .shadow(color: Color("buttonShadow"), radius: 10, x: 0, y: 10) 101 | } 102 | } 103 | 104 | struct MenuView:View { 105 | var menu = menuData 106 | @Binding var show: Bool 107 | var body:some View { 108 | VStack(alignment: .leading, spacing: 20) { 109 | ForEach(menu) { item in 110 | MenuRow(menu: item) 111 | } 112 | Spacer() 113 | } 114 | .padding(.top, 20) 115 | .padding(30) 116 | .frame(minWidth: 0, maxWidth: .infinity) 117 | // .background(BlurView(style: .systemMaterial)) 118 | .background(Color.white) 119 | .cornerRadius(30) 120 | .shadow(radius: 20) 121 | .rotation3DEffect(Angle(degrees: show ? 0 : 60), axis: (x: 0, y: 10.0, z: 0)) 122 | .padding(.trailing, 60) 123 | .offset(x: show ? 0 : -UIScreen.main.bounds.width) 124 | .animation(.spring()) 125 | .onTapGesture { 126 | self.show.toggle() 127 | } 128 | } 129 | } 130 | 131 | struct MenuRow:View { 132 | var menu: Menu 133 | var body: some View { 134 | HStack { 135 | Image(systemName: menu.icon) 136 | .imageScale(.large) 137 | .foregroundColor(Color("icons")) 138 | .frame(width: 30, height: 30) 139 | 140 | Text(menu.title) 141 | .font(.headline) 142 | 143 | Spacer() 144 | } 145 | } 146 | } 147 | 148 | struct Menu:Identifiable { 149 | var id = UUID() 150 | var title: String 151 | var icon: String 152 | } 153 | 154 | let menuData = [ 155 | Menu(title: "My Account", icon: "person.crop.circle"), 156 | Menu(title: "Billing", icon: "creditcard"), 157 | Menu(title: "Team", icon: "person.2"), 158 | Menu(title: "Sign out", icon: "arrow.uturn.down") 159 | ] 160 | 161 | struct Home_Previews: PreviewProvider { 162 | static var previews: some View { 163 | Home() 164 | } 165 | } 166 | -------------------------------------------------------------------------------- /DesignCode/HomeList.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HomeList.swift 3 | // DesignCode 4 | // 5 | // Created by Wei on 2019/9/27. 6 | // Copyright © 2019 Wei. All rights reserved. 7 | // 8 | 9 | import SwiftUI 10 | 11 | struct HomeList: View { 12 | @State var isPresented = false 13 | var body: some View { 14 | ScrollView { 15 | VStack { 16 | HStack { 17 | VStack { 18 | Text("Courses") 19 | .font(.largeTitle) 20 | .bold() 21 | Text("22 courses").foregroundColor(.gray) 22 | } 23 | Spacer() 24 | } 25 | .padding(.leading, 70) 26 | 27 | ScrollView(.horizontal,showsIndicators: false) { 28 | HStack(spacing: 30){ 29 | ForEach(coursesData) {item in 30 | GeometryReader { geometry in 31 | CourseView(course: item) 32 | .onTapGesture { 33 | self.isPresented.toggle() 34 | } 35 | .rotation3DEffect(Angle(degrees: Double(geometry.frame(in: .global).minX - 40) / -20), axis: (x: 0, y: 10.0, z: 0)) 36 | }.frame(width: 246, height: 360) 37 | } 38 | } 39 | .padding(.leading, 50) 40 | .padding(.top, 30) 41 | .padding(.trailing, 50) 42 | } 43 | .sheet(isPresented: $isPresented) { ContentView() } 44 | 45 | CertificateRow() 46 | 47 | Spacer() 48 | }.padding(.top, 40) 49 | } 50 | } 51 | } 52 | 53 | struct CourseView:View { 54 | var course:Course 55 | var body: some View { 56 | VStack(alignment: .leading) { 57 | Text(course.title) 58 | .font(.title) 59 | .bold() 60 | .padding() 61 | .lineLimit(4) 62 | .foregroundColor(Color.white) 63 | .padding(.trailing, 50) 64 | 65 | Spacer() 66 | Image(course.image) 67 | .resizable() 68 | .aspectRatio(contentMode: .fit) 69 | .frame(width: 246, height: 150) 70 | .padding(.bottom, 30) 71 | } 72 | .background(course.color) 73 | .cornerRadius(30) 74 | .frame(width: 246, height: 360) 75 | .shadow(color: course.shadowColor, radius: 20, x: 0, y: 20) 76 | } 77 | } 78 | 79 | 80 | struct Course: Identifiable { 81 | var id = UUID() 82 | var title: String 83 | var image: String 84 | var color: Color 85 | var shadowColor: Color 86 | } 87 | 88 | let coursesData = [ 89 | Course(title: "Build an app with SwiftUI", image: "Illustration1", color: Color("background3"), shadowColor: Color("backgroundShadow3")), 90 | Course(title: "Design Course", image: "Illustration4", color: Color("background4"), shadowColor: Color("backgroundShadow4")), 91 | Course(title: "Build an app with SwiftUI", image: "Illustration1", color: Color("background3"), shadowColor: Color("backgroundShadow3")) 92 | ] 93 | 94 | struct HomeList_Previews: PreviewProvider { 95 | static var previews: some View { 96 | HomeList() 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /DesignCode/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UIApplicationSceneManifest 24 | 25 | UIApplicationSupportsMultipleScenes 26 | 27 | UISceneConfigurations 28 | 29 | UIWindowSceneSessionRoleApplication 30 | 31 | 32 | UISceneConfigurationName 33 | Default Configuration 34 | UISceneDelegateClassName 35 | $(PRODUCT_MODULE_NAME).SceneDelegate 36 | 37 | 38 | 39 | 40 | UILaunchStoryboardName 41 | LaunchScreen 42 | UIRequiredDeviceCapabilities 43 | 44 | armv7 45 | 46 | UISupportedInterfaceOrientations 47 | 48 | UIInterfaceOrientationPortrait 49 | UIInterfaceOrientationLandscapeLeft 50 | UIInterfaceOrientationLandscapeRight 51 | 52 | UISupportedInterfaceOrientations~ipad 53 | 54 | UIInterfaceOrientationPortrait 55 | UIInterfaceOrientationPortraitUpsideDown 56 | UIInterfaceOrientationLandscapeLeft 57 | UIInterfaceOrientationLandscapeRight 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /DesignCode/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /DesignCode/SceneDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SceneDelegate.swift 3 | // DesignCode 4 | // 5 | // Created by Wei on 2019/9/26. 6 | // Copyright © 2019 Wei. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SwiftUI 11 | 12 | class SceneDelegate: UIResponder, UIWindowSceneDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { 18 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. 19 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. 20 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). 21 | 22 | // Create the SwiftUI view that provides the window contents. 23 | let contentView = TabBar() //Home() 24 | 25 | // Use a UIHostingController as window root view controller. 26 | if let windowScene = scene as? UIWindowScene { 27 | let window = UIWindow(windowScene: windowScene) 28 | window.rootViewController = UIHostingController(rootView: contentView) 29 | self.window = window 30 | window.makeKeyAndVisible() 31 | } 32 | } 33 | 34 | func sceneDidDisconnect(_ scene: UIScene) { 35 | // Called as the scene is being released by the system. 36 | // This occurs shortly after the scene enters the background, or when its session is discarded. 37 | // Release any resources associated with this scene that can be re-created the next time the scene connects. 38 | // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). 39 | } 40 | 41 | func sceneDidBecomeActive(_ scene: UIScene) { 42 | // Called when the scene has moved from an inactive state to an active state. 43 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. 44 | } 45 | 46 | func sceneWillResignActive(_ scene: UIScene) { 47 | // Called when the scene will move from an active state to an inactive state. 48 | // This may occur due to temporary interruptions (ex. an incoming phone call). 49 | } 50 | 51 | func sceneWillEnterForeground(_ scene: UIScene) { 52 | // Called as the scene transitions from the background to the foreground. 53 | // Use this method to undo the changes made on entering the background. 54 | } 55 | 56 | func sceneDidEnterBackground(_ scene: UIScene) { 57 | // Called as the scene transitions from the foreground to the background. 58 | // Use this method to save data, release shared resources, and store enough scene-specific state information 59 | // to restore the scene back to its current state. 60 | } 61 | 62 | 63 | } 64 | 65 | -------------------------------------------------------------------------------- /DesignCode/Settings.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Settings.swift 3 | // DesignCode 4 | // 5 | // Created by Wei on 2019/9/27. 6 | // Copyright © 2019 Wei. All rights reserved. 7 | // 8 | 9 | import SwiftUI 10 | 11 | struct Settings: View { 12 | @State var receive = false 13 | @State var number = 1 14 | @State var selection = 1 15 | @State var date = Date() 16 | @State var email = "" 17 | @State var submit = false 18 | 19 | var body: some View { 20 | NavigationView { 21 | Form { 22 | Toggle (isOn: $receive){ 23 | Text("Receive Notifications") 24 | } 25 | Stepper(value: $number, in: 1 ... 10){ 26 | Text("\(number) Notification\(number > 1 ? "s" : "") per week") 27 | } 28 | Picker(selection: $selection, label: Text("Favorite")){ 29 | Text("SwiftUI").tag(1) 30 | Text("Reat").tag(2) 31 | } 32 | DatePicker(selection: $date) { 33 | Text("Date") 34 | } 35 | Section(header: Text("Email")) { 36 | TextField("Your email", text: $email) 37 | } 38 | Button(action:{ self.submit.toggle() }){ 39 | Text("Submit") 40 | }.alert(isPresented: $submit) { 41 | Alert(title: Text("Thanks"), message: Text("Email:\(email)")) 42 | } 43 | }.navigationBarTitle("Settings") 44 | } 45 | } 46 | } 47 | 48 | struct Settings_Previews: PreviewProvider { 49 | static var previews: some View { 50 | Settings() 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /DesignCode/TabBar.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TabBar.swift 3 | // DesignCode 4 | // 5 | // Created by Wei on 2019/9/27. 6 | // Copyright © 2019 Wei. All rights reserved. 7 | // 8 | 9 | import SwiftUI 10 | 11 | struct TabBar: View { 12 | var body: some View { 13 | TabView { 14 | Home() 15 | .tabItem { 16 | Image("IconHome") 17 | Text("HOME") 18 | } 19 | ContentView() 20 | .tabItem { 21 | Image("IconCards") 22 | Text("Certificates") 23 | } 24 | Settings() 25 | .tabItem { 26 | Image("IconSettings") 27 | Text("Updates") 28 | } 29 | } 30 | } 31 | } 32 | 33 | struct TabBar_Previews: PreviewProvider { 34 | static var previews: some View { 35 | TabBar() 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /DesignCode/UpdateDetail.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UpdateDetail.swift 3 | // DesignCode 4 | // 5 | // Created by Wei on 2019/9/27. 6 | // Copyright © 2019 Wei. All rights reserved. 7 | // 8 | 9 | import SwiftUI 10 | 11 | struct UpdateDetail: View { 12 | var update: Update 13 | var body: some View { 14 | VStack(spacing: 20.0) { 15 | Text(update.title) 16 | .bold() 17 | .font(.title) 18 | Image(update.image) 19 | .resizable() 20 | .aspectRatio(contentMode: .fit) 21 | .frame(height: 200) 22 | Text(update.text) 23 | .lineLimit(nil) 24 | .frame(minWidth: 0, maxWidth: .infinity, alignment: .leading) 25 | Spacer() 26 | }.padding(20) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /DesignCode/UpdateList.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UpdateList.swift 3 | // DesignCode 4 | // 5 | // Created by Wei on 2019/9/27. 6 | // Copyright © 2019 Wei. All rights reserved. 7 | // 8 | 9 | import SwiftUI 10 | 11 | struct UpdateList: View { 12 | @State var showSettingModel = false 13 | 14 | @ObservedObject var updateStore: UpdateStore = UpdateStore() 15 | 16 | var settingButton : some View { 17 | Button(action:{ self.showSettingModel.toggle() }) { 18 | Image(systemName: "gear") 19 | } 20 | } 21 | 22 | func move(from source:IndexSet, to destination: Int){ 23 | self.updateStore.updates.swapAt(source.first!, destination) 24 | } 25 | 26 | var body: some View { 27 | NavigationView { 28 | 29 | List { 30 | 31 | Button(action:{ 32 | self.updateStore.updates.append(Update(image: "Certificate1", title: "New Title", text: "New Text", date: "JUL 1")) 33 | }){ 34 | Text("Add Update") 35 | } 36 | 37 | ForEach(self.updateStore.updates){item in 38 | NavigationLink(destination: UpdateDetail(update: item)) { 39 | HStack(spacing: 12.0) { 40 | Image(item.image) 41 | .resizable() 42 | .aspectRatio(contentMode: .fit) 43 | .frame(width: 80, height: 80) 44 | .background(Color("backgound")) 45 | .cornerRadius(20) 46 | 47 | VStack(alignment: .leading) { 48 | Text(item.title) 49 | .font(.headline) 50 | Text(item.text) 51 | .lineLimit(2) 52 | .lineSpacing(4) 53 | .font(.subheadline) 54 | .frame(height: 50) 55 | Text(item.date) 56 | .font(.caption) 57 | .foregroundColor(.gray) 58 | } 59 | } 60 | }.padding(.vertical, 8.0) 61 | }.onDelete { index in 62 | self.updateStore.updates.remove(at: index.first!) 63 | }.onMove(perform: move) 64 | } 65 | .navigationBarTitle("Updates") 66 | .navigationBarItems(trailing: EditButton()) 67 | .sheet(isPresented: $showSettingModel){ 68 | Text("Settings") 69 | } 70 | .onAppear{ 71 | self.updateStore.updates = updateData 72 | } 73 | } 74 | } 75 | } 76 | 77 | struct Update: Identifiable { 78 | var id = UUID() 79 | var image: String 80 | var title: String 81 | var text: String 82 | var date: String 83 | } 84 | 85 | let updateData = [ 86 | Update(image: "Illustration1", title: "SwiftUI", text: "Take your static design to the next level and build real apps with the simplicity of a prototpying tool. The best way to beginners to learn code, and the most efficient way for developers to learn design.", date: "JUN 26"), 87 | Update(image: "Illustration2", title: "Framer X", text: "Framer makes it incredibly easy to add complex user interactions inside your prototype, taking your design and code components to the next level. Playground allows you to quickly test new concepts within the all - new in -app code editor. You can combine your current app flow with new code components created in Playground.", date: "JUN 11"), 88 | Update(image: "Illustration3", title: "CSS Layout", text: "Learn how to combine CSS Grid, Flexbox, animations and responsive design to create a beautiful prototype in CodePen.", date: "MAY 26"), 89 | Update(image: "Illustration4", title: "React Native", text: "Learn how to implement gestures, Lottie animations and Firebase login.", date: "MAY 15"), 90 | Update(image: "Certificate1", title: "Unity", text: "Unity course teaching basics, C#, assets, level design and gameplay", date: "MAR 19") 91 | ] 92 | 93 | struct UpdateList_Previews: PreviewProvider { 94 | static var previews: some View { 95 | UpdateList() 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /DesignCode/UpdateStore.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UpdateStore.swift 3 | // DesignCode 4 | // 5 | // Created by Wei on 2019/9/27. 6 | // Copyright © 2019 Wei. All rights reserved. 7 | // 8 | 9 | import SwiftUI 10 | import Combine 11 | 12 | class UpdateStore: ObservableObject { 13 | @Published var updates: [Update] = [] 14 | } 15 | -------------------------------------------------------------------------------- /DesignCodeTests/DesignCodeTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DesignCodeTests.swift 3 | // DesignCodeTests 4 | // 5 | // Created by Wei on 2019/9/26. 6 | // Copyright © 2019 Wei. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import DesignCode 11 | 12 | class DesignCodeTests: XCTestCase { 13 | 14 | override func setUp() { 15 | // Put setup code here. This method is called before the invocation of each test method in the class. 16 | } 17 | 18 | override func tearDown() { 19 | // Put teardown code here. This method is called after the invocation of each test method in the class. 20 | } 21 | 22 | func testExample() { 23 | // This is an example of a functional test case. 24 | // Use XCTAssert and related functions to verify your tests produce the correct results. 25 | } 26 | 27 | func testPerformanceExample() { 28 | // This is an example of a performance test case. 29 | self.measure { 30 | // Put the code you want to measure the time of here. 31 | } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /DesignCodeTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /DesignCodeUITests/DesignCodeUITests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DesignCodeUITests.swift 3 | // DesignCodeUITests 4 | // 5 | // Created by Wei on 2019/9/26. 6 | // Copyright © 2019 Wei. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class DesignCodeUITests: XCTestCase { 12 | 13 | override func setUp() { 14 | // Put setup code here. This method is called before the invocation of each test method in the class. 15 | 16 | // In UI tests it is usually best to stop immediately when a failure occurs. 17 | continueAfterFailure = false 18 | 19 | // 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. 20 | } 21 | 22 | override func tearDown() { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | } 25 | 26 | func testExample() { 27 | // UI tests must launch the application that they test. 28 | let app = XCUIApplication() 29 | app.launch() 30 | 31 | // Use recording to get started writing UI tests. 32 | // Use XCTAssert and related functions to verify your tests produce the correct results. 33 | } 34 | 35 | func testLaunchPerformance() { 36 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, *) { 37 | // This measures how long it takes to launch your application. 38 | measure(metrics: [XCTOSSignpostMetric.applicationLaunch]) { 39 | XCUIApplication().launch() 40 | } 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /DesignCodeUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 RandyWei 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DesignCode 2 | 这是一个SwiftUI Demo项目,涵盖以下组件 3 | - TabView 4 | - NavigationView 5 | - NavigationLink 6 | - ScrollView 7 | - List 8 | - VStack 9 | - HStack 10 | - Image 11 | - Spacer 12 | - Button 13 | - Text 14 | - TextField 15 | - Picker 16 | - DatePicker 17 | - Toggle 18 | - Stepper 19 | - Form 20 | - Section 21 | 22 | ## 截屏 23 | ![0000001](screenshot/0000001.gif) 24 | 25 | ![0000002](screenshot/0000002.gif) 26 | 27 | ![0000003](screenshot/0000003.gif) 28 | 29 | ## 存在疑问 30 | 31 | - TextField在模拟器上卡死,没有真机测试 32 | - blur模糊动画卡顿,不确定是否模拟器原因 33 | - TabView和NavigationView配合使用问题 34 | 35 | ## 视频地址 36 | 37 | [https://www.youtube.com/channel/UCTIhfOopxukTIRkbXJ3kN-g](https://www.youtube.com/channel/UCTIhfOopxukTIRkbXJ3kN-g) 38 | 39 | 40 | ## 原作者相关网站 41 | 42 | [https://designcode.io/swiftui?promo=learnswiftui](https://designcode.io/swiftui?promo=learnswiftui) 43 | 44 | 相关视频如果没有梯子,可以在B站上搜索 45 | -------------------------------------------------------------------------------- /screenshot/0000001.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/screenshot/0000001.gif -------------------------------------------------------------------------------- /screenshot/0000002.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/screenshot/0000002.gif -------------------------------------------------------------------------------- /screenshot/0000003.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RandyWei/DesignCode/2d8e1a61d64fa2f8794690fb253d1b2b63c8085d/screenshot/0000003.gif --------------------------------------------------------------------------------