Swift: filter

Swift provides you some handy functions like filter and map for manipulating arrays. In this post we will take a look at filter and how you can combine it with map.

Published
Categorized as Swift

Swift: Use Cases For Guard

The keyword guard has been introduced in Swift 2. It was a little bit inconspicuous at the first sight, but it has a lot of power. In this article we will take a look at three uses cases for guard.

try!

Error handling is a very important topic and I’ve written already a blog post about that topic. You can also check out my talk about that topic on the Swift Summit in San Francisco. In this post we will discuss when you should use try!. Hint: This post has been updated to Swift 3, iOS 10… Continue reading try!

Published
Categorized as Swift

Swift: Avoiding C-Style For-Loops

C-style for-loops will be removed in Swift 3. This may seem a little bit strange at first sight. But Swift has some features that allow better loop structures. C-style for-loops Let’s start by looking at the following C-style for-loop: let programmingLanguages = [“Swift”,”Objective-C”,”Java”] for var i = 0; i < programmingLanguages.count; i++ { print(“index: \(i), value:… Continue reading Swift: Avoiding C-Style For-Loops

Published
Categorized as Swift

February 2016: The Current State Of Swift

Recently there were some interesting reports and articles about the state of Swift. In this post we will discuss them and put them in perspective.

Published
Categorized as Swift

Swift 3 And Beyond

On December 3, 2015, the Swift language was released as open source. It also involves a roadmap for Swift 3, which will be released in fall 2016.