Quantcast
Channel: Kodeco | High quality programming tutorials: iOS, Android, Swift, Kotlin, Unity, and more
Viewing all articles
Browse latest Browse all 4370

watchOS by Tutorials Updated for Swift 3 and watchOS 3

$
0
0

w2t-update-featureHappy Monday – it’s another iOS 10 Feast book release!

It’s been about a year since we released the first edition of watchOS by Tutorials, and the team has been working incredibly hard to bring you watchOS by Tutorials, Second Edition — fully updated for Swift 3, watchOS 3 and Xcode 8!

watchOS by Tutorials teaches you everything you need to know to develop your own apps for watchOS 3, including new features such as the Dock, CloudKit, Digital Crown access and more.

This will be a free update for existing watchOS by Tutorials customers — our way to say “thanks” to our readers for their support.

Don’t own watchOS by Tutorials yet? Read on to see how you can get a copy!

What is watchOS by Tutorials?

This book is for intermediate iOS developers who already know the basics of iOS and Swift development but want to learn how to make Apple Watch apps for watchOS 3.

Besides updating this book fully for Swift 3, we wanted to give you some real experience with the new API’s in watchOS 3 that we thought were critically important for anyone learning the platform. The full list of changes include:

  • Glances replaced by the Dock: Glances have been replaced by Dock, and apps in the Dock launch immediately as the operating system now keeps these apps in memory. There are several new APIs that help you configure the view of your app in the Dock. The Snapshot API and the Background Refresh API help you make sure that the content displayed is always up-to-date, while the Background Refresh API will also let you keep code running after the user drops her wrist.
  • CloudKit: CloudKit allows user to keep the watch and phone data in sync even when the phone isn’t around, as long as user is on a known WiFi network – this is a huge leap forward.
  • Richer interactions with Digital Crown and gesture recognizers: New in watchOS 3, you have access to raw Digital Crown data, and can add various gesture recognizers to your interfaces, such as swipe, tap, pan, and long press.
  • SpriteKit and SceneKit: SpriteKit and SceneKit are now available in watchOS 3. Although people generally think of them as game development frameworks, you can use them to design interactivity with lively animation into any kind of app.

watchOS by Tutorials is a whopping 27 chapters and 515 pages. Let’s take a quick look at what’s inside:

  • Chapter 1, Hello, Apple Watch!: Dive straight in and build your first watchOS app–a very modern twist on the age-old “Hello, world!” app.

bezelHello

  • Chapter 2, Designing Great Watch Apps: Apple has repeatedly emphasized glanceable, actionable, and responsive as the design goal of watchOS 3 apps. From icon design to the new interactivity APIs, make your apps stand out from the rest.
  • Chapter 3, Architecture: watchOS might support native apps, but they still have an unusual architecture. This chapter will teach you everything you need to know about this unique aspect of watch apps.
  • Chapter 4, UI Controls: There’s not a UIView to be found! In this chapter you’ll dig into the suite of interface objects that ship with WatchKit–watchOS’ user interface framework.

image32

  • Chapter 5, Pickers: WKInterfacePicker is the only programmatic way to work with the Digital Crown. You’ll learn how to set one up, what the different visual modes are, and how to respond to the user interacting with the Digital Crown via the picker.

finished

  • Chapter 6, Layout: Auto Layout? Nope. Springs and Struts then? Nope. Guess again. Get an overview of the layout system you’ll use to build the interfaces for your watchOS apps.

finished

  • Chapter 7, Tables: Tables are the staple ingredient of almost any watchOS app. Learn how to set them up, how to populate them with data, and just how much they differ from UITableView.
  • Chapter 8, Navigation: You’ll learn about the different modes of navigation available on watchOS, as well as how to combine them.

b6

  • Chapter 9, Digital Crown and Gesture Recognition: Explore the rich set of physical interactions with the Watch, including the Digital Crown, pan gestures, and force touch!
  • Chapter 10, Snapshot API: Glances are out, snapshots are in. Learn how to make your app appear in the new Dock — and update the icon dynamically!

new-display-name

  • Chapter 11, Background Refresh: Learn how the Watch keeps your app data refreshed behind the scenes.

image9

image11

  • Chapter 12, Animation: The way you animate your interfaces has changed in watchOS. You’ll learn everything you need to know about both animated image sequences and the new API in this chapter.
  • Chapter 13, CloudKit: Learn how to persist and retrieve data with CloudKit and keep your Watch and iPhone synchronized — even when they’re not in range of each other.

phone_to_watch_side_by_side

  • Chapter 14, Notifications: watchOS offers support for several different types of notifications, and allows you to customize them to the individual needs of your watch app. In this chapter, you’ll get the complete overview.

custom_dynamic_long_look_notification_bezel

  • Chapter 15, Complications: Complications are small elements that appear on the user’s selected watch face and provide quick access to frequently used data from within your app. This chapter will walk you through the process of setting up your first complication, along with introducing each of the complication families and their corresponding layout templates.

familyTypes

  • Chapter 16, Watch Connectivity: With the introduction of native apps, the way the watch app and companion iOS app share data has fundamentally changed. Out are App Groups, and in is the Watch Connectivity framework. In this chapter you’ll learn the basics of setting up device-to-device communication between the Apple Watch and the paired iPhone.

