Build performance can be analyzed in Xcode to speed up your builds. This can quickly speed up your workflow and save a lot of time during the day for all developers working on the project. Slow builds often distract us as they enable us to focus on distractions like social media and Slack. By investigating …
performance
Non-fatal errors vs fatal crashes: The differences explained
Non-fatal errors happen in every application that’s developed and have a close relationship with fatal errors. Most of us know that both types of errors have an essential difference: fatal errors are not recoverable, while non-fatals are. In my 10+ years of development experience, I’ve seen many engineers ignoring non-fatal errors since they wouldn’t crash …
How to use @autoclosure in Swift to improve performance
@autoclosure in Swift is a type of closure that allows to omit braces and make it look like a normal expression. Under the hood, however, it’s still a closure. By understanding what this means, we can improve the efficiency of our code. The @autoclosure keyword might be new to you. For many of us, it’s …
Lazy var in Swift explained with code examples
A lazy var is a property whose initial value is not calculated until the first time it’s called. It’s part of a family of properties in which we have constant properties, computed properties, and mutable properties. A lazy property might be lesser known to beginners in Swift but are actually super valuable once you know …
Derived Attributes to improve Core Data Fetch Performance
Derived attributes are available since iOS 13 and aim to improve fetch performance in many different scenarios. Although we have great performance with the latest devices it’s good to be prepared for scaling up to fetching a large number of items from your database. Your memory footprint might look good now but once you start …
Unique values in Swift: Removing duplicates from an array
Removing duplicates to get unique values out of an array can be a common task to perform. Languages like Ruby have built-in methods like uniq but in Swift, we have to create such methods on our own. The standard library does not provide an easy method to do this. There’s a lot of ways to …
Xcode Instruments usage to improve app performance
Xcode Instruments is a developer tool that comes for free with Xcode. It has a lot of useful tools to inspect and improve your app. Although it has a lot to offer, it’s often an area which is a bit less known. In this blog post, I’ll show you how I’ve improved the performance in …
Array vs Set: Fundamentals in Swift explained
An Array and a Set seem to be quite the same in the beginning. They’re both collection types and have quite a lot of similarities. Still, we’re often tempted to use Arrays instead of Sets. While this does not have to be a problem it could definitely be better to sometimes go for a Set …
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 …
SwiftLee 2018 in review: Top Swift Development blog posts
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 …