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.

View the existing files

View the existing files - Swift Tutorial

From the course: Code Clinic: Swift

Start my 1-month free trial

View the existing files

- [Instructor] Let's take a look at our starting files. So here I am in my storyboard, and in the background, you can see I have an MKMapView that's taking up the whole screen, and then I have four labels, IP, country, state, and city. And then I have this white background behind that, that's a semi-transparent background, so that you can see these black fonts a little clearer over the map. And that's really it, if you want to see how my document outline looks, looks like this, and the view has some constraints inside of it. So all the pins are all set up. Other than that, everything is pretty straightforward. I didn't make any changes in the attributes inspector with any of these user interface elements. Next I have a file called data.json. This is a sample data file, in the event that you have a problem connecting to the server, so that you have some kind of backup with sample data. So it just has really a simple json object with these parameters set up. So if you're following along…

Contents