How to use Arrays in Swift

How to use Arrays in Swift

You can access the full course here: iOS App Development for Beginners Arrays So far, all of the variables that we have seen can only hold one (or zero) values. However, we sometimes need to be able to store multiple values so that we can carry them around in a single variable rather than porting … Read more

Structs and Enums in Swift

 Structures We’ve discussed classes in Swift and how they are the foundation of object-oriented programming. In addition to classes, we also have structures that provide similar functionality. A structure is similar to a class since it can also have methods, properties, and initializers, but a structure is a value type where classes are reference types. Every type in Swift is either a value type … Read more

Object-oriented Programming with Swift – Part 2

Initialization and Deinitialization Initialization is when we prepare to create an instance of a class. This process may involve configuring the properties or any other miscellaneous setup required before we can use that instance like opening a database connection, creating a save file, or opening a web socket. In Swift, we use initializers to run some code before the instance … Read more

Object-oriented Programming with Swift

Basic Object-oriented Principles Before delving into Swift code, let’s first understand what it means to be object-oriented (OO) and the need for OO. We begin our discussion by talking about classes and objects. In software, sometimes it is not sufficient to have loose methods and data structures floating around in our source code. We need some structure … Read more

Swift 3 – Learn to Code with Apple’s New Language

Swift 3 – Learn to Code with Apple’s New Language

Be part of the evolution of Swift 3! There is no better time to learn this powerful , yet easy to learn programming language developed by Apple for macOS, IOS, watchOS and tvOS. This course is designed to provide a comprehensive introduction to Swift, so that you can begin experimenting right away. Mobile devices are … Read more

Intermediate iOS – Get Job Ready with Swift 2

Intermediate iOS – Get Job Ready with Swift 2

You have dipped your toes into the water of iOS development and you want to go beyond the basics of making simple iPhone apps. You are ready to move on, move forward, and escalate your capabilities. You want to build amazing apps that impress and results in career opportunities with increased earning potential. You are ready … Read more

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 more

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 more

Swift Tutorial 5 – How to Use Control Flow in Swift

In this section we’re going to look at the various looping constructs and decision statements that Swift supports. We’ll be learning about while, repeat-while, and the variations of for loops. Next, we’ll discuss decision statements such as the if, if-else, and switch case statements. Finally, we’ll finish this section by talking about the branching statements we can use to control the program flow. Looping … Read more