With 2019 coming closer it’s time to review SwiftLee in 2018 and list the top swift development blog posts of this year. The best thing about this all is that I can say that I’ve reached thousands of fellow Swift developers and possibly inspired or taught them with something they didn’t know yet. A weekly …
xcode
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 …
Shortcuts essentials in Xcode to speed up your workflow
Making use of essential shortcuts in Xcode can speed up development and keep you in your flow. Xcode allows you to customise a lot, but most of the shortcuts are easy to adopt by default without custom settings. Run without building Sometimes during development, it can be useful to run the same build again, without …
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: The old command-click behaviour can be restored in the settings or simply mimicked by using control + command + click Navigating through callers This option allows …
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. Inspired by @twostraws’s debugging presentation at @AppdevconNL I now keep around breakpoints instead of print …
Using the Network Link Conditioner Utility (how-to)
The Network Link Conditioner on iOS and macOS enables you to test your app in networking conditions like your users might have while using your app. It allows you to simulate networking conditions like 3G, Edge or High Latency DNS. Using the Network Link Conditioner on iOS You can find a Networking section inside the …
Using Xcode custom file templates with GIT
Xcode custom file templates are a great way to develop just a bit faster and enable you to define a base template with all repetitive work included. Combining it with GIT enables you to share these files in your team and let them benefit as well. Creating a GIT repository for Xcode custom file templates …
Useful less known Xcode tips to improve your workflow
Xcode is the main IDE for developing software for macOS, iOS, watchOS, and tvOS. It contains a lot of well-known features like Open Quickly (⇧ + ⌘ + O), the assistant editor and handy shortcuts like ⌘ + U to run tests quickly. Some other features are less known but just as useful and these …
Share Extension UI Tests written in Swift
UI Tests are a great tool to validate your application. It is easy to create them for your main application, but it might be harder to create a UI test for your share extension. This can be just as easy as your main application with some simple steps. UI Test steps A UI test for …