Swift enum range matching

I have been recently working on a HealthKit related app, where I wanted to categorise the blood pressure data. If you are not familiar with this data, here is a little explanation: Measuring Blood pressure Blood pressure build up from 2 numbers: the systolic value and the diastolic value. The valid value ranges for systolic ...

Learn Swift on your iPhone: Unwrap

21. August 2018 Beginner, Swift 0
Ok, I have already mentioned how to get access to a machine from your web browser, which runs Swift. There is also a good resource from Paul Hudson, who is the author of a dozen of Swift books. Paul decided to write an iOS app, called Unwrap where you can learn the basics of Swift. ...

Tune your header file Part 2: Nullability

In the first post I put the focus on the initializers, in this post I would like to put the nullability into the spotlight. I would also explain why is it a good practice, and how it will help you migrate your existing Objective-C code into Swift. Nullable/Nonnull The idea behind using the nullable/nonnull keyword ...

Learn Swift on a Windows machine

02. December 2016 Beginner, Swift, Tools 0
So, you want to learn the language, but don’t want to buy a Mac? It is possible. Actually I have just downloaded the 2nd edition of the Swift Programming from Big Nerd Ranch, when I realised, that I don’t have access to my beloved Mac, only the company’s HP notebook. Free stuff First of all, ...

Recipe to become a valuable Swift developer

08. April 2016 Beginner, Swift 0
I think the time is finally here to (re)think your approach to Swift. It has been in the wild for long enough time to see how smart step was to make it from scratch and publish it as open sourced. In short: it was really smart. I purposely wrote “Swift developer” in the title, since ...