From the course: Code Clinic: Swift

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution overview

Solution overview - Swift Tutorial

From the course: Code Clinic: Swift

Start my 1-month free trial

Solution overview

- [Instructor] Here's the application we're going to build in this chapter. It updates some values from a database every second, so it goes through the values progressively. Go to the home screen and then head over to Xcode. Let's take a look at our application. We have some labels and a view on the screen and a database that's coming from Realm, so it's a Realm database. And in my view controller, I'm importing the proper methods, I have a class for my data, and I'm using Realm and an index to loop through the different values and a data object to hold all of the data. When the app loads up, I call loadRealm to load up my realm and save it in the appropriate directory. Then I create the realm, store the data, and start showing the data, which I present using a scheduled timer. So throughout this chapter, we're going to look at creating this application. We'll go over each line of code, how it works, what it's doing, how the user interface is created, how to create the database and…

Contents