├── .DS_Store ├── .gitignore ├── LICENSE ├── README.md ├── SwitchIt ├── SwitchIt.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── SwitchIt │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── icon_128x128.png │ │ │ ├── icon_128x128@2x.png │ │ │ ├── icon_16x16 .png │ │ │ ├── icon_256x256.png │ │ │ ├── icon_256x256@2x-1.png │ │ │ ├── icon_256x256@2x.png │ │ │ ├── icon_32x32-1.png │ │ │ ├── icon_32x32.png │ │ │ ├── icon_32x32@2x.png │ │ │ └── icon_512x512@2x.png │ │ ├── Contents.json │ │ └── SwitchItLogo.imageset │ │ │ ├── Contents.json │ │ │ ├── icon_256x256@2x.png │ │ │ ├── icon_512x512.png │ │ │ └── icon_512x512@2x.png │ ├── Base.lproj │ │ └── Main.storyboard │ ├── Info.plist │ ├── ViewController.h │ ├── ViewController.m │ └── main.m └── SwitchItExtension │ ├── Info.plist │ ├── SourceEditorCommand.h │ ├── SourceEditorCommand.m │ ├── SourceEditorExtension.h │ ├── SourceEditorExtension.m │ └── SwitchItExtension.entitlements ├── SwitchItGifs ├── objcSwitchOneLine.gif ├── objcSwitchWithEquals.gif ├── regularSwiftSwitch.gif └── swiftSwitchOneLine.gif └── SwitchItImages ├── icon_128x128.png ├── icon_128x128.psd ├── icon_128x128@2x.png ├── icon_16x16 .png ├── icon_256x256.png ├── icon_256x256@2x.png ├── icon_32x32.png ├── icon_32x32@2x.png ├── icon_32x32@2x.psd ├── icon_512x512.png ├── icon_512x512.psd └── icon_512x512@2x.png /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/.DS_Store -------------------------------------------------------------------------------- /.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 | ### Xcode Patch ### 32 | *.xcodeproj/* 33 | !*.xcodeproj/project.pbxproj 34 | !*.xcodeproj/xcshareddata/ 35 | !*.xcworkspace/contents.xcworkspacedata 36 | /*.gcno 37 | 38 | # User-specific stuff: 39 | .idea/**/workspace.xml 40 | .idea/**/tasks.xml 41 | .idea/dictionaries 42 | 43 | # Sensitive or high-churn files: 44 | .idea/**/dataSources/ 45 | .idea/**/dataSources.ids 46 | .idea/**/dataSources.xml 47 | .idea/**/dataSources.local.xml 48 | .idea/**/sqlDataSources.xml 49 | .idea/**/dynamic.xml 50 | .idea/**/uiDesigner.xml 51 | 52 | 53 | # CocoaPods 54 | # 55 | # We recommend against adding the Pods directory to your .gitignore. However 56 | # you should judge for yourself, the pros and cons are mentioned at: 57 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 58 | # 59 | # Pods/ 60 | 61 | # Carthage 62 | # 63 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 64 | # Carthage/Checkouts 65 | 66 | Carthage/Build 67 | 68 | # fastlane 69 | # 70 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 71 | # screenshots whenever they are needed. 72 | # For more information about the recommended setup visit: 73 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 74 | 75 | fastlane/report.xml 76 | fastlane/Preview.html 77 | fastlane/screenshots 78 | fastlane/test_output 79 | 80 | # Code Injection 81 | # 82 | # After new code Injection tools there's a generated folder /iOSInjectionProject 83 | # https://github.com/johnno1962/injectionforxcode 84 | 85 | iOSInjectionProject/ 86 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 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 | # SwitchIt 🔄 2 | An Enum to Switch statement extension for XCode that is built to work with both Swift and Objective-C. 3 | 4 | # What made me build it? 5 | I created it because I hate wasting time typing out all of the switch statements by hand. 6 | 7 | # Examples 8 | Lets say you have a regular enum defined somewhere in your code. You'd go to the definition and highlight the area using your cursor. 9 | Once you've done this just go to Editor > SwitchIt > Create Switch to generate your full switch statement. See the output for both Swift and Objective-C below: 10 | 11 | ![Alt text](SwitchItGifs/regularSwiftSwitch.gif?raw=true "Regular swift switch expansion") ![Alt text](SwitchItGifs/objcSwitchWithEquals.gif?raw=true "Regular Objective-c switch expansion") 12 | 13 | Do you not like separating out all of your enum types on different lines? Well, we still have you covered there too. Check out the extra examples below: 14 | 15 | ![Alt text](SwitchItGifs/swiftSwitchOneLine.gif?raw=true "Swift switch expansion from one line") 16 | ![Alt text](SwitchItGifs/objcSwitchOneLine.gif?raw=true "Objective-C switch expansion from one line") 17 | 18 | # Tip 19 | Finding it too slow to move your mouse to the Editor menu all the time? Create a shortcut for SwitchIt by going to XCode > Preferences > Key Bindings and filter by SwitchIt. 20 | From there you can assign any keyboard shortcut you like. 21 | 22 | # Installation 23 | - Clone/Download the repo 24 | - Open SwitchIt.xcodeproj 25 | - Enable target signing for both the Application and the XCode Extension using your own developer ID 26 | - Select the application target and then Product > Archive 27 | - Export the archive as a macOS App 28 | - Run the app, then you can quit it but dont delete it 29 | - Go to System Preferences -> Extensions -> Xcode Source Editor and enable the SwitchIt extension 30 | - The menu-item should now be available from Xcode's Editor menu 31 | 32 | # License 33 | MIT, see LICENSE 34 | -------------------------------------------------------------------------------- /SwitchIt/SwitchIt.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | CA0A203A1ED97D500035C467 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0A20391ED97D500035C467 /* AppDelegate.m */; }; 11 | CA0A203D1ED97D500035C467 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0A203C1ED97D500035C467 /* main.m */; }; 12 | CA0A20401ED97D500035C467 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0A203F1ED97D500035C467 /* ViewController.m */; }; 13 | CA0A20421ED97D500035C467 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CA0A20411ED97D500035C467 /* Assets.xcassets */; }; 14 | CA0A20451ED97D500035C467 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CA0A20431ED97D500035C467 /* Main.storyboard */; }; 15 | CA0A20531ED97D790035C467 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CA0A20521ED97D790035C467 /* Cocoa.framework */; }; 16 | CA0A20591ED97D790035C467 /* SourceEditorExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0A20581ED97D790035C467 /* SourceEditorExtension.m */; }; 17 | CA0A205C1ED97D790035C467 /* SourceEditorCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0A205B1ED97D790035C467 /* SourceEditorCommand.m */; }; 18 | CA0A20601ED97D790035C467 /* SwitchItExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = CA0A20501ED97D790035C467 /* SwitchItExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | CA0A205E1ED97D790035C467 /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = CA0A202D1ED97D500035C467 /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = CA0A204F1ED97D790035C467; 27 | remoteInfo = SwitchItExtension; 28 | }; 29 | /* End PBXContainerItemProxy section */ 30 | 31 | /* Begin PBXCopyFilesBuildPhase section */ 32 | CA0A20641ED97D790035C467 /* Embed App Extensions */ = { 33 | isa = PBXCopyFilesBuildPhase; 34 | buildActionMask = 2147483647; 35 | dstPath = ""; 36 | dstSubfolderSpec = 13; 37 | files = ( 38 | CA0A20601ED97D790035C467 /* SwitchItExtension.appex in Embed App Extensions */, 39 | ); 40 | name = "Embed App Extensions"; 41 | runOnlyForDeploymentPostprocessing = 0; 42 | }; 43 | /* End PBXCopyFilesBuildPhase section */ 44 | 45 | /* Begin PBXFileReference section */ 46 | CA0A20351ED97D500035C467 /* SwitchIt.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwitchIt.app; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | CA0A20381ED97D500035C467 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 48 | CA0A20391ED97D500035C467 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 49 | CA0A203C1ED97D500035C467 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 50 | CA0A203E1ED97D500035C467 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 51 | CA0A203F1ED97D500035C467 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 52 | CA0A20411ED97D500035C467 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 53 | CA0A20441ED97D500035C467 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 54 | CA0A20461ED97D500035C467 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | CA0A20501ED97D790035C467 /* SwitchItExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = SwitchItExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | CA0A20521ED97D790035C467 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; 57 | CA0A20561ED97D790035C467 /* SwitchItExtension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SwitchItExtension.entitlements; sourceTree = ""; }; 58 | CA0A20571ED97D790035C467 /* SourceEditorExtension.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SourceEditorExtension.h; sourceTree = ""; }; 59 | CA0A20581ED97D790035C467 /* SourceEditorExtension.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SourceEditorExtension.m; sourceTree = ""; }; 60 | CA0A205A1ED97D790035C467 /* SourceEditorCommand.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SourceEditorCommand.h; sourceTree = ""; }; 61 | CA0A205B1ED97D790035C467 /* SourceEditorCommand.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SourceEditorCommand.m; sourceTree = ""; }; 62 | CA0A205D1ED97D790035C467 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 63 | /* End PBXFileReference section */ 64 | 65 | /* Begin PBXFrameworksBuildPhase section */ 66 | CA0A20321ED97D500035C467 /* Frameworks */ = { 67 | isa = PBXFrameworksBuildPhase; 68 | buildActionMask = 2147483647; 69 | files = ( 70 | ); 71 | runOnlyForDeploymentPostprocessing = 0; 72 | }; 73 | CA0A204D1ED97D790035C467 /* Frameworks */ = { 74 | isa = PBXFrameworksBuildPhase; 75 | buildActionMask = 2147483647; 76 | files = ( 77 | CA0A20531ED97D790035C467 /* Cocoa.framework in Frameworks */, 78 | ); 79 | runOnlyForDeploymentPostprocessing = 0; 80 | }; 81 | /* End PBXFrameworksBuildPhase section */ 82 | 83 | /* Begin PBXGroup section */ 84 | CA0A202C1ED97D500035C467 = { 85 | isa = PBXGroup; 86 | children = ( 87 | CA0A20371ED97D500035C467 /* SwitchIt */, 88 | CA0A20541ED97D790035C467 /* SwitchItExtension */, 89 | CA0A20511ED97D790035C467 /* Frameworks */, 90 | CA0A20361ED97D500035C467 /* Products */, 91 | ); 92 | sourceTree = ""; 93 | }; 94 | CA0A20361ED97D500035C467 /* Products */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | CA0A20351ED97D500035C467 /* SwitchIt.app */, 98 | CA0A20501ED97D790035C467 /* SwitchItExtension.appex */, 99 | ); 100 | name = Products; 101 | sourceTree = ""; 102 | }; 103 | CA0A20371ED97D500035C467 /* SwitchIt */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | CA0A20381ED97D500035C467 /* AppDelegate.h */, 107 | CA0A20391ED97D500035C467 /* AppDelegate.m */, 108 | CA0A203E1ED97D500035C467 /* ViewController.h */, 109 | CA0A203F1ED97D500035C467 /* ViewController.m */, 110 | CA0A20411ED97D500035C467 /* Assets.xcassets */, 111 | CA0A20431ED97D500035C467 /* Main.storyboard */, 112 | CA0A20461ED97D500035C467 /* Info.plist */, 113 | CA0A203B1ED97D500035C467 /* Supporting Files */, 114 | ); 115 | path = SwitchIt; 116 | sourceTree = ""; 117 | }; 118 | CA0A203B1ED97D500035C467 /* Supporting Files */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | CA0A203C1ED97D500035C467 /* main.m */, 122 | ); 123 | name = "Supporting Files"; 124 | sourceTree = ""; 125 | }; 126 | CA0A20511ED97D790035C467 /* Frameworks */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | CA0A20521ED97D790035C467 /* Cocoa.framework */, 130 | ); 131 | name = Frameworks; 132 | sourceTree = ""; 133 | }; 134 | CA0A20541ED97D790035C467 /* SwitchItExtension */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | CA0A20571ED97D790035C467 /* SourceEditorExtension.h */, 138 | CA0A20581ED97D790035C467 /* SourceEditorExtension.m */, 139 | CA0A205A1ED97D790035C467 /* SourceEditorCommand.h */, 140 | CA0A205B1ED97D790035C467 /* SourceEditorCommand.m */, 141 | CA0A205D1ED97D790035C467 /* Info.plist */, 142 | CA0A20551ED97D790035C467 /* Supporting Files */, 143 | ); 144 | path = SwitchItExtension; 145 | sourceTree = ""; 146 | }; 147 | CA0A20551ED97D790035C467 /* Supporting Files */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | CA0A20561ED97D790035C467 /* SwitchItExtension.entitlements */, 151 | ); 152 | name = "Supporting Files"; 153 | sourceTree = ""; 154 | }; 155 | /* End PBXGroup section */ 156 | 157 | /* Begin PBXNativeTarget section */ 158 | CA0A20341ED97D500035C467 /* SwitchIt */ = { 159 | isa = PBXNativeTarget; 160 | buildConfigurationList = CA0A20491ED97D500035C467 /* Build configuration list for PBXNativeTarget "SwitchIt" */; 161 | buildPhases = ( 162 | CA0A20311ED97D500035C467 /* Sources */, 163 | CA0A20321ED97D500035C467 /* Frameworks */, 164 | CA0A20331ED97D500035C467 /* Resources */, 165 | CA0A20641ED97D790035C467 /* Embed App Extensions */, 166 | ); 167 | buildRules = ( 168 | ); 169 | dependencies = ( 170 | CA0A205F1ED97D790035C467 /* PBXTargetDependency */, 171 | ); 172 | name = SwitchIt; 173 | productName = SwitchIt; 174 | productReference = CA0A20351ED97D500035C467 /* SwitchIt.app */; 175 | productType = "com.apple.product-type.application"; 176 | }; 177 | CA0A204F1ED97D790035C467 /* SwitchItExtension */ = { 178 | isa = PBXNativeTarget; 179 | buildConfigurationList = CA0A20611ED97D790035C467 /* Build configuration list for PBXNativeTarget "SwitchItExtension" */; 180 | buildPhases = ( 181 | CA0A204C1ED97D790035C467 /* Sources */, 182 | CA0A204D1ED97D790035C467 /* Frameworks */, 183 | CA0A204E1ED97D790035C467 /* Resources */, 184 | ); 185 | buildRules = ( 186 | ); 187 | dependencies = ( 188 | ); 189 | name = SwitchItExtension; 190 | productName = SwitchItExtension; 191 | productReference = CA0A20501ED97D790035C467 /* SwitchItExtension.appex */; 192 | productType = "com.apple.product-type.xcode-extension"; 193 | }; 194 | /* End PBXNativeTarget section */ 195 | 196 | /* Begin PBXProject section */ 197 | CA0A202D1ED97D500035C467 /* Project object */ = { 198 | isa = PBXProject; 199 | attributes = { 200 | LastUpgradeCheck = 0830; 201 | ORGANIZATIONNAME = "Mark Sharvin"; 202 | TargetAttributes = { 203 | CA0A20341ED97D500035C467 = { 204 | CreatedOnToolsVersion = 8.3.2; 205 | DevelopmentTeam = W253ZV85QH; 206 | ProvisioningStyle = Automatic; 207 | }; 208 | CA0A204F1ED97D790035C467 = { 209 | CreatedOnToolsVersion = 8.3.2; 210 | DevelopmentTeam = W253ZV85QH; 211 | ProvisioningStyle = Automatic; 212 | }; 213 | }; 214 | }; 215 | buildConfigurationList = CA0A20301ED97D500035C467 /* Build configuration list for PBXProject "SwitchIt" */; 216 | compatibilityVersion = "Xcode 3.2"; 217 | developmentRegion = English; 218 | hasScannedForEncodings = 0; 219 | knownRegions = ( 220 | en, 221 | Base, 222 | ); 223 | mainGroup = CA0A202C1ED97D500035C467; 224 | productRefGroup = CA0A20361ED97D500035C467 /* Products */; 225 | projectDirPath = ""; 226 | projectRoot = ""; 227 | targets = ( 228 | CA0A20341ED97D500035C467 /* SwitchIt */, 229 | CA0A204F1ED97D790035C467 /* SwitchItExtension */, 230 | ); 231 | }; 232 | /* End PBXProject section */ 233 | 234 | /* Begin PBXResourcesBuildPhase section */ 235 | CA0A20331ED97D500035C467 /* Resources */ = { 236 | isa = PBXResourcesBuildPhase; 237 | buildActionMask = 2147483647; 238 | files = ( 239 | CA0A20421ED97D500035C467 /* Assets.xcassets in Resources */, 240 | CA0A20451ED97D500035C467 /* Main.storyboard in Resources */, 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | }; 244 | CA0A204E1ED97D790035C467 /* Resources */ = { 245 | isa = PBXResourcesBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | ); 249 | runOnlyForDeploymentPostprocessing = 0; 250 | }; 251 | /* End PBXResourcesBuildPhase section */ 252 | 253 | /* Begin PBXSourcesBuildPhase section */ 254 | CA0A20311ED97D500035C467 /* Sources */ = { 255 | isa = PBXSourcesBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | CA0A20401ED97D500035C467 /* ViewController.m in Sources */, 259 | CA0A203D1ED97D500035C467 /* main.m in Sources */, 260 | CA0A203A1ED97D500035C467 /* AppDelegate.m in Sources */, 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | CA0A204C1ED97D790035C467 /* Sources */ = { 265 | isa = PBXSourcesBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | CA0A20591ED97D790035C467 /* SourceEditorExtension.m in Sources */, 269 | CA0A205C1ED97D790035C467 /* SourceEditorCommand.m in Sources */, 270 | ); 271 | runOnlyForDeploymentPostprocessing = 0; 272 | }; 273 | /* End PBXSourcesBuildPhase section */ 274 | 275 | /* Begin PBXTargetDependency section */ 276 | CA0A205F1ED97D790035C467 /* PBXTargetDependency */ = { 277 | isa = PBXTargetDependency; 278 | target = CA0A204F1ED97D790035C467 /* SwitchItExtension */; 279 | targetProxy = CA0A205E1ED97D790035C467 /* PBXContainerItemProxy */; 280 | }; 281 | /* End PBXTargetDependency section */ 282 | 283 | /* Begin PBXVariantGroup section */ 284 | CA0A20431ED97D500035C467 /* Main.storyboard */ = { 285 | isa = PBXVariantGroup; 286 | children = ( 287 | CA0A20441ED97D500035C467 /* Base */, 288 | ); 289 | name = Main.storyboard; 290 | sourceTree = ""; 291 | }; 292 | /* End PBXVariantGroup section */ 293 | 294 | /* Begin XCBuildConfiguration section */ 295 | CA0A20471ED97D500035C467 /* Debug */ = { 296 | isa = XCBuildConfiguration; 297 | buildSettings = { 298 | ALWAYS_SEARCH_USER_PATHS = NO; 299 | CLANG_ANALYZER_NONNULL = YES; 300 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 301 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 302 | CLANG_CXX_LIBRARY = "libc++"; 303 | CLANG_ENABLE_MODULES = YES; 304 | CLANG_ENABLE_OBJC_ARC = YES; 305 | CLANG_WARN_BOOL_CONVERSION = YES; 306 | CLANG_WARN_CONSTANT_CONVERSION = YES; 307 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 308 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 309 | CLANG_WARN_EMPTY_BODY = YES; 310 | CLANG_WARN_ENUM_CONVERSION = YES; 311 | CLANG_WARN_INFINITE_RECURSION = YES; 312 | CLANG_WARN_INT_CONVERSION = YES; 313 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 314 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 315 | CLANG_WARN_UNREACHABLE_CODE = YES; 316 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 317 | CODE_SIGN_IDENTITY = "-"; 318 | COPY_PHASE_STRIP = NO; 319 | DEBUG_INFORMATION_FORMAT = dwarf; 320 | ENABLE_STRICT_OBJC_MSGSEND = YES; 321 | ENABLE_TESTABILITY = YES; 322 | GCC_C_LANGUAGE_STANDARD = gnu99; 323 | GCC_DYNAMIC_NO_PIC = NO; 324 | GCC_NO_COMMON_BLOCKS = YES; 325 | GCC_OPTIMIZATION_LEVEL = 0; 326 | GCC_PREPROCESSOR_DEFINITIONS = ( 327 | "DEBUG=1", 328 | "$(inherited)", 329 | ); 330 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 331 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 332 | GCC_WARN_UNDECLARED_SELECTOR = YES; 333 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 334 | GCC_WARN_UNUSED_FUNCTION = YES; 335 | GCC_WARN_UNUSED_VARIABLE = YES; 336 | MACOSX_DEPLOYMENT_TARGET = 10.12; 337 | MTL_ENABLE_DEBUG_INFO = YES; 338 | ONLY_ACTIVE_ARCH = YES; 339 | SDKROOT = macosx; 340 | }; 341 | name = Debug; 342 | }; 343 | CA0A20481ED97D500035C467 /* Release */ = { 344 | isa = XCBuildConfiguration; 345 | buildSettings = { 346 | ALWAYS_SEARCH_USER_PATHS = NO; 347 | CLANG_ANALYZER_NONNULL = YES; 348 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 349 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 350 | CLANG_CXX_LIBRARY = "libc++"; 351 | CLANG_ENABLE_MODULES = YES; 352 | CLANG_ENABLE_OBJC_ARC = YES; 353 | CLANG_WARN_BOOL_CONVERSION = YES; 354 | CLANG_WARN_CONSTANT_CONVERSION = YES; 355 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 356 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 357 | CLANG_WARN_EMPTY_BODY = YES; 358 | CLANG_WARN_ENUM_CONVERSION = YES; 359 | CLANG_WARN_INFINITE_RECURSION = YES; 360 | CLANG_WARN_INT_CONVERSION = YES; 361 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 362 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 363 | CLANG_WARN_UNREACHABLE_CODE = YES; 364 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 365 | CODE_SIGN_IDENTITY = "-"; 366 | COPY_PHASE_STRIP = NO; 367 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 368 | ENABLE_NS_ASSERTIONS = NO; 369 | ENABLE_STRICT_OBJC_MSGSEND = YES; 370 | GCC_C_LANGUAGE_STANDARD = gnu99; 371 | GCC_NO_COMMON_BLOCKS = YES; 372 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 373 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 374 | GCC_WARN_UNDECLARED_SELECTOR = YES; 375 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 376 | GCC_WARN_UNUSED_FUNCTION = YES; 377 | GCC_WARN_UNUSED_VARIABLE = YES; 378 | MACOSX_DEPLOYMENT_TARGET = 10.12; 379 | MTL_ENABLE_DEBUG_INFO = NO; 380 | SDKROOT = macosx; 381 | }; 382 | name = Release; 383 | }; 384 | CA0A204A1ED97D500035C467 /* Debug */ = { 385 | isa = XCBuildConfiguration; 386 | buildSettings = { 387 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 388 | CODE_SIGN_IDENTITY = "Mac Developer"; 389 | COMBINE_HIDPI_IMAGES = YES; 390 | DEVELOPMENT_TEAM = W253ZV85QH; 391 | INFOPLIST_FILE = SwitchIt/Info.plist; 392 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 393 | PRODUCT_BUNDLE_IDENTIFIER = VanRisk.SwitchIt; 394 | PRODUCT_NAME = "$(TARGET_NAME)"; 395 | PROVISIONING_PROFILE_SPECIFIER = ""; 396 | }; 397 | name = Debug; 398 | }; 399 | CA0A204B1ED97D500035C467 /* Release */ = { 400 | isa = XCBuildConfiguration; 401 | buildSettings = { 402 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 403 | CODE_SIGN_IDENTITY = "Mac Developer"; 404 | COMBINE_HIDPI_IMAGES = YES; 405 | DEVELOPMENT_TEAM = W253ZV85QH; 406 | INFOPLIST_FILE = SwitchIt/Info.plist; 407 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 408 | PRODUCT_BUNDLE_IDENTIFIER = VanRisk.SwitchIt; 409 | PRODUCT_NAME = "$(TARGET_NAME)"; 410 | PROVISIONING_PROFILE_SPECIFIER = ""; 411 | }; 412 | name = Release; 413 | }; 414 | CA0A20621ED97D790035C467 /* Debug */ = { 415 | isa = XCBuildConfiguration; 416 | buildSettings = { 417 | CODE_SIGN_ENTITLEMENTS = SwitchItExtension/SwitchItExtension.entitlements; 418 | CODE_SIGN_IDENTITY = "Mac Developer"; 419 | COMBINE_HIDPI_IMAGES = YES; 420 | DEVELOPMENT_TEAM = W253ZV85QH; 421 | INFOPLIST_FILE = SwitchItExtension/Info.plist; 422 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @executable_path/../../../../Frameworks"; 423 | MACOSX_DEPLOYMENT_TARGET = 10.11; 424 | PRODUCT_BUNDLE_IDENTIFIER = VanRisk.SwitchIt.SwitchItExtension; 425 | PRODUCT_NAME = "$(TARGET_NAME)"; 426 | PROVISIONING_PROFILE_SPECIFIER = ""; 427 | SKIP_INSTALL = YES; 428 | }; 429 | name = Debug; 430 | }; 431 | CA0A20631ED97D790035C467 /* Release */ = { 432 | isa = XCBuildConfiguration; 433 | buildSettings = { 434 | CODE_SIGN_ENTITLEMENTS = SwitchItExtension/SwitchItExtension.entitlements; 435 | CODE_SIGN_IDENTITY = "Mac Developer"; 436 | COMBINE_HIDPI_IMAGES = YES; 437 | DEVELOPMENT_TEAM = W253ZV85QH; 438 | INFOPLIST_FILE = SwitchItExtension/Info.plist; 439 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @executable_path/../../../../Frameworks"; 440 | MACOSX_DEPLOYMENT_TARGET = 10.11; 441 | PRODUCT_BUNDLE_IDENTIFIER = VanRisk.SwitchIt.SwitchItExtension; 442 | PRODUCT_NAME = "$(TARGET_NAME)"; 443 | PROVISIONING_PROFILE_SPECIFIER = ""; 444 | SKIP_INSTALL = YES; 445 | }; 446 | name = Release; 447 | }; 448 | /* End XCBuildConfiguration section */ 449 | 450 | /* Begin XCConfigurationList section */ 451 | CA0A20301ED97D500035C467 /* Build configuration list for PBXProject "SwitchIt" */ = { 452 | isa = XCConfigurationList; 453 | buildConfigurations = ( 454 | CA0A20471ED97D500035C467 /* Debug */, 455 | CA0A20481ED97D500035C467 /* Release */, 456 | ); 457 | defaultConfigurationIsVisible = 0; 458 | defaultConfigurationName = Release; 459 | }; 460 | CA0A20491ED97D500035C467 /* Build configuration list for PBXNativeTarget "SwitchIt" */ = { 461 | isa = XCConfigurationList; 462 | buildConfigurations = ( 463 | CA0A204A1ED97D500035C467 /* Debug */, 464 | CA0A204B1ED97D500035C467 /* Release */, 465 | ); 466 | defaultConfigurationIsVisible = 0; 467 | defaultConfigurationName = Release; 468 | }; 469 | CA0A20611ED97D790035C467 /* Build configuration list for PBXNativeTarget "SwitchItExtension" */ = { 470 | isa = XCConfigurationList; 471 | buildConfigurations = ( 472 | CA0A20621ED97D790035C467 /* Debug */, 473 | CA0A20631ED97D790035C467 /* Release */, 474 | ); 475 | defaultConfigurationIsVisible = 0; 476 | defaultConfigurationName = Release; 477 | }; 478 | /* End XCConfigurationList section */ 479 | }; 480 | rootObject = CA0A202D1ED97D500035C467 /* Project object */; 481 | } 482 | -------------------------------------------------------------------------------- /SwitchIt/SwitchIt.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // SwitchIt 4 | // 5 | // Created by Mark Sharvin on 27/05/2017. 6 | // Copyright © 2017 Mark Sharvin. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : NSObject 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // SwitchIt 4 | // 5 | // Created by Mark Sharvin on 27/05/2017. 6 | // Copyright © 2017 Mark Sharvin. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { 18 | // Insert code here to initialize your application 19 | } 20 | 21 | 22 | - (void)applicationWillTerminate:(NSNotification *)aNotification { 23 | // Insert code here to tear down your application 24 | } 25 | 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "icon_16x16 .png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "icon_32x32-1.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "icon_32x32.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "icon_32x32@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "icon_128x128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "icon_128x128@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "icon_256x256.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "icon_256x256@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "icon_256x256@2x-1.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "icon_512x512@2x.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_128x128.png -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_128x128@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_128x128@2x.png -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_16x16 .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_16x16 .png -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_256x256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_256x256.png -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_256x256@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_256x256@2x-1.png -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_256x256@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_256x256@2x.png -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_32x32-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_32x32-1.png -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_32x32.png -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_32x32@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_32x32@2x.png -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_512x512@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchIt/SwitchIt/Assets.xcassets/AppIcon.appiconset/icon_512x512@2x.png -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Assets.xcassets/SwitchItLogo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icon_256x256@2x.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "icon_512x512.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "icon_512x512@2x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Assets.xcassets/SwitchItLogo.imageset/icon_256x256@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchIt/SwitchIt/Assets.xcassets/SwitchItLogo.imageset/icon_256x256@2x.png -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Assets.xcassets/SwitchItLogo.imageset/icon_512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchIt/SwitchIt/Assets.xcassets/SwitchItLogo.imageset/icon_512x512.png -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Assets.xcassets/SwitchItLogo.imageset/icon_512x512@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchIt/SwitchIt/Assets.xcassets/SwitchItLogo.imageset/icon_512x512@2x.png -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 195 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | Copyright © 2017 Mark Sharvin. All rights reserved. 27 | NSMainStoryboardFile 28 | Main 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // SwitchIt 4 | // 5 | // Created by Mark Sharvin on 27/05/2017. 6 | // Copyright © 2017 Mark Sharvin. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : NSViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // SwitchIt 4 | // 5 | // Created by Mark Sharvin on 27/05/2017. 6 | // Copyright © 2017 Mark Sharvin. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @interface ViewController () 12 | @property (weak) IBOutlet NSImageView *logoImageView; 13 | @property (weak) IBOutlet NSTextView *thankYouLabel; 14 | @property (weak) IBOutlet NSTextView *extenstionHelpView; 15 | @end 16 | 17 | @implementation ViewController 18 | 19 | - (void)viewDidLoad { 20 | [super viewDidLoad]; 21 | [self setupThankYouMessage]; 22 | [self setupHelpView]; 23 | } 24 | 25 | - (void)setupHelpView { 26 | NSMutableAttributedString *helpMessage = [[NSMutableAttributedString alloc] initWithString:@"Requirements:\n\tSwitchIt requires XCode 8 or later.\n\nHow to use SwitchIt?\n\t- Open a project in XCode\n\t- Open a file that contains a defined enum\n\t- Highlight the whole enum\n\t- In the XCode menu choose:\n\tEditor -> SwitchIt -> Create Switch\n\nTips:\n\t- Create a shortcut for the extension by going to\n\tXCode -> Preferences -> Key Bindings\n\tfilter the menu by switch. There you can set\n\tyour own shortcut."]; 27 | [helpMessage addAttribute:NSFontAttributeName value:[NSFont fontWithName:@"Arial" size:15] range:NSMakeRange(0, helpMessage.length)]; 28 | [helpMessage addAttribute:NSFontAttributeName value:[NSFont fontWithName:@"Arial Rounded MT Bold" size:17] range:[helpMessage.string rangeOfString:@"Requirements:"]]; 29 | [helpMessage addAttribute:NSFontAttributeName value:[NSFont fontWithName:@"Arial Rounded MT Bold" size:17] range:[helpMessage.string rangeOfString:@"How to use SwitchIt?"]]; 30 | [helpMessage addAttribute:NSFontAttributeName value:[NSFont fontWithName:@"Arial Rounded MT Bold" size:17] range:[helpMessage.string rangeOfString:@"Tips:"]]; 31 | [[self.extenstionHelpView textStorage] appendAttributedString:helpMessage]; 32 | self.extenstionHelpView.drawsBackground = YES; 33 | self.extenstionHelpView.editable = NO; 34 | self.extenstionHelpView.selectable = YES; 35 | } 36 | 37 | - (void)setupThankYouMessage { 38 | NSMutableAttributedString *thankYouMessage = [[NSMutableAttributedString alloc] initWithString:@"Thank you for using this extension.\n\nIf you like what you see let me know on twitter or Star my git repo here."]; 39 | NSRange twitterRange = [thankYouMessage.string rangeOfString:@"twitter"]; 40 | [thankYouMessage addAttribute:NSLinkAttributeName value:[[NSURL URLWithString:@"https://twitter.com/ArcherSharvin"] absoluteString] range:twitterRange]; 41 | NSRange gitRepoRange = [thankYouMessage.string rangeOfString:@"here"]; 42 | [thankYouMessage addAttribute:NSLinkAttributeName value:[[NSURL URLWithString:@"https://github.com/HarmVanRisk/SwitchIt"] absoluteString] range:gitRepoRange]; 43 | [thankYouMessage addAttribute:NSFontAttributeName value:[NSFont fontWithName:@"Arial" size:16] range:NSMakeRange(0, thankYouMessage.length)]; 44 | [[self.thankYouLabel textStorage] appendAttributedString:thankYouMessage]; 45 | self.thankYouLabel.backgroundColor = [self colorWithHexColorString:@"ECECEC"];//[NSColor colorWithRed:236 green:236 blue:236 alpha:1]; 46 | self.thankYouLabel.drawsBackground = YES; 47 | self.thankYouLabel.editable = NO; 48 | self.thankYouLabel.selectable = YES; 49 | } 50 | 51 | - (NSColor*)colorWithHexColorString:(NSString*)inColorString { 52 | NSColor* result = nil; 53 | unsigned colorCode = 0; 54 | unsigned char redByte, greenByte, blueByte; 55 | 56 | if (nil != inColorString) { 57 | NSScanner* scanner = [NSScanner scannerWithString:inColorString]; 58 | (void) [scanner scanHexInt:&colorCode]; // ignore error 59 | } 60 | redByte = (unsigned char)(colorCode >> 16); 61 | greenByte = (unsigned char)(colorCode >> 8); 62 | blueByte = (unsigned char)(colorCode); // masks off high bits 63 | 64 | result = [NSColor 65 | colorWithCalibratedRed:(CGFloat)redByte / 0xff 66 | green:(CGFloat)greenByte / 0xff 67 | blue:(CGFloat)blueByte / 0xff 68 | alpha:1.0]; 69 | return result; 70 | } 71 | 72 | @end 73 | -------------------------------------------------------------------------------- /SwitchIt/SwitchIt/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SwitchIt 4 | // 5 | // Created by Mark Sharvin on 27/05/2017. 6 | // Copyright © 2017 Mark Sharvin. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, const char * argv[]) { 12 | return NSApplicationMain(argc, argv); 13 | } 14 | -------------------------------------------------------------------------------- /SwitchIt/SwitchItExtension/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | SwitchIt 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | SwitchIt 17 | CFBundlePackageType 18 | XPC! 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSExtension 26 | 27 | NSExtensionAttributes 28 | 29 | XCSourceEditorCommandDefinitions 30 | 31 | 32 | XCSourceEditorCommandClassName 33 | SourceEditorCommand 34 | XCSourceEditorCommandIdentifier 35 | $(PRODUCT_BUNDLE_IDENTIFIER).SourceEditorCommand 36 | XCSourceEditorCommandName 37 | Create Switch 38 | 39 | 40 | XCSourceEditorExtensionPrincipalClass 41 | SourceEditorExtension 42 | 43 | NSExtensionPointIdentifier 44 | com.apple.dt.Xcode.extension.source-editor 45 | 46 | NSHumanReadableCopyright 47 | Copyright © 2017 Mark Sharvin. All rights reserved. 48 | 49 | 50 | -------------------------------------------------------------------------------- /SwitchIt/SwitchItExtension/SourceEditorCommand.h: -------------------------------------------------------------------------------- 1 | // 2 | // SourceEditorCommand.h 3 | // SwitchItExtension 4 | // 5 | // Created by Mark Sharvin on 27/05/2017. 6 | // Copyright © 2017 Mark Sharvin. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SourceEditorCommand : NSObject 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /SwitchIt/SwitchItExtension/SourceEditorCommand.m: -------------------------------------------------------------------------------- 1 | // 2 | // SourceEditorCommand.m 3 | // SwitchItExtension 4 | // 5 | // Created by Mark Sharvin on 27/05/2017. 6 | // Copyright © 2017 Mark Sharvin. All rights reserved. 7 | // 8 | 9 | #import "SourceEditorCommand.h" 10 | 11 | /* 12 | TODO: Clean code and make it more readable 13 | */ 14 | 15 | static NSString *const kEmptyString = @""; 16 | static NSString *const kEmptySpace = @" "; 17 | static NSString *const kCommaString = @","; 18 | static NSString *const kCommaSeparatorString = @","; 19 | static NSString *const kOpenCurlyBracket = @"{"; 20 | static NSString *const kCloseCurlyBracket = @"}"; 21 | static NSString *const kEqualsKey = @"="; 22 | static NSString *const kCaseKey = @"case "; 23 | static NSString *const kObjcStartOfSwitch = @"switch(<#Value#>) {\n"; 24 | static NSString *const kObjcCaseFormat = @"%@case %@: {\n%@%@break;\n%@}\n"; 25 | static NSString *const kSwiftStartOfSwitch = @"switch <#Value#> {\n"; 26 | static NSString *const kSwiftCaseFormat = @"%@case .%@: \n%@%@break\n"; 27 | 28 | @implementation SourceEditorCommand 29 | 30 | - (void)performCommandWithInvocation:(XCSourceEditorCommandInvocation *)invocation completionHandler:(void (^)(NSError * _Nullable nilOrError))completionHandler { 31 | XCSourceTextRange *range = invocation.buffer.selections.firstObject; 32 | //+1 to make it inclusive of the last selected line 33 | NSUInteger length = range.end.line - range.start.line + 1; 34 | NSArray *selectedLines = [invocation.buffer.lines subarrayWithRange:NSMakeRange(range.start.line, length)]; 35 | BOOL isSwiftEnum = NO; 36 | for (NSString *enumLine in selectedLines) { 37 | if ([enumLine containsString:kCaseKey]) { 38 | isSwiftEnum = YES; 39 | break; 40 | } 41 | } 42 | NSString *fullSwitch = isSwiftEnum ? [self expandedSwitchInSwift:invocation withSelectedLines:selectedLines] : [self expandedSwitchInObjectiveC:invocation withSelectedLines:selectedLines]; 43 | if (fullSwitch.length > 0) { 44 | [invocation.buffer.lines insertObject:fullSwitch atIndex:range.end.line+2]; 45 | } 46 | completionHandler(nil); 47 | } 48 | 49 | - (NSString *)expandedSwitchInObjectiveC:(XCSourceEditorCommandInvocation *)invocation withSelectedLines:(NSArray *)selectedLines { 50 | NSMutableCharacterSet *setToBeTrimmed = [NSMutableCharacterSet characterSetWithCharactersInString:kCommaString]; 51 | [setToBeTrimmed formUnionWithCharacterSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; 52 | NSString *tabIndent = [kEmptyString stringByPaddingToLength:invocation.buffer.tabWidth withString:kEmptySpace startingAtIndex:0]; 53 | NSString *switchContents = kEmptyString; 54 | for (NSString *line in selectedLines) { 55 | BOOL isBeginningOrEnding = [line containsString:kOpenCurlyBracket] || [line containsString:kCloseCurlyBracket]; 56 | if (!isBeginningOrEnding) { 57 | NSString *foundCase = line; 58 | foundCase = [foundCase stringByTrimmingCharactersInSet:setToBeTrimmed]; 59 | if (foundCase.length > 0) { 60 | switchContents = [self switchContentsForGivenLine:foundCase withTabIndent:tabIndent totalContents:switchContents andIsSwift:NO]; 61 | } 62 | } 63 | } 64 | NSString *fullSwitch = kEmptyString; 65 | if (switchContents.length > 0) { 66 | fullSwitch = kObjcStartOfSwitch; 67 | fullSwitch = [fullSwitch stringByAppendingString:switchContents]; 68 | fullSwitch = [fullSwitch stringByAppendingString:kCloseCurlyBracket]; 69 | } 70 | 71 | return fullSwitch; 72 | } 73 | 74 | - (NSString *)expandedSwitchInSwift:(XCSourceEditorCommandInvocation *)invocation withSelectedLines:(NSArray *)selectedLines { 75 | NSCharacterSet *setToBeTrimed = [NSCharacterSet whitespaceAndNewlineCharacterSet]; 76 | NSString *tabIndent = [kEmptyString stringByPaddingToLength:invocation.buffer.tabWidth withString:kEmptySpace startingAtIndex:0]; 77 | NSString *switchContents = kEmptyString; 78 | for (NSString *line in selectedLines) { 79 | BOOL isBeginningOrEnding = [line containsString:kOpenCurlyBracket] || [line containsString:kCloseCurlyBracket]; 80 | if (!isBeginningOrEnding) { 81 | NSString *foundCase = line; 82 | foundCase = [foundCase stringByReplacingOccurrencesOfString:kCaseKey withString:kEmptyString]; 83 | foundCase = [foundCase stringByTrimmingCharactersInSet:setToBeTrimed]; 84 | if (foundCase.length > 0) { 85 | switchContents = [self switchContentsForGivenLine:foundCase withTabIndent:tabIndent totalContents:switchContents andIsSwift:YES]; 86 | } 87 | } 88 | } 89 | NSString *fullSwitch = kEmptyString; 90 | if (switchContents.length > 0) { 91 | fullSwitch = kSwiftStartOfSwitch; 92 | fullSwitch = [fullSwitch stringByAppendingString:switchContents]; 93 | fullSwitch = [fullSwitch stringByAppendingString:kCloseCurlyBracket]; 94 | } 95 | return fullSwitch; 96 | } 97 | 98 | - (NSString *)switchContentsForGivenLine:(NSString *)foundCase withTabIndent:(NSString *)tabIndent totalContents:(NSString *)switchContents andIsSwift:(BOOL)isSwift { 99 | if ([foundCase containsString:kEqualsKey] && ![foundCase containsString:kCommaString]) { 100 | //If the enum has been assigned a value we need to ignore it 101 | NSRange rangeOfFoundEquals = [foundCase rangeOfString:kEqualsKey]; 102 | foundCase = [foundCase stringByReplacingCharactersInRange:NSMakeRange(rangeOfFoundEquals.location, foundCase.length - rangeOfFoundEquals.location) withString:kEmptyString]; 103 | } 104 | if ([foundCase containsString:kCommaString]) { 105 | //If someone by chance has put it all on one line we can still cater for it 106 | switchContents = [self processMultipleCasesOnFoundLine:foundCase tabIndent:tabIndent switchContents:switchContents isSwift:isSwift]; 107 | } else { 108 | if (isSwift) { 109 | switchContents = [switchContents stringByAppendingString:[NSString stringWithFormat:kSwiftCaseFormat,tabIndent,foundCase,tabIndent,tabIndent]]; 110 | } else { 111 | switchContents = [switchContents stringByAppendingString:[NSString stringWithFormat:kObjcCaseFormat,tabIndent,foundCase,tabIndent,tabIndent,tabIndent]]; 112 | } 113 | } 114 | return switchContents; 115 | } 116 | 117 | - (NSString *)processMultipleCasesOnFoundLine:(NSString *)foundCase tabIndent:(NSString *)tabIndent switchContents:(NSString *)switchContents isSwift:(BOOL)isSwift { 118 | for (NSString *foundSwitchOnOneLine in [foundCase componentsSeparatedByString:kCommaSeparatorString]) { 119 | NSString *otherFoundCase = foundSwitchOnOneLine; 120 | otherFoundCase = [otherFoundCase stringByReplacingOccurrencesOfString:kEmptySpace withString:kEmptyString]; 121 | if ([otherFoundCase containsString:kEqualsKey]) { 122 | //If the enum has been assigned a value we need to ignore it even when we are looping through 123 | NSRange rangeOfFoundEquals = [otherFoundCase rangeOfString:kEqualsKey]; 124 | otherFoundCase = [otherFoundCase stringByReplacingCharactersInRange:NSMakeRange(rangeOfFoundEquals.location, otherFoundCase.length - rangeOfFoundEquals.location) withString:kEmptyString]; 125 | } 126 | if (isSwift) { 127 | switchContents = [switchContents stringByAppendingString:[NSString stringWithFormat:kSwiftCaseFormat,tabIndent,otherFoundCase,tabIndent,tabIndent]]; 128 | } else { 129 | switchContents = [switchContents stringByAppendingString:[NSString stringWithFormat:kObjcCaseFormat,tabIndent,otherFoundCase,tabIndent,tabIndent,tabIndent]]; 130 | } 131 | } 132 | return switchContents; 133 | } 134 | 135 | 136 | @end 137 | -------------------------------------------------------------------------------- /SwitchIt/SwitchItExtension/SourceEditorExtension.h: -------------------------------------------------------------------------------- 1 | // 2 | // SourceEditorExtension.h 3 | // SwitchItExtension 4 | // 5 | // Created by Mark Sharvin on 27/05/2017. 6 | // Copyright © 2017 Mark Sharvin. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SourceEditorExtension : NSObject 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /SwitchIt/SwitchItExtension/SourceEditorExtension.m: -------------------------------------------------------------------------------- 1 | // 2 | // SourceEditorExtension.m 3 | // SwitchItExtension 4 | // 5 | // Created by Mark Sharvin on 27/05/2017. 6 | // Copyright © 2017 Mark Sharvin. All rights reserved. 7 | // 8 | 9 | #import "SourceEditorExtension.h" 10 | 11 | @implementation SourceEditorExtension 12 | 13 | /* 14 | - (void)extensionDidFinishLaunching 15 | { 16 | // If your extension needs to do any work at launch, implement this optional method. 17 | } 18 | */ 19 | 20 | /* 21 | - (NSArray *> *)commandDefinitions 22 | { 23 | // If your extension needs to return a collection of command definitions that differs from those in its Info.plist, implement this optional property getter. 24 | return @[]; 25 | } 26 | */ 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /SwitchIt/SwitchItExtension/SwitchItExtension.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /SwitchItGifs/objcSwitchOneLine.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchItGifs/objcSwitchOneLine.gif -------------------------------------------------------------------------------- /SwitchItGifs/objcSwitchWithEquals.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchItGifs/objcSwitchWithEquals.gif -------------------------------------------------------------------------------- /SwitchItGifs/regularSwiftSwitch.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchItGifs/regularSwiftSwitch.gif -------------------------------------------------------------------------------- /SwitchItGifs/swiftSwitchOneLine.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchItGifs/swiftSwitchOneLine.gif -------------------------------------------------------------------------------- /SwitchItImages/icon_128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchItImages/icon_128x128.png -------------------------------------------------------------------------------- /SwitchItImages/icon_128x128.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchItImages/icon_128x128.psd -------------------------------------------------------------------------------- /SwitchItImages/icon_128x128@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchItImages/icon_128x128@2x.png -------------------------------------------------------------------------------- /SwitchItImages/icon_16x16 .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchItImages/icon_16x16 .png -------------------------------------------------------------------------------- /SwitchItImages/icon_256x256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchItImages/icon_256x256.png -------------------------------------------------------------------------------- /SwitchItImages/icon_256x256@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchItImages/icon_256x256@2x.png -------------------------------------------------------------------------------- /SwitchItImages/icon_32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchItImages/icon_32x32.png -------------------------------------------------------------------------------- /SwitchItImages/icon_32x32@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchItImages/icon_32x32@2x.png -------------------------------------------------------------------------------- /SwitchItImages/icon_32x32@2x.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchItImages/icon_32x32@2x.psd -------------------------------------------------------------------------------- /SwitchItImages/icon_512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchItImages/icon_512x512.png -------------------------------------------------------------------------------- /SwitchItImages/icon_512x512.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchItImages/icon_512x512.psd -------------------------------------------------------------------------------- /SwitchItImages/icon_512x512@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HarmVanRisk/SwitchIt/070bb429cd649d86fd6af4e5f04c4c17c5b2d747/SwitchItImages/icon_512x512@2x.png --------------------------------------------------------------------------------