Type casting allows you to access a specific value as if it were of a different type. Type casting functions are available in Swift for type casting numbers and strings. In this workshop you learn how to use them. Casting a value using a Swift casting function create a new value that is a direct conversion of the […]
The workshop focus on teaching you how to use just a handful of the Foundation framew’s methods to manipulate Swift string variables and constants. I encourage you to use the Variable.playground file you added in the iOS Swift Variable project to practice Swift code presented in the workshop. Before you begin, I assume you’ve done the following: read […]
In this workshop you learn how to declare and initialize Swift variables and constants. You also learn about common types you can use to annotate a variable or a constant. Before you begin, I assume you’ve done the following: read workshop 1-13 launched the Swift Variable app in Xcode 6 you will use the playground […]
In this workshop you will learn how to add a playground file in the iOS project called Swift Variable. You will get a bird’s eye view of the playground interface. Finally, you will try out Swift code in the playground. Before you begin, I assume you’ve done the following: read workshop 1-11 launched the Swift […]
In the previous 10 workshops you learned the basics of creating an iOS application, connecting the view’s controls, and adding Swift code in the ViewController.swift class file to make the view a functional object. Now, in this workshop, you will add Swift code in the Swift Variable application’s actionShowOutput() function to do the following: Format today’s […]