From the course: Code Clinic: Swift

Unlock the full course today

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

Create the dashboard app

Create the dashboard app - Swift Tutorial

From the course: Code Clinic: Swift

Start my 1-month free trial

Create the dashboard app

- [Instructor] Now, let's create our dashboard application by creating a timer to advance through our data every second. Just a quick note to those of you using the exercise files, make sure that you're downloading the newest version of Realm and dragging it into your project making sure to copy those frameworks into your project, and make sure that when your project is selected that you have them both in the late frameworks and embedded binary section. Find the loadRealm method in your code and right below where we set the realm, let's set our data equal to realm.objects and that returns results of a certain element type. Then, we need to pass in the element type that we want which is DashboardData.self. Then, I'm going to create a new method called startShowingData. I'll do that right under here, right under the loadRealm method. I'll call that method right below where I set the value of data. So startShowingData and then in here, I'm going to create a timer. I'm going to call…

Contents