Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
SwiftUI Essentials – iOS 14 Edition
SwiftUI Essentials – iOS 14 Edition

SwiftUI Essentials – iOS 14 Edition: Developing iOS Apps Using SwiftUI, Swift 5, and Xcode 12

By Neil Smyth
R$133.99 R$80.00
Book May 2021 494 pages 1st Edition
eBook
R$133.99 R$80.00
Print
R$167.99
Subscription
Free Trial
eBook
R$133.99 R$80.00
Print
R$167.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Buy Now

Product Details


Publication date : May 14, 2021
Length 494 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781801813228
Category :
Languages :
Table of content icon View table of contents Preview book icon Preview Book

SwiftUI Essentials – iOS 14 Edition

2. Joining the Apple Developer Program

The first step in the process of learning to develop iOS 14 based applications involves gaining an understanding of the advantages of enrolling in the Apple Developer Program and deciding the point at which it makes sense to pay to join. With these goals in mind, this chapter will outline the costs and benefits of joining the developer program and, finally, walk through the steps involved in enrolling.

2.1 Downloading Xcode 12 and the iOS 14 SDK

The latest versions of both the iOS SDK and Xcode can be downloaded free of charge from the macOS App Store. Since the tools are free, this raises the question of whether to enroll in the Apple Developer Program, or to wait until it becomes necessary later in your app development learning curve.

2.2 Apple Developer Program

Membership in the Apple Developer Program currently costs $99 per year to enroll as an individual developer. Organization level membership is also available.

Prior to the introduction of iOS 9 and Xcode 7, one of the key advantages of the developer program was that it permitted the creation of certificates and provisioning profiles to test your applications on physical iOS devices. Fortunately, this is no longer the case and all that is now required to test apps on physical iOS devices is an Apple ID.

Clearly much can be achieved without the need to pay to join the Apple Developer program. There are, however, areas of app development which cannot be fully tested without program membership. Of particular significance is the fact that Siri integration, iCloud access, Apple Pay, Game Center and In-App Purchasing can only be enabled and tested with Apple Developer Program membership.

Of further significance is the fact that Apple Developer Program members have access to technical support from Apple’s iOS support engineers (though the annual fee initially covers the submission of only two support incident reports, more can be purchased). Membership also includes access to the Apple Developer forums; an invaluable resource both for obtaining assistance and guidance from other iOS developers, and for finding solutions to problems that others have encountered and subsequently resolved.

Program membership also provides early access to the pre-release Beta versions of Xcode, macOS and iOS.

By far the most important aspect of the Apple Developer Program is that membership is a mandatory requirement in order to publish an application for sale or download in the App Store.

Clearly, program membership is going to be required at some point before your application reaches the App Store. The only question remaining is when exactly to sign up.

2.3 When to Enroll in the Apple Developer Program?

Clearly, there are many benefits to Apple Developer Program membership and, eventually, membership will be necessary to begin selling your apps. As to whether to pay the enrollment fee now or later will depend on individual circumstances. If you are still in the early stages of learning to develop iOS apps or have yet to come up with a compelling idea for an app to develop then much of what you need is provided without program membership. As your skill level increases and your ideas for apps to develop take shape you can, after all, always enroll in the developer program later.

If, on the other hand, you are confident that you will reach the stage of having an application ready to publish, or know that you will need access to more advanced features such as Siri support, iCloud storage, In-App Purchasing and Apple Pay then it is worth joining the developer program sooner rather than later.

2.4 Enrolling in the Apple Developer Program

If your goal is to develop iOS apps for your employer, then it is first worth checking whether the company already has membership. That being the case, contact the program administrator in your company and ask them to send you an invitation from within the Apple Developer Program Member Center to join the team. Once they have done so, Apple will send you an email entitled You Have Been Invited to Join an Apple Developer Program containing a link to activate your membership. If you or your company is not already a program member, you can enroll online at:

https://developer.apple.com/programs/enroll/

Apple provides enrollment options for businesses and individuals. To enroll as an individual, you will need to provide credit card information in order to verify your identity. To enroll as a company, you must have legal signature authority (or access to someone who does) and be able to provide documentation such as a Dun & Bradstreet D-U-N-S number and documentation confirming legal entity status.

Acceptance into the developer program as an individual member typically takes less than 24 hours with notification arriving in the form of an activation email from Apple. Enrollment as a company can take considerably longer (sometimes weeks or even months) due to the burden of the additional verification requirements.

While awaiting activation you may log into the Member Center with restricted access using your Apple ID and password at the following URL:

https://developer.apple.com/membercenter

Once logged in, clicking on the Your Account tab at the top of the page will display the prevailing status of your application to join the developer program as Enrollment Pending. Once the activation email has arrived, log into the Member Center again and note that access is now available to a wide range of options and resources as illustrated in Figure 2-1

A screenshot of a cell phone

Description automatically generated

Figure 2-1

2.5 Summary

An important early step in the iOS 14 application development process involves identifying the best time to enroll in the Apple Developer Program. This chapter has outlined the benefits of joining the program, provided some guidance to keep in mind when considering developer program membership and walked briefly through the enrollment process. The next step is to download and install the iOS 14 SDK and Xcode 12 development environment.

Left arrow icon Right arrow icon

Key benefits

  • Learn to write object-oriented code using the Swift programming language
  • Understand how to work with the SwiftUI app lifecycle
  • Become comfortable developing apps using Xcode

Description

Do you want to create iOS apps with SwiftUI, Xcode 12, and Swift 5.3, and want to publish it on the app store? This book helps you achieve these skills with a step-by-step approach. This course first walks you through the steps necessary to set up an iOS development environment together and introduces Swift Playgrounds to learn and experiment with Swift—specifically, the Swift 5.3 programming language. After establishing key concepts of SwiftUI and project architecture, this course provides a guided tour of Xcode in SwiftUI development mode. The book also covers the creation of custom SwiftUI views and explains how these views are combined to create user interface layouts, including the use of stacks, frames, and forms. One of the more important skills you’ll learn is how to integrate SwiftUI views into existing UIKit-based projects and explain the integration of UIKit code into SwiftUI. Finally, the book explains how to package up a completed app and upload it to the app store for publication. Along the way, the topics covered in the book are put into practice through detailed tutorials, the source code for which is also available for download. By the end of this course, you will be able to build your own apps for iOS 14 using SwiftUI and publish it on the app store. The code files for the book can be found here: https://www.ebookfrenzy.com/retail/swiftui-ios14/

What you will learn

Install and configure the Xcode integrated development environment Add navigation and lists to your apps Draw graphics and animate your user interfaces Recognize and respond to touches and gestures Integrate SiriKit into your iOS apps Integrate legacy UIKit iOS code into SwiftUI apps and vice versa

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Buy Now

Product Details


Publication date : May 14, 2021
Length 494 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781801813228
Category :
Languages :

Table of Contents

56 Chapters
1. Start Here Chevron down icon Chevron up icon
2. Joining the Apple Developer Program Chevron down icon Chevron up icon
3. Installing Xcode 12 and the iOS 14 SDK Chevron down icon Chevron up icon
4. An Introduction to Xcode 12 Playgrounds Chevron down icon Chevron up icon
5. Swift Data Types, Constants and Variables Chevron down icon Chevron up icon
6. Swift Operators and Expressions Chevron down icon Chevron up icon
7. Swift Control Flow Chevron down icon Chevron up icon
8. The Swift Switch Statement Chevron down icon Chevron up icon
9. Swift Functions, Methods and Closures Chevron down icon Chevron up icon
10. The Basics of Swift Object-Oriented Programming Chevron down icon Chevron up icon
11. An Introduction to Swift Subclassing and Extensions Chevron down icon Chevron up icon
12. An Introduction to Swift Structures and Enumerations Chevron down icon Chevron up icon
13. An Introduction to Swift Property Wrappers Chevron down icon Chevron up icon
14. Working with Array and Dictionary Collections in Swift Chevron down icon Chevron up icon
15. Understanding Error Handling in Swift 5 Chevron down icon Chevron up icon
16. An Overview of SwiftUI Chevron down icon Chevron up icon
17. Using Xcode in SwiftUI Mode Chevron down icon Chevron up icon
18. SwiftUI Architecture Chevron down icon Chevron up icon
19. The Anatomy of a Basic SwiftUI Project Chevron down icon Chevron up icon
20. Creating Custom Views with SwiftUI Chevron down icon Chevron up icon
21. SwiftUI Stacks and Frames Chevron down icon Chevron up icon
22. SwiftUI State Properties, Observable, State and Environment Objects Chevron down icon Chevron up icon
23. A SwiftUI Example Tutorial Chevron down icon Chevron up icon
24. SwiftUI Lifecycle Event Modifiers Chevron down icon Chevron up icon
25. SwiftUI Observable and Environment Objects – A Tutorial Chevron down icon Chevron up icon
26. SwiftUI Data Persistence using AppStorage and SceneStorage Chevron down icon Chevron up icon
27. SwiftUI Stack Alignment and Alignment Guides Chevron down icon Chevron up icon
28. SwiftUI Lists and Navigation Chevron down icon Chevron up icon
29. A SwiftUI List and Navigation Tutorial Chevron down icon Chevron up icon
30. An Overview of List, OutlineGroup and DisclosureGroup Chevron down icon Chevron up icon
31. A SwiftUI List, OutlineGroup and DisclosureGroup Tutorial Chevron down icon Chevron up icon
32. Building SwiftUI Grids with LazyVGrid and LazyHGrid Chevron down icon Chevron up icon
33. Building Tabbed and Paged Views in SwiftUI Chevron down icon Chevron up icon
34. Building Context Menus in SwiftUI Chevron down icon Chevron up icon
35. Basic SwiftUI Graphics Drawing Chevron down icon Chevron up icon
36. SwiftUI Animation and Transitions Chevron down icon Chevron up icon
37. Working with Gesture Recognizers in SwiftUI Chevron down icon Chevron up icon
38. Creating a Customized SwiftUI ProgressView Chevron down icon Chevron up icon
39. An Overview of SwiftUI DocumentGroup Scenes Chevron down icon Chevron up icon
40. A SwiftUI DocumentGroup Tutorial Chevron down icon Chevron up icon
41. An Introduction to SiriKit Chevron down icon Chevron up icon
42. A SwiftUI SiriKit Messaging Extension Tutorial Chevron down icon Chevron up icon
43. Customizing the SiriKit Intent User Interface Chevron down icon Chevron up icon
44. A SwiftUI SiriKit NSUserActivity Tutorial Chevron down icon Chevron up icon
45. An Overview of Siri Shortcut App Integration Chevron down icon Chevron up icon
46. A SwiftUI Siri Shortcut Tutorial Chevron down icon Chevron up icon
47. Building Widgets with SwiftUI and WidgetKit Chevron down icon Chevron up icon
48. A SwiftUI WidgetKit Tutorial Chevron down icon Chevron up icon
49. Supporting WidgetKit Size Families Chevron down icon Chevron up icon
50. A SwiftUI WidgetKit Deep Link Tutorial Chevron down icon Chevron up icon
51. Adding Configuration Options to a WidgetKit Widget Chevron down icon Chevron up icon
52. Integrating UIViews with SwiftUI Chevron down icon Chevron up icon
53. Integrating UIViewControllers with SwiftUI Chevron down icon Chevron up icon
54. Integrating SwiftUI with UIKit Chevron down icon Chevron up icon
55. Preparing and Submitting an iOS 14 Application to the App Store Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Filter icon Filter
Top Reviews
Rating distribution
Empty star icon Empty star icon Empty star icon Empty star icon Empty star icon 0
(0 Ratings)
5 star 0%
4 star 0%
3 star 0%
2 star 0%
1 star 0%

Filter reviews by


No reviews found
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.