63. kristina.io @krstnfx
> Looks like your colleague used a regular
expression before to search, but can’t remember
what it was. What do you recommend?
65. kristina.io @krstnfx
> Say you have to replace some old prefixed enum
code that looks something like this:
enum APPLFontStyle {
case APPLFontStyleBold
case APPLFontStyleItalic
case APPLFontStyleUnderline
case APPLFontStyleStrikethrough
}
> Know any shortcuts?
66. kristina.io @krstnfx
M U LT I P L E C U R S O R S
Option + drag (rectangular selection)
Ctrl + shift + click (place multiple cursors)
79. B A S E D O N A T R U E S T O RY
Just kidding 😁
80. kristina.io @krstnfx
X C O D E S U R V I VA L G U I D E C H E AT S H E E T
Name Location Shortcut
Color Assets Assets Folder Add Color Set
Lock Storyboard Identity Inspector Lock - All Properties
Side-By-Side Editors View -> Assistant Editor All Editors Stacked Horizontally
Place File In Editor Keyboard/Mouse Alt + Shift (Click On File)
Select Code Structure Keyboard/Mouse Command + Click (On Function)
81. kristina.io @krstnfx
X C O D E S U R V I VA L G U I D E C H E AT S H E E T
Name Location Shortcut
Pre-Xcode 8 Style Jump
Xcode Settings ->
Navigation
Command-Click On Code ->Jumps To
Definition
User Defined
Environment Variables
Project File -> Build
Settings
Add variables to User-Defined Settings
Device Logs For
Crashes
Window -> Devices And
Simulators
View Device Logs
Catch All Breakpoints Breakpoints Panel Plus Button On Bottom Left
Edit Breakpoints Breakpoints Panel
Double-Click Blue Breakpoint To Bring
Up Action Menu
82. kristina.io @krstnfx
X C O D E S U R V I VA L G U I D E C H E AT S H E E T
Name Location Shortcut
Slow Animations Simulator -> Debug Slow Animations
Custom Photos Simulator Drag and drop photo
Pattern Matching In
Search/Search History
Search Sidebar
Click On Magnifying Glass Drop Down,
Insert Pattern/Recent Queries
Multiple Cursors Editor
Ctrl + Shift +Click (Place Cursors)
Option + Drag (Rectangular Selection)
Simulate Poor Network System Preferences Network Link Conditioner
83. kristina.io @krstnfx
R E S O U R C E S
• Paul Hudson’s Swift Knowledge Base
https://www.hackingwithswift.com/example-code/
• API Endpoint Configuration
https://medium.com/@danielgalasko/change-your-api-endpoint-environment-
using-xcode-configurations-in-swift-c1ad2722200e
• Type Safe JSON in Swift
https://medium.com/grand-parade/creating-type-safe-json-in-swift-74a612991893
• WWDC-Style Code Snippets
https://kristina.io/tutorial-wwdc-style-live-code-snippets/
84. kristina.io @krstnfx
R E S O U R C E S
• How To Simulate A Bad Network Connection On Your iOS Device and
Simulator
https://www.natashatherobot.com/simulate-bad-network-ios-simulator/
• Regular Expression Search
https://medium.com/@onmyway133/regular-expression-search-in-
xcode-28a1a17fc863
• Twitter iOS Community (@twostraws, @aligatr, @_inside & many more!)
https://twitter.com/krstnfx/status/940265683690180608