Dark mode on iOS preparations using asset catalog colors

Although still rumors, it’s likely that Apple is going to announce system-wide dark mode support for iOS 13. We’re not talking about the inverted colors variant of dark mode, but more about the Mojave style of a darker appearance. What is dark mode? Some of the bigger apps on iOS already built-in support and show … 

 

Speeding up development: a collection of tips

Speeding up development to increase productivity can bring you a lot. You’ll work more efficient, deliver faster, and you’ll feel better. Speeding up as an iOS developer was the talk title of my presentations I gave at Swift Heroes, GDG Coimbra, and CocoaHeads NL. To summarize my talk, an overview of one of the best tips I can … 

 

Speeding up with Xcode Behaviors

Xcode behaviors can change the way how Xcode responds to certain events. Default behaviors help you already by showing for example the debug navigator when hitting a breakpoint, but they can speed you up a lot more. A list of behaviors which are not enabled by default. Starting point is the behaviors tab which can … 

 

Updating to Swift 4.2

Swift 4.2 is a major release and shipped with Xcode 10. It comes with a lot of code improvements for which the best way to start is to watch the WWDC 2018: What’s New in Swift session. Some of the improvements are easy to implement in your existing code. Replace strongSelf with self SE-0079 makes … 

 

Command-click on code options and possibilities in Xcode

Command-click no longer jumps to definition by default since Xcode 9 is introduced. It opens up a handy menu instead with a lot of options for quick editing, like: See all callers Edit all in scope and renaming Extracting methods The old command-click behaviour can be restored in the settings or simply mimicked by using … 

 

Debugging breakpoints as a replacement for prints

Debugging breakpoints in Xcode allows you to replace prints and reuse debugging statements in future debugging sessions. By simply enabling and disabling needed breakpoints you can also get rid of debug levels as often defined in libraries like CocoaLumberjack. Reuse breakpoints by enabling them when needed Use breakpoints to replace print statements Keep your code …