Home » Full Transcript: Tim Cook at Apple WWDC 2019 Keynote

Full Transcript: Tim Cook at Apple WWDC 2019 Keynote

Lydia Winters: It’s like hide and seek.

Saxs Persson: This is a fully interactive world even at this scale.

Lydia Winters: There are some interesting levers over here. I’m going to press the one with the feathers on it.

Saxs Persson: All right. Watch out for the chickens.

Lydia Winters: Chickens.

Saxs Persson: I’m going to put some seeds in my hand. They should come rushing over.

Lydia Winters: So cute. Hey Saxs, there is another lever over here. It has TNT on it. I’m definitely going to pull it.

Saxs Persson: Watch out.

Lydia Winters: I’m right on the edge. Skeletons.

Saxs Persson: All right, Lydia. Can I help you out with the skeletons?

Lydia Winters: Thank you.

Saxs Persson: Uh oh, chicken, sorry.

Lydia Winters: Oh no. Skeletons only.

Saxs Persson: I’m trying. All right. That’s a huge cave underneath you we can light up.

Lydia Winters: It’s hard to believe that there is nothing on the ground or around us on the stage. It’s incredibly immersive. The fun, quirkiness and surprises of Minecraft are all around to discover. Oh, no, Saxs, a creeper. It’s always a creeper.

Minecraft takes on its biggest dimension yet, earth. Unleash your creativity, build with friends and turn the real world into your playground.

Saxs Persson: Go to Minecraft.net to learn more and sign up for your chance to play on iOS this summer.

Lydia Winters: We can’t wait to see what you do in Minecraft Earth.

Thanks, everyone.

Saxs Persson: Thank you.

Craig Federighi – SVP, Software Engineering, Apple Inc.

Isn’t that great?

Now, just to be clear, no chickens were harmed on the stage at WWDC. I know it was very lifelike, but that was an illusion.

So, that’s ARKit 3, RealityKit and Reality Composer. It’s a huge year for AR. It’s also an enormous year for Swift.

Now, platform programming language transitions, they only come along every 20 to 30 years. You know, C and Objective C, those were created in the 70s and 80s and Swift was just launched five years ago and it’s just amazing how strong it’s been going. There are over 450,000 apps on the App Store using Swift and developers are loving it. Yes.

Thank you all.

But you know, a new language enables new paradigms and with it, new frameworks. Now, Objective C enabled AppKit and then UIKit, improving developer productivity by an order of magnitude and ultimately igniting the app revolution.

ALSO READ:   Top Hacker Shows Us How It's Done by Pablos Holman (Full Transcript)

Now, when we introduced Swift, the first step was to make sure developers could access these great frameworks while taking advantage of the languages, speed, and expressiveness, but, of course, the biggest gains were yet to come.

The true step function in development would only come when we engineered a new framework, built from the ground up to take advantage of everything that Swift had to offer.

Today we are announcing that new framework. It’s called SwiftUI.

Now, SwiftUI is built in Swift for Swift and it provides a new paradigm. You specify UI with simple declarations. It makes code really easy to write and really easy to understand. It’s designed to help you build better apps with way less code.

For instance, let’s take an app like this, a simple list. We have all written one of these. It turns out if you want to write this with support for all of the modern features, you might end up writing something like this in UIKit. It’s actually quite a bit of code.

Here is that same thing in SwiftUI. That’s it. Just a few lines of Swift code. Yes.

Now, there is so much that SwiftUI gives you. It frees you to focus on the functionality in your apps and we automatically do new things for you like when we add Dark Mode, your app gets it automatically.

And of course, the framework is only part of the story because in XCode there’s a new interactive development experience. You can think about it like Playgrounds cranked to eleven built for apps.

Now, to show you SwiftUI in action, I would like to invite Josh Shaffer, the head of our iOS UI frameworks team to the stage to give you a live demo. Josh?

Josh Shaffer – Head of iOS UI frameworks

All right. Thanks, Craig.

Let me show you how easy it is to get started with SwiftUI.

On the canvas on the right, you can see my simple hello world app. And I can just select the text on the canvas and when I do, XCode highlights the code in the editor on the left. Watch what happens when I edit it. The preview updates immediately.

ALSO READ:   Transcript: Ann Makosinski on Why I Don’t Use A Smart Phone at TEDxTeen

Now, to get started let’s open our library of views. We can see options and drag one right out and drop one right on the canvas. As soon as I do, the code for it is added to the editor on the left.

With simple Drag and Drop, we can get real code created instantly, and built in inspectors let us adjust the layout of our views exactly like you would in an app like Keynote. The inspectors are tailored for each type of view so you can see the kind of options that you have, and choose exactly the one that you want.

And I can use the exact same tools to edit the code directly too. So, with just one step, we can take this view we have been building and convert it into a scrollable list of views.

Now, a list requires content. It’s really incredible.

Okay. So, a list requires content and for that we can bring in a model object that I created earlier and start connecting it up to our views.

For the first public app written with SwiftUI, we thought it would be kind of fun to help our friends in product marketing to choose the perfect name for the next release of MacOS. So, here we have a list of themes but we need a place to display a release name.

Pages: First | ← Previous | ... | 16 |17 | 18 | Next → | Last | Single Page View