Working with Closures in Swift

Closures Closures are small, self-contained blocks of code that can be used in our code, not unlike a function. (The reason these are called closures is because they’re said to “close” over constants and variables.) Let’s first get some context for closures. Suppose we have an array of names that we want to sort. Well it turns … Read moreWorking with Closures in Swift

How to Create Basic UI Controls in iOS

Hello World! In this post, we’re going to go more in-depth into some of the most basic UI controls that iOS supports. We’ll be covering a large number of different UI controls like text fields, buttons, switches, steppers, and sliders. These are the fundamental building blocks of any iOS app so we’ll start our journey here. We’ll also learn what delegates are in … Read moreHow to Create Basic UI Controls in iOS

Swift Tutorial 6 – How to Use Functions in Swift

In this post, we’re going to learn about how to define and call various types of Swift functions. A function is a self-contained block of code whose purpose is to perform a specific task. We use functions so that we can break up the main source code into manageable chunks. Also, if we need to repeat code, we can … Read moreSwift Tutorial 6 – How to Use Functions in Swift

Tutorials on game, web and mobile app development