When writing code in Swift, it is not uncommon to want to repeat the execution of a set of statements. In Swift, we achieve this through loop statements. Great overview of many faces of Swift loops by Andy Bargh.
Spinlocks are a pretty simple synchronization construct, right? In this post we'll explain what spinlocks are, how they work, and why they're fundamentally unsafe on iOS.
Swift is accomplishing an amazing feat; it is transforming the way we think about programming for Apple devices, bringing in more modern paradigms such as functional programming and richer type-checking than the Smalltalk-inspired pure object-oriented model of Objective-C. This post helps you deal with problems you may encounter during your development.
The year 2015 is over and 2016 has already started with new projects and new ideas. It's high time to look back now and revise all the good solutions, that helped in 2015.
In Swift 2, Objective-C selectors are written as string literals (e.g., "insertSubview:aboveSubview:") in the type context of a Selector. This proposal seeks to replace this error-prone approach with Selector initialization syntax that refers to a specific method via its Swift name. The proposed solution got accepted.
Here you'll find implementations of popular algorithms and data structures in everyone's favorite new language Swift, with detailed explanations of how they work.
As you may noticed Parse will be fully retired after a year-long period ending on January 28, 2017. Most of us need to find an alternative backend service for our apps. Please help the community to find a great BaaS.
Newsletter content curated by Vedran from Infinum iOS Team