watch_to_phone_side_by_side

  • Chapter 17, Audio and Video: As a developer, you can now play audio and video on the Apple Watch. In this chapter, you’ll gain a solid understanding of how to implement this, as well as learn about some of the idiosyncrasies of the APIs, which are related to the unique architecture of a watch app.

final-watch

  • Chapter 18, Interactive Animations: Build a simple game that you can control with just your wrist — using SpriteKit and SceneKit.

final-notification

  • Chapter 19, Advanced Watch Connectivity: In earlier chapters, you learned how to set up a Watch Connectivity session and update the application context. In this chapter, you’ll take a look at some of the other features of the framework, such as background transfers and real-time messaging.

qr_phone_and_watch

  • Chapter 20, Advanced Complications: Now that you know how to create a basic complication, this chapter will walk you through adding Time Travel support, as well giving you the lowdown on how to efficiently update the data presented by your complication.

timeTravelAnimation

  • Chapter 21, Handoff: Want to allow your watch app users to begin a task on their watch and then continue it on their iPhone? Sure you do, and this chapter will show exactly how to do that through the use of Handoff.

handoff02

  • Chapter 22, Core Motion: The Apple Watch doesn’t have every sensor the iPhone does, but you can access what is available via the Core Motion framework. In this chapter, you’ll learn how to set up Core Motion, how to request authorization, and how to use the framework to track the user’s steps.

bezelDreamWalker

  • Chapter 23, HealthKit: The HealthKit framework allows you to access much of the data stored in user’s health store, including their heart rate! This chapter will walk you through incorporating HealthKit into your watch app, from managing authorization to recording a workout session.

Watch_ActiveWorkout_bez

  • Chapter 24, Core Location: A lot of apps are now location aware, but in order to provide this functionality you need access to the user’s location. With watchOS 3, developers now have exactly that via the Core Location framework. Learn everything you need to know about using the framework on the watch in this chapter.

bezel-01

  • Chapter 25, Haptic Feedback: The Taptic Engine in the Apple Watch allows apps to send taps to the wearers wrist, as a subtle and discreet way to communicate information or provide feedback. In this chapter, you’ll learn how to take advantage of the Taptic Engine to provide Haptic feedback to your users.

Watch_ResultsTop_bezel

bezel

  • Chapter 26, Localization: Learn how to expand your reach and grow a truly international audience by localizing your watch app using the tools and APIs provided by Apple.

bezel-4

  • Chapter 27, Accessibility: You want as many people as possible to enjoy your watch app, right? Learn all about the assistive technologies available in watchOS, such as VoiceOver and Dynamic Type, so you can make your app just as enjoyable for those with disabilities as it is for those without.

bezel

One thing you can count on: after reading this book you’ll have all the experience necessary to build rich and engaging apps for the Apple Watch platform.

About the Authors

Of course, our book would be nothing without our team of experienced and dedicated authors:

ScottScott Atkinson is a software developer in Alexandria, Virginia. USA. For a day job, Scott is the iOS developer for Homesnap, a really great real estate discovery app. When he’s not developing, Scott rows on the Potomac River, explores new restaurants and cooks great food.

SoheilSoheil Azarpour is an engineer, developer, author, creator, husband and father. He enjoys bicycling, boating and playing the piano. He lives in Merrimack, NH, and creates iOS apps both professionally and independently.

MatthewMatthew Morey is an engineer, author, hacker, creator and tinkerer. As an active member of the iOS community and Director of Mobile Engineering at MJD Interactive he has led numerous successful mobile projects worldwide. When not developing apps he enjoys traveling, snowboarding, and surfing. He blogs about technology and business at matthewmorey.com.

BenBen Morrow delights in discovering the unspoken nature of the world. He’ll tell you the surprising bits while on a walk. He produces beauty by drawing out the raw wisdom that exists within each of us.

RyanRyan Nystrom is an iOS Engineer at Instagram and passionate open source contributor for both Facebook and his personal work. In his free time, Ryan enjoys flying planes as a private pilot. You can reach Ryan on Twitter at @_ryannystrom.

AudreyAudrey Tam retired in 2012 from a 25yr career as a computer science academic. Her teaching included many programming languages, as well as UI design and evaluation. Before moving to Australia, she worked on Fortran and PL/1 simulation software at IBM. Audrey now teaches iOS app development to non-programmers.

JackJack Wu has built dozens of iOS apps and enjoys it very much. Outside of work, Jack enjoys coding on the beach, coding by the pool, and sometimes just having a quick code in the park.

Free watchOS Chapters this Week

To help celebrate the launch, we’re going to open up the book and share three free chapters with you this week! This will give you a chance to check out the book — we’re confident you’ll love it! :]

Where To Go From Here?

watchOS by Tutorials, Second Edition is now 100% complete, fully updated for Swift 3, watchOS 3 and Xcode 8 — and available today.

  • If you’ve already bought watchOS by Tutorials, you can download the new book immediately on your My Loot page.
  • If you don’t have watchOS by Tutorials yet, you can grab your own copy in our store.

You can get 10% off on this book — or anything else in our store — with the code IOS10FEAST.

Speaking of which, be sure to check out everything we’re offering this year in the iOS 10 Feast, including $40,000 in giveaways!

To enter, simply retweet this post with the #ios10feast hashtag using the button below:


We hope you enjoy this massive free update, and stay tuned for more book releases and updates coming soon!

The post watchOS by Tutorials Updated for Swift 3 and watchOS 3 appeared first on Ray Wenderlich.


Viewing all articles
Browse latest Browse all 4370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>