![]() ![]() The containers holding them are also views. When you look at an app, everything that you see is defined by a view. Which is that at a high level, a view is just something that defines a piece of your UI. SwiftUI also has views and they serve the same primary role as they do in those frameworks. If you've ever used another UI framework before like UIKit or AppKit, you've probably already heard of the term view. And they're important to everything that we do in SwiftUI. And that's because views are the basic building blocks of user interfaces. But before we dive into the code, I want to talk a little bit about views. Now this is not much so far, clearly, but we're going to build on this throughout the talk. ![]() It's a simple form that lets me quickly order just what I want right from my phone. And I've already done a little bit of work on it already and it looks a little like this. So today we're going to build an app for ordering avocado toast. We've got some Millennials in the audience. Now if any of you have been on the internet lately, you've probably read about what Millennials like myself consider to be the most important part of our lives. And I always try to pick an example that I care about to help motivate me. And we're going to start by covering the basics of views and modifiers. By the end of this session, you'll be able to build a complete user interface with SwiftUI. We're going to look at some code, but we're also going to talk about SwiftUI's design and how it helps you build better apps. This session is about giving you a better understanding of SwiftUI. We just want to help you get there a little bit faster. Because all of you are building great apps already. And this is what we mean by giving you the shortest path to a great app. And these are also the fun features, the features that we pour our passion into, the features that make us feel proud of what we've built.Īnd so the goal of SwiftUI is pretty simple: we want you to spend as much of your time as possible on that fun stuff and less time on the basic stuff, but without compromising on quality. We need to do these things and we need to do them right in order to build a really great app.īut then there are those exciting custom features that are unique to your app. First, you have those basic features that everyone expects from your app, like controls and navigation, being accessible and adapting your layout to different devices. It's a lot of stuff to have to code and maintain, and so how can SwiftUI help you with all this? Well, think about your own apps for a moment. So I just want to take a moment to step back and acknowledge that this is a lot of stuff to have to learn. Now we all know that even this though is not the whole picture, because of course you also add in your own unique features that make your apps stand out from the crowd. These are the kinds of things that help your app to reach the largest possible audience and also help keep it feeling modern. And it needs to come alive with things like interactive animations and support for system features like Dark Mode and Drag and Drop. It needs to adapt to different devices and screen sizes and input types. It needs to be accessible and work with features like dynamic type. And so the takeaway here is that we're not trying to reinvent the wheel with SwiftUI.īut as we all know, the reality is that just knowing how to use these kinds of components is not what it takes to build a great app, because a great app also needs to account for these kinds of things. And SwiftUI even embraces platform-specific concepts like menus on the Mac, the Digital Crown on Apple Watch, and the Siri remote on Apple TV. It has layout containers like stacks and lists. It has controls like buttons and text fields. And that's because it has all of the basic components that you'd expect from a UI framework. But even though SwiftUI is a new framework, a lot of it will already look familiar to you. And that means giving you the shortest path to building great user interfaces. SwiftUI is a new framework that is designed to give you the shortest path to building a great app. Now we have a lot to cover in this session, so let's dive right in. I'm incredibly excited to talk to you today about SwiftUI. So what do you all think of SwiftUI so far? Me too. My name is Matt Ricketson and I work on SwiftUI and later I'll be joined by my colleague Taylor. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |