An NSBatchDeleteRequest can be used to efficiently delete a batch of entries from a Core Data SQLite persistent store. It runs faster than deleting Core Data entities yourself on a managed object context as they operate at the SQL level in the persistent store itself. Its usage, however, is a bit less simple compared to the …
Weak self and unowned self explained in Swift
Weak self and unowned self in Swift for many of us are hard to understand. Although Automatic Reference Counting (ARC) solved a lot for us already, we still need to manage references when we’re not working with value types. When writing Swift code we often run into situation while writing things like closures. Those situations …
Typealias usage in Swift
A typealias in Swift is literally an alias for an existing type. Simple, isn’t it? They can be useful in making your code a bit more readable. By using them in a smart way they can be really useful in your codebase. Declaring a typealias A typealias can be declared in Swift using the typealias …
Developer productivity boost with Google Search Tips & Tricks
Developer productivity is important to deliver your project on time. There’s a lot you can do as I already described in my blog post: Speeding up development: a collection of tips but even more, if we dive into detail. In this blog post, I’ll give you some of my tips and tricks which I use …
Quickly run your latest tests again
^+⌥+⌘+G This shortcut enables you to re-run the last run tests again.
Hide code folding ribbon for a cleaner editor
Keep your editor clean and hide the code folding ribbon if you don’t use it.
Sort files by name in Xcode and stay organized
Sort files and folders and keep your project organized.
@unknown default usage with enums in Swift
@unknown default has been introduced in Swift 5 with SE-0192. It’s a new addition to the way we can work with Swift enums and helps us to prepare for future changes. After updating your project to Swift 5 you might end up with a new warning in Xcode 10.2: Switch covers known cases, but ‘UNAuthorizationStatus’ may …
Swift 5.0: How to migrate your project and frameworks
Swift 5.0 has been released in March 2019 and is the first ABI stable Swift release. Although a lot of resources cover the new things in Swift 5.0, they do not often offer you information on what you need to do to update your project to Swift 5.0. In this post, I’ll go over the …
WWDC First timer tips: How to get the most out of it
WWDC first timer tips help you to get the most out of Apple’s World Wide Developer Conference. This conference takes place every year around the first weeks of June. It’s the event at which Apple announces the new iOS version, Xcode updates, and latest API changes in depth. It’s a chance to experience the Keynote presentation …