Swift Tutorial 4 – Collection Types Tutorial in Swift

Swift provides three main collection types we can use to store groups of related values. Arrays are linearly ordered by an index starting at zero. Sets contain unordered, unique values. Dictionaries store an unordered collection of key-value pairs. Arrays The above image shows what an array looks like graphically. Essentially, arrays are ordered lists of elements of the same type where the … Read more

Swift Tutorial 3 – How to Use Strings in Swift

We’ve looked at mostly numerical types and data in the past, but, in this post, we’re going to be looking at character data. A string is a sequence of characters. That’s why it’s called a string: it’s a “string” of characters! We can create string constants and variables by enclosing the characters in double-quotes:  . If we want to … Read more

Swift Tutorial 2 – How to Use Operators in Swift

Since we’ve discussed variables, the next logical step is to actually do something with those variables! In this section, we’re going cover the different types of operators supported by Swift. Learn iOS by building real apps Check out The Complete iOS Development Course – Build 14 Apps with Swift 2 on Zenva Academy to learn Swift 2 and … Read more

Free eBook – Swift Programming for Human Beings

Swift programming ebook

We are happy to announce the launch of our free ebook Swift Programming for Human Beings – The Ultimate Beginner’s Introduction, authored by mobile application developer, contractor and online trainer Mohit Deshpande. The book covers the basics of the Swift programming language (version 3 of the language) and assumes no prior coding experience. Swift is … Read more

Swift Tutorial 1 – Getting Started with Swift and Variables

What is Swift? Swift is a relatively new programming language created by Apple and used for iOS, Mac OS X, tvOS, and watchOS apps. Back in 2014, Apple announced the first version of Swift at WWDC. Apple claimed Swift was “Objective-C without the C” and it’s done a very good job at doing that. For those readers that know … Read more