Skip to content

Instantly share code, notes, and snippets.

View pakko972's full-sized avatar

Pascal EDMOND pakko972

View GitHub Profile
@pakko972
pakko972 / BetterXcodeJumpToCounterpartSwift.org
Created November 20, 2019 11:25 — forked from danielmartin/BetterXcodeJumpToCounterpartSwift.org
Add support for a better Xcode's Jump to Next Counterpart in Swift

If you work on a Swift project that follows the Model-View-ViewModel (MVVM) architecture or similar, you may want to jump to counterpart in Xcode from your view to your model, and then to your view model. (ie. by using Ctrl+Cmd+Up and Ctrl+Cmd+Down).

You can do this in recent versions of Xcode by setting a configuration default.

From a terminal, just type this command and press Enter:

defaults write com.apple.dt.Xcode IDEAdditionalCounterpartSuffixes -array-add "ViewModel" "View"
@pakko972
pakko972 / gist:e2cfb0f1223116d7de48f350c1bf3075
Created August 5, 2019 09:43 — forked from steipete/ios-xcode-device-support.sh
Using iOS 13 devices with Xcode 10.3 (instead of Xcode 11)
// The trick is to link the DeviceSupport folder from the beta to the stable version.
// sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :)
// Xcode 10.3 to Xcode 11 Beta
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.0 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
// Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions

Keybase proof

I hereby claim:

  • I am pakko972 on github.
  • I am pakkito (https://keybase.io/pakkito) on keybase.
  • I have a public key ASAfyJ62h_6xHNJgp48JRX6HM4xPAybk9EIFCebQL1dPlwo

To claim this, I am signing this object: