SwiftUI Projects
eBook - ePub

SwiftUI Projects

Craig Clayton

  1. 410 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

SwiftUI Projects

Craig Clayton

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Über dieses Buch

Learn SwiftUI by designing and building complex user interfaces for watchOS, iPadOS, and iOS with the help of projects including a financial app, a sports news app, and a POS systemKey Features• Learn SwiftUI with the help of practical cross-platform development projects• Understand the design considerations for building apps for different devices such as Apple Watch, iPhone, and iPad using SwiftUI's latest features• Work with advanced SwiftUI layout features, including SF Symbols, SwiftUI grids, and forms in SwiftUIBook DescriptionReleased by Apple during WWDC 2019, SwiftUI provides an innovative and exceptionally simple way to build user interfaces for all Apple platforms with the power of Swift.This practical guide involves six real-world projects built from scratch, with two projects each for iPhone, iPad, and watchOS, built using Swift programming and Xcode. Starting with the basics of SwiftUI, you'll gradually delve into building these projects. You'll learn the fundamental concepts of SwiftUI by working with views, layouts, and dynamic types. This SwiftUI book will also help you get hands-on with declarative programming for building apps that can run on multiple platforms. Throughout the book, you'll work on a chart app (watchOS), NBA draft app (watchOS), financial app (iPhone), Tesla form app (iPhone), sports news app (iPad), and shoe point-of-sale system (iPad), which will enable you to understand the core elements of a SwiftUI project.By the end of the book, you'll have built fully functional projects for multiple platforms and gained the knowledge required to become a professional SwiftUI developer.What you will learn• Understand the basics of SwiftUI by building an app with watchOS• Work with UI elements such as text, lists, and buttons• Create a video player in UIKit and import it into SwiftUI• Discover how to leverage an API and parse JSON in your app using Combine• Structure your app to use Combine and state-driven features• Create flexible layouts on iPadWho this book is forSwiftUI Projects is intended for anyone who is already comfortable with Swift. We do not cover Swift topics in detail, so you need to be familiar with these already. All of the SwiftUI topics are taught as if this is the first time you've learned them and will gradually get more difficult.

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist SwiftUI Projects als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu SwiftUI Projects von Craig Clayton im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Computer Science & Programming. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
2020
ISBN
9781839218293

Chapter 1: SwiftUI Basics

When Apple announced SwiftUI at WWDC in June, I was fortunate enough to be there. As soon as Apple presented SwiftUI, I was like a kid in a candy store because one of my biggest passions in iOS is working on the visual side. I love being able to take a design and try to come as close as I can to matching every detail of a designer's composition. The biggest downfall of using storyboards, which I am still a fan of, is that you cannot quickly prototype. I have ways of doing it, but it takes time, and sometimes you want to go in and try something and not spend a lot of time setting things up like Collection views or Table views with data. SwiftUI helps me focus on creating a beautiful design without needing any data, and when I am ready, I can plug in data. I find this to be the best process because I can add the data layer after completing the design.
I enjoyed designing all six apps that we will cover in this book. I tried to cover a wide range of topics with these six apps. We will build two watch apps, two iPhone apps, and two iPad apps. Most of these features are available on any device; I decided to mix up the apps so that there was a little variety. One thing about this book that might be slightly different is that I have set up the book so we cover design first. After that, we'll focus on the data side. If you do not care about design, you can easily skip this part. Do what you feel is best for you.
In this chapter, we will be working with the following:
  • Views and controls
  • Shapes
  • View layout and presentation
Views and controls are a crucial part of SwiftUI. Some of them you'll be familiar with if you have done iOS development before. Shapes in SwiftUI are super easy to create and use, and once you are comfortable with them, we'll add animations to them to bring them to life. We'll look at Rounded Rectangles, Rectangles, Circles, and even creating Activity Rings later in the book. Finally, view layout and presentation is a big part of SwiftUI, and we'll cover a ton of ways to make beautiful designs and recreate them in SwiftUI.
In this chapter's sample files, you will find a project called SwiftUIBasics. You can follow along with all of the code examples in that file. Since we will be doing a ton of writing, I designed this chapter for you to follow along...

Inhaltsverzeichnis

  1. SwiftUI Projects
  2. Why subscribe?
  3. Preface
  4. Chapter 1: SwiftUI Basics
  5. Chapter 2: SwiftUI Watch Tour
  6. Chapter 3: NBA Draft – Watch App
  7. Chapter 4: Car Order Form – Design
  8. Chapter 5: Car Order Form – Data
  9. Chapter 6: Financial App – Design
  10. Chapter 7: Financial App – Core Data
  11. Chapter 8: Shoe Point of Sale System – Design
  12. Chapter 9: Shoe Point of Sale System – CloudKit
  13. Chapter 10: Sports News App – Design
  14. Chapter 11: Sports News App – Data
  15. Other Books You May Enjoy
Zitierstile für SwiftUI Projects

APA 6 Citation

Clayton, C. (2020). SwiftUI Projects (1st ed.). Packt Publishing. Retrieved from https://www.perlego.com/book/2059679/swiftui-projects-pdf (Original work published 2020)

Chicago Citation

Clayton, Craig. (2020) 2020. SwiftUI Projects. 1st ed. Packt Publishing. https://www.perlego.com/book/2059679/swiftui-projects-pdf.

Harvard Citation

Clayton, C. (2020) SwiftUI Projects. 1st edn. Packt Publishing. Available at: https://www.perlego.com/book/2059679/swiftui-projects-pdf (Accessed: 15 October 2022).

MLA 7 Citation

Clayton, Craig. SwiftUI Projects. 1st ed. Packt Publishing, 2020. Web. 15 Oct. 2022.