Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
by
Lessons:19Length:2.3 hours

Next lesson playing in 5 seconds

Cancel

Free Preview: Code a watchOS App With Swift

Introduction

00:54
  • Overview
  • Transcript

In this day and age, people are getting more and more connected by the minute. This used to mean just phones, but devices and form factors continue to evolve over time. If you walk down the street in your town, there's a good chance that you will see a number of people with smart watches. And more than just smart watches, you will see Apple Watches. Are you taking advantage of this opportunity? If not, why not?

In this course, Derek Jensen will show you how to create a simple Apple Watch app with WatchKit, using some very basic skills and technologies. Follow along and you'll learn how to create a watchOS project and how to design an app with the Interface Builder. You'll also learn how to structure an app with the Model-View-Controller (MVC) pattern and how to code your app logic using the concepts of states and transitions. Along the way, you'll learn how to use some really useful UI components and even how to integrate haptic feedback in your app.

We've built a complete guide to help you learn Swift, whether you're just getting started with the basics or you want to explore more advanced topics: Learn Swift.

1. Introduction

1.1 Introduction

There is nothing more terrifying as a software engineer than becoming stagnant and having a technology pass you by. I have not seen so much technology passing me by on walks down the street than Apple Watches, they are everywhere. This is our chance, this is our opportunity to extend the reach of our applications to be with our customers more often throughout the day. Let's embrace this form factor. But aren't Apple Watch apps complicated to create? Not at all. Over the duration of this course I will show you how to take some basic skills that you probably already have, and apply them to the Apple Watch, using WatchKit. I will show you how to create tables and detail views, timers, and even haptics to notify the user when something important has happened. Are you ready for the challenge? Let's get started.

1.2 Prerequisites

So let's just take a couple moments to talk a little bit about some of the prerequisites and the assumptions that I'm going to be making for the duration of this course. So the first thing that you're going to need, as with any other Mac or iOS development projects or courses that you follow along with on tuts+, you're going to need to have Xcode. So here on my Mac, I'm going to head over to the app store. And I'm gonna go ahead and search for Xcode. Now Xcode is a free download developer tool that you can get directly from the app store. So you simply click on Xcode and you can click on the Get button. Or once you do that, you can click on the Install button. And you're going to get the latest and greatest version of Xcode. And as you can see, at the time of this recording, the latest version is 8.3.3. So really all you really need to have is a relatively latest version. You don't have to have the latest version, but at least 8.3 would be good. Anything about 8.0 would be best. Really what you're looking for is when you go into the description, that it supports at least Swift 3.0 and watchOS 3.0. So at least are the prerequisites are going to be any version of Xcode that's going to support those versions of both the languages of Swift and of watchOS. So once you've downloaded and installed that, then you're gonna be ready to follow along. And if you wanna make sure that you have that installed properly, all you need to do is open up Xcode, and as you can see here, I'm actually running 8.3.1, which will be fine for this course. Cuz like I said before, as long as you support any sort of Swift 3 and watchOS 3 and above, you should be just fine, which 8.3.1 does. All right, so that's good but I'm gonna make some assumptions here. I'm gonna make some assumptions that you have a basic understanding of the Swift programming language as well as basic principles that are found in iOS development. And why is that important? Well, because those topics are very large, I'm not gonna have enough time to go over absolutely everything that you need to understand in order to follow along with this course. So I'm going to assume that this is not the first time you've ever seen Swift. I'm also going to assume that this is not the first time you've done any sort of iOS development. Now, yes, it's true, we're going to be focusing on the watchOS side of the world. But basic principles of iOS development, so understanding the MVC pattern, Model View Controller, and how those things apply to iOS development, is going to be incredibly important. And you're going to fall behind incredibly quickly if you don't at least understand those basic topics. So what do you do if you don't have a firm grasp, or at least a basic understanding of those topics? Well, I've got a solution for you. All you have to do is head over to tuts+ and you can check out a couple of different places. You can search for Swift 3, and there's a number of very good tutorials on the basics of Swift 3, as well as some very good courses including the Create IOS Apps with Swift 3 Course by Marcus. It's a very good course. It's gonna get you up to speed incredibly quickly. Now if you already have a basic understanding of Swift 3, and you wanna learn more about iOS development, well, you can do basically the same thing and you can search for iOS development. But once again, you're probably gonna find yourself right here at Create iOS Apps with Swift 3. So basically what I'm trying to say is, if you don't really understand some of the basics of Swift, or you don't really understand some of the basics of iOS development, or even both of those things, I would highly recommend you come and take a look at this course. And just kind of understand some of the basics. So things like, once again, like MVC and how to create controllers, and what's a table controller, and how do I use storyboards, and things like that. You're gonna need to know those types of things in order to follow along in this course. I will talk about some of them and some of their basics, but we won't be doing deep dives into those topics. We're just gonna be using them to create our watch app in this course. So once you have all of those things ready to go and you have a firm grasp, or at least a basic understanding of both Swift and iOS development, you're absolutely ready to start. So let's get going.