iOS Development and XCode CheatsheetWed May 26 2021

Keyboard Shortcuts

If I need to look up multiple times, I should just record it in my own cheatsheet.

⌘ + ⇧ + O Open new file

CTR + ⌘ + ARROW Go back or forward to another file

⌥ + ⌘ + O Open git window

⌘ + ⇧ + J Reveal file in Project Navigator

⌘ + L Goto line number

Editor > Authors Git blame within XCode

⌥ + ⌘ + ⇧ + F Find and Replace entire workspace

To iterate over an enum type ensure it is CaseIterable

⌘ + ⇧ + { OR ⌘ + ⇧ + } Switch tabs

⌘ + + OR ⌘ + - Zoom in or out of window. Specifically useful for the console

rm -rf ~/Library/Developer/Xcode/DerivedData Clear Derived Data

Posts

If I found a read useful, I should maintain a link to it.

Swift: When to use guard vs if by Natasha The Robot

SKStoreReviewController by Kavitha K

Defining Global constants in Swift by Aaina jain

Swift: How To Be Lazy by Natasha The Robot

How To Add Resource Files Into Xcode Project And iOS App by Jerry Zhao

StackOverflow: Get safe area inset top and bottom heights

Autolayout Parent UIView is Maximum of Child Views by MYSELF

Using The Responder Chain by Keith Harrison

How to Add Pull-to-Refresh to a Table View or Collection View by Bart Jacobs

Swift Sleep without stopping main thread by owlswipe

StackOverflow: Time Swift method by Matthew McGoogan

Delete breakpoints in XCode 5 by MYSELF

App Store Connect Build Versions by MYSELF

How to remove UIGraphicsImageRenderer UIImageView border by MYSELF

Swift Variable DidSet Logic by MYSELF

iOS Provisioning Profile Guide by MYSELF

Better print debugging by @sarunw

Dealing with Complex Table Views in iOS and Keeping Your Sanity by @marinbenc

Concluding iOS Coordinators by MYSELF

@Escaping Closures in Swift by MYSELF

Extension Must Not Contain Stored Properties by MYSELF

How to Add Testers to Test the iOS App in TestFlight

OptionSet by Ahmad Fayyas

Resources

If I found this resource collection useful or was recommended it, I should maintain a link to it.

Use Your Loaf by Keith Harrison

KHANLOU by Soroush Khanlou

SwiftUI Cheatsheet by MYSELF

Protocol composition in Swift and Objective-C by @jesse_squires