NEW: Pre-order my Vapor book and learn server-side Swift! >>

Xcode

Found 4 articles in the Swift Knowledge Base for this category:

 

How to create exception breakpoints in Xcode

Exception breakpoints are a powerful debugging tool that remarkably few people know about, so please read the following carefully and put it into practice!... Continue Reading >>

How to debug view layouts in Xcode

View debugging lets you visualize exactly how your app is drawing to the screen by exploding your UI into 3D. So, if you're sure you added a button but you just can't see it, view debugging is for you: you can spin your interface around inside Xcode, and you'll probably find your button lurking behind another view because of a bug.... Continue Reading >>

How to load assets from Xcode asset catalogs

Xcode asset catalogs are a smart and efficient way to bring together your artwork in a single place. But they are also optimized for performance: when your app is built, your assets converted to an optimized binary format for faster loading, so they are recommended for all kinds of apps unless you have a specific reason to avoid them. (Note: SpriteKit games should texture atlases if possible.... Continue Reading >>

How to used a named UIColor in code and Interface Builder

Since Xcode 9.0 we’ve been able to create named colors directly inside asset catalogs, which means it’s possible to select a precise color once then use it uniformly across all code and storyboards.... Continue Reading >>

About the Swift Knowledge Base

This is part of the Swift Knowledge Base, a free, searchable collection of solutions for common iOS questions, all written for Swift 4.

Love Hacking with Swift?

Get all 40 projects in PDF and HTML: buy the Hacking with Swift book! It contains over 1300 pages of hands-on Swift coding, and will really help boost your iOS career

Click here to visit the Hacking with Swift store >>