Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
iOS 14 Programming for Beginners
iOS 14 Programming for Beginners

iOS 14 Programming for Beginners: Get started with building iOS apps with Swift 5.3 and Xcode 12 , Fifth Edition

eBook
AU$41.99 AU$60.99
Paperback
AU$75.99
Subscription
Free Trial
Renews at AU$24.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $24.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

iOS 14 Programming for Beginners

Chapter 1: Getting Familiar with Xcode

Welcome to iOS 14 Programming for Beginners. I hope you will find this a useful introduction to writing and publishing iOS 14 apps on the App Store.

In this chapter, you'll learn how to download and install Xcode on your Mac. You'll familiarize yourself with the different parts of the Xcode user interface, and you'll create your first iOS app and run it in the iOS simulator. You will then learn how to connect an iOS device to Xcode via USB so that you can run the app on it, how to add an Apple ID to Xcode so that the necessary digital certificates can be created and installed on your device, and how to trust the certificate on your device. Finally, you will learn how to connect to your device over Wi-Fi, so you no longer need to plug and unplug your device every time you want to run an app.

By the end of this chapter, you will know how to create and run apps on the iOS simulator or a device, which you will need to do when you build your own apps.

The following topics will be covered:

  • Downloading and installing Xcode from the App Store
  • Understanding the Xcode user interface
  • Running the app in the iOS simulator
  • Using an iOS device for development

Technical requirements

To perform the exercises for this chapter, you will need the following:

  • An Apple Mac computer running macOS 10.15 Catalina or macOS 11.0 Big Sur
  • An Apple ID (if you don't have one, you will create one in this chapter)
  • Optionally, an iOS device running iOS 14

The Xcode project for this chapter is located in the Chapter01 folder of the code bundle for this book, which can be downloaded here:

https://github.com/PacktPublishing/iOS-14-Programming-for-Beginner-Fifth-Edition

Check out the following video to see the Code in Action: https://bit.ly/3jvJ8hs

You'll start by downloading Xcode, Apple's integrated development environment for developing iOS apps, from the App Store in the next section.

Downloading and installing Xcode from the App Store

Before you begin writing iOS apps, you need to download and install Xcode from the App Store. Follow these steps:

  1. Choose App Store from the Apple menu.
  2. In the search field in the top-right corner, type Xcode and press the Return key.
  3. You should see Xcode in the search results. Click Get and click Install.
  4. If you have an Apple ID, type it in the Apple ID textbox. If you don't have an Apple ID, click the Create Apple ID button and follow the step-by-step instructions to create one:
    Figure 1.1 – Apple ID creation dialog box

    Figure 1.1 – Apple ID creation dialog box

    Important information

    You can see more information on how to create an Apple ID at this link: https://support.apple.com/en-us/HT204316#appstore

  5. Once Xcode has been installed, launch it. You should see the following Welcome to Xcode screen. Click Create a new Xcode project in the left-hand pane:
    Figure 1.2 – Welcome to Xcode screen

    Figure 1.2 – Welcome to Xcode screen

  6. You will see the new project screen as follows. In the Choose a template for your new project: section, select iOS. Choose App and then click Next:
    Figure 1.3 – Choose a template for your new project screen

    Figure 1.3 – Choose a template for your new project screen

  7. You will now see the Choose options for your new project: screen:
    Figure 1.4 – Choose options for your new project screen

    Figure 1.4 – Choose options for your new project screen

    Configure this options screen as follows:

    • Product Name: The name of your app. Enter ExploringXcode in the text field.
    • Organization Identifier: Used to create a unique identifier for your app on the App Store. Normally, reverse DNS notation is used. Enter com.yourname for now.
    • Interface: The method used to create the user interface for your app. Set this to Storyboard.
    • Language: The programming language to be used. Set this to Swift.

      Leave the other settings at their default values. Make sure all the checkboxes are unticked. Click Next when done.

  8. You'll now see a Save dialog box. Choose a location to save your project, such as the Desktop or Documents folder, and then click Create:
    Figure 1.5 – Save dialog box

    Figure 1.5 – Save dialog box

  9. If you see a dialog box saying No author information was supplied by the version control system, click Fix.

    Important information

    The reason why you see this dialog box is because the Source Control checkbox is ticked. Apple recommends that Source Control be turned on. To learn more about version control and Git, refer to the following link: https://git-scm.com/video/what-is-version-control

  10. You will see the Source Control preference screen as follows:
    Figure 1.6 – Source Control preference screen

    Figure 1.6 – Source Control preference screen

    Enter the following information:

    • Author Name: Your own name
    • Author Email: Your email address

      Close the Source Control preference screen by clicking the red button in the top-left corner when done.

  11. The Xcode main window will appear.

Fantastic! You have now successfully downloaded and installed Xcode and created your first project. In the next section, you will learn about the Xcode user interface.

Understanding the Xcode user interface

You've just created your first Xcode project! As you can see, the Xcode user interface is divided into several distinct parts, as shown:

Figure 1.7 – Xcode user interface

Figure 1.7 – Xcode user interface

Let's look at each part in more detail. The following description corresponds to the numbers shown in the preceding screenshot:

  1. Toolbar: Used to build and run your apps, and view the progress of running tasks. The left side of the toolbar contains the Navigator button (1), the Play button (2), the Stop button (3), the Scheme menu (4), and the Activity View (5):
    Figure 1.8 – Xcode toolbar (left side)

    Figure 1.8 – Xcode toolbar (left side)

    • The Navigator button toggles the Navigator area on and off.
    • The Play button is used to build and run your app.
    • The Stop button stops any currently running apps.
    • The Scheme menu shows the specific target to be built (Exploring Xcode), and the destination (simulator or device) to run the target on (iOS simulator). Schemes and destinations are distinct. Schemes specify the settings for building, running, testing, profiling, analyzing, and archiving your project. Destinations specify installation locations for your app. Typically, a scheme exists for each target in your project. Destinations exist for physical devices and simulators.
    • The Activity View displays the progress of running tasks.

      The right side of the toolbar contains the Library button (1), the Code Review button (2), and the Inspector button (3):

Figure 1.9 – Xcode toolbar (right side)

Figure 1.9 – Xcode toolbar (right side)

  • The Library button displays user interface elements, code snippets, and other resources.
  • The Code Review button allows you to view past versions of the file you're currently editing.
  • The Inspector button toggles the Inspector area on and off.
  1. Navigator area: Provides quick access to the various parts of your project. Project navigator is displayed by default.
  2. Editor area: Allows you to edit source code, user interfaces, and other resources.
  3. Inspector area: Allows you to view and edit information about items selected in Navigator area or the Editor area.
  4. Debug area: Toggled by typing Shift + Command + Y. Contains the debug bar, the variables view, and Console.

Don't be overwhelmed by all the different parts, as you'll learn about them in more detail in later chapters. Now that you are familiar with the Xcode interface, you will run the app you just created in the iOS simulator, which displays a representation of your iOS device.

Running the app in the iOS simulator

The iOS simulator is installed when you install Xcode. It provides a simulated iOS device so that you can see what your app looks like and how it behaves, without needing a physical iOS device. It can model all the screen sizes and resolutions for both the iPad and iPhone so you can test your app on multiple devices easily.

To run your app in the simulator, follow these steps:

  1. Click the Scheme menu in the toolbar and you will see a list of simulators. Choose iPhone SE (2nd generation) from this menu:
    Figure 1.10 – Xcode Scheme menu with iPhone SE (2nd generation) selected

    Figure 1.10 – Xcode Scheme menu with iPhone SE (2nd generation) selected

  2. Click the Play button to install and run your app on the currently selected simulator. You can also use the Command + R keyboard shortcut.
  3. If you see the Developer Tools Access dialog box, enter the username and password of the Mac's administrator account and click Continue.
  4. The simulator will launch and show a representation of an iPhone SE (2nd generation). Your app displays a white screen, as you have not yet added anything to your project:
    Figure 1.11 – iOS simulator

    Figure 1.11 – iOS simulator

  5. Switch back to Xcode and click on the Stop button (or press Command + .) to stop the currently running project.

You have just created and run your first iOS app in the simulator! Great job!

If you look at the Scheme menu, you may wonder what the No Devices and Build sections are for. Let's take a look at them in the next section.

Understanding the No Devices and Build sections

You learned how to choose a simulator in the Scheme menu to run your app in the previous section. In addition to the list of simulators, the Scheme menu also has No Devices and Build sections. These allow you to run apps on actual iOS devices, and prepare apps for submission to the App Store.

Click the Scheme menu in the toolbar to see the No Devices and Build sections at the top of the menu:

Figure 1.12 – Xcode Scheme menu with Any iOS Device (arm64) selected

Figure 1.12 – Xcode Scheme menu with Any iOS Device (arm64) selected

The No Devices section currently displays text stating No devices connected to 'My Mac'... because you currently don't have any iOS devices connected to your computer. If you were to plug in an iOS device, it would appear in this section, and you would be able to run the apps you develop on it for testing. Running your apps on an actual device is recommended as the simulator will not accurately reflect the performance characteristics of an actual iOS device, and does not have some hardware features and software APIs that actual devices have.

The Build section has only one menu item, Any iOS Device (arm64). This is used when you need to archive your app prior to submitting it to the App Store. You'll learn how to do this in the final chapter of this book.

Now, let's see how to build and run your app on an actual iOS device. The vast majority of the instructions in this book do not require you to have an iOS device though, so if you don't have one, skip the next section and go straight to Chapter 2, Simple Values and Types.

Using an iOS device for development

Although you'll be able to go through most of the exercises in this book using the simulator, it is recommended to build and test your apps on an actual iOS device, as the simulator will not be able to simulate some hardware components and software APIs.

Important information

For a comprehensive look at all the differences between the simulator and an actual device, refer to this link:

https://help.apple.com/simulator/mac/current/#/devb0244142d

In addition to your device, you'll need an Apple ID or a paid Apple Developer account to build and run your app on your device. You'll use the same Apple ID that you used to download Xcode from the App Store for now:

  1. Use the cable that came with your iOS device to connect it to your Mac, and make sure it is unlocked.

    Tip

    You can view connected devices by choosing Window | Devices and Simulators in the Xcode menu bar.

  2. In the Scheme menu, choose your device (iPhone in this case) as the run destination:
    Figure 1.13 – Xcode Scheme menu with actual iOS device selected

    Figure 1.13 – Xcode Scheme menu with actual iOS device selected

  3. Wait for Xcode to finish indexing and processing, which will take a while. Once complete, Ready will be displayed in the status window.
  4. Run the project by clicking the Play button (or use Command + R). You will get the following error: Signing for "Exploring Xcode" requires a development team.:
    Figure 1.14 – Xcode Signing & Capabilities pane

    Figure 1.14 – Xcode Signing & Capabilities pane

    This is because a digital certificate is required to run the app on an iOS device, and you need to add an Apple ID or paid Apple Developer account to Xcode so that the digital certificate can be generated.

    Important note

    Using an Apple ID will allow you to test your app on an iOS device, but you will need a paid Apple Developer account to distribute apps on the App Store. You'll learn more about this in Chapter 26, Testing and Submitting Your App to the App Store.

    Important note

    Certificates ensure that the only apps that run on your device are the ones you authorize. This helps to protect against malware. You can also learn more about them at this link:

    https://help.apple.com/xcode/mac/current/#/dev60b6fbbc7

  5. Click the Add Account... button:
    Figure 1.15 – Xcode Signing & Capabilities pane with Add Account button selected

    Figure 1.15 – Xcode Signing & Capabilities pane with Add Account button selected

  6. The Xcode Preferences window appears with the Accounts pane selected. Enter your Apple ID and click Next. Note that you can create a different Apple ID if you wish by using the Create Apple ID button:
    Figure 1.16 – Apple ID creation dialog box

    Figure 1.16 – Apple ID creation dialog box

    Tip

    You can also access Xcode preferences by choosing Preferences in the Xcode menu.

  7. Enter your password when prompted. After a few minutes, the Accounts pane will display your account settings:
    Figure 1.17 – Accounts pane in Xcode preferences

    Figure 1.17 – Accounts pane in Xcode preferences

  8. Close the Preferences window when you're done by clicking the red button in the top-left corner.
  9. In Xcode's editing area, click Signing & Capabilities. Make sure Automatically manage signing is ticked and that Personal Team is selected from the Team pop-up menu:
    Figure 1.18 – Xcode Signing & Capabilities pane with account set

    Figure 1.18 – Xcode Signing & Capabilities pane with account set

  10. If you still see errors on this screen, try changing your Bundle Identifier by typing some random characters into it, for example, com.myname5109.ExploringXcode.
  11. Everything should work now when you build and run, and your app will be installed on your iOS device. However, it will not launch and you will see the following message:
Figure 1.19 – Could not launch "ExploringXcode" dialog box

Figure 1.19 – Could not launch "ExploringXcode" dialog box

This means you need to trust the certificate that has been installed on your device. You'll learn how to do this in the next section.

Trusting the Developer App certificate on your iOS device

A Developer App certificate is a special file that gets installed on your iOS device along with your app. Before your app can run, you need to trust it. Let's do that now:

  1. On your iOS device, tap Settings.
  2. Tap General.
  3. Tap Device Management:
    Figure 1.20 – Device Management setting in iOS Settings

    Figure 1.20 – Device Management setting in iOS Settings

  4. Tap Apple Development:
    Figure 1.21 – Apple Development section in Device Management settings

    Figure 1.21 – Apple Development section in Device Management settings

  5. Tap Trust "Apple Development:":
    Figure 1.22 – Trust button

    Figure 1.22 – Trust button

  6. Tap Trust:
    Figure 1.23 – Trust dialog box

    Figure 1.23 – Trust dialog box

  7. You should see the following text, which shows the app is now trusted:
    Figure 1.24 – Apple Development section with trusted certificate

    Figure 1.24 – Apple Development section with trusted certificate

  8. Click the Play button in Xcode to build and run again. You'll see your app launch and run on your iOS device.

Congratulations! Note that you have to connect your iOS device to your Mac using the cable in order to build and run your app. You'll learn how to connect to your device over Wi-Fi in the next section.

Connecting an iOS device wirelessly

Unplugging and replugging your iOS device to your Mac gets pretty cumbersome after a while, so now you'll configure Xcode to connect to your iOS device over Wi-Fi. Follow these steps:

  1. Make sure your iOS device is plugged in to your Mac, and that both the Mac and iOS devices are on the same wireless network.
  2. Choose Window | Devices and Simulators from the Xcode menu bar:
    Figure 1.25 – Xcode Window menu with Devices and Simulators selected

    Figure 1.25 – Xcode Window menu with Devices and Simulators selected

  3. Click on the checkbox marked Connect via network:
Figure 1.26 – Xcode Devices and Simulators window with "Connect via network" checked

Figure 1.26 – Xcode Devices and Simulators window with "Connect via network" checked

Awesome! Your iOS device is now connected wirelessly to Xcode, and you no longer need the USB cable to be connected to it.

Summary

In this chapter, you learned how to download and install Xcode on your Mac. You familiarized yourself with the different parts of the Xcode user interface. You created your first iOS app, selected a simulator, and built and ran the app. You learned what the No Device and Generic iOS Device menu items are for. This enables you to create and run iOS apps on your Mac without requiring an iOS device.

You learned how to connect an iOS device to Xcode via USB so that you can run an app on it. You added an Apple ID to Xcode so the necessary digital certificates can be created and installed on your device, and trusted the certificate on your device. This gives you the ability to run your apps on an actual device, so you can more accurately determine their performance, and make use of features not available in the iOS simulator.

Finally, you learned how to connect to your device over Wi-Fi, so you no longer need to plug and unplug your device every time you want to run an app. This makes it much more convenient to build and test your apps on an iOS device as any new builds can be transferred immediately over the air.

In the next chapter, we'll start exploring the Swift language using Swift Playgrounds, and learn how simple values and types are implemented in Swift.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Explore the latest features of Xcode 12 and the Swift 5.3 programming language in this updated fifth edition
  • Kick-start your iOS programming career and have fun building your own iOS apps
  • Discover the new features of iOS 14 such as Mac Catalyst, SwiftUI, widgets and App Clips

Description

If you're looking to work and experiment with powerful iOS 14 features such as widgets and App Clips to create your own apps, this iOS programming guide is for you. The book offers a comprehensive introduction for experienced programmers who are new to iOS, taking you through the entire process of learning the Swift language, writing your own apps, and publishing them on the App Store. Fully updated to cover the new iOS 14 features, along with Xcode 12 and Swift 5.3, this fifth edition of iOS 14 Programming for Beginners starts with an introduction to the Swift programming language and shows you how to accomplish common programming tasks with it. You'll then start building the user interface (UI) of a complete real-world app using the storyboards feature in the latest version of Xcode and implement the code for views, view controllers, data managers, and other aspects of mobile apps. The book will also help you apply iOS 14 features to existing apps and introduce you to SwiftUI, a new way to build apps for all Apple devices. Finally, you’ll set up testers for your app and understand what you need to do to publish your app on the App Store. By the end of this book, you'll not only be well versed in writing and publishing applications, but you’ll also be able to apply your iOS development skills to enhance existing apps.

Who is this book for?

This book is for anyone who has programming experience but is new to Swift and iOS app development. Experienced programmers looking to explore the latest iOS 14 features will also find this book useful.

What you will learn

  • Get to grips with the fundamentals of Xcode 12 and Swift 5.3, the building blocks of iOS development
  • Understand how to prototype an app using storyboards
  • Discover the Model-View-Controller design pattern and how to implement the desired functionality within an app
  • Implement the latest iOS features, such as widgets and App Clips
  • Convert an existing iPad app into an Apple Silicon Mac app
  • Design, deploy, and test your iOS applications with design patterns and best practices

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 27, 2020
Length: 766 pages
Edition : 5th
Language : English
ISBN-13 : 9781800209749
Vendor :
Apple
Category :
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $24.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Nov 27, 2020
Length: 766 pages
Edition : 5th
Language : English
ISBN-13 : 9781800209749
Vendor :
Apple
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
AU$24.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
AU$249.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just AU$5 each
Feature tick icon Exclusive print discounts
AU$349.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just AU$5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total AU$ 183.97
iOS 14 Programming for Beginners
AU$75.99
SwiftUI Projects
AU$53.99
Mastering Swift 5.3
AU$53.99
Total AU$ 183.97 Stars icon

Table of Contents

30 Chapters
Section 1: Swift Chevron down icon Chevron up icon
Chapter 1: Getting Familiar with Xcode Chevron down icon Chevron up icon
Chapter 2: Simple Values and Types Chevron down icon Chevron up icon
Chapter 3: Conditionals and Optionals Chevron down icon Chevron up icon
Chapter 4: Range Operators and Loops Chevron down icon Chevron up icon
Chapter 5: Collection Types Chevron down icon Chevron up icon
Chapter 6: Functions and Closures Chevron down icon Chevron up icon
Chapter 7: Classes, Structures, and Enumerations Chevron down icon Chevron up icon
Chapter 8: Protocols, Extensions, and Error Handling Chevron down icon Chevron up icon
Section 2:Design Chevron down icon Chevron up icon
Chapter 9: Setting Up the User Interface Chevron down icon Chevron up icon
Chapter 10: Building Your User Interface Chevron down icon Chevron up icon
Chapter 11: Finishing Up Your User Interface Chevron down icon Chevron up icon
Chapter 12: Modifying and Configuring Cells Chevron down icon Chevron up icon
Section 3:Code Chevron down icon Chevron up icon
Chapter 13: Getting Started with MVC and Collection Views Chevron down icon Chevron up icon
Chapter 14: Getting Data into Collection Views Chevron down icon Chevron up icon
Chapter 16: Getting Started with MapKit Chevron down icon Chevron up icon
Chapter 17: Getting Started with JSON Files Chevron down icon Chevron up icon
Chapter 18: Displaying Data in a Static Table View Chevron down icon Chevron up icon
Chapter 19: Getting Started with Custom UIControls Chevron down icon Chevron up icon
Chapter 20: Getting Started with Cameras and Photo Libraries Chevron down icon Chevron up icon
Chapter 21: Understanding Core Data Chevron down icon Chevron up icon
Section 4:Features Chevron down icon Chevron up icon
Chapter 22: Getting Started with Apple Silicon Macs Chevron down icon Chevron up icon
Chapter 23: Getting Started with SwiftUI Chevron down icon Chevron up icon
Chapter 24: Getting Started with Widgets Chevron down icon Chevron up icon
Chapter 25: Getting Started with App Clips Chevron down icon Chevron up icon
Chapter 26: Testing and Submitting Your App to the App Store Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.4
(20 Ratings)
5 star 65%
4 star 20%
3 star 5%
2 star 5%
1 star 5%
Filter icon Filter
Top Reviews

Filter reviews by




Lukasz Mar 17, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Good book with lots of examples online.Good for starters.
Amazon Verified review Amazon
Malick Jan 01, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Clear and easy to understand
Amazon Verified review Amazon
jared cassoutt Feb 05, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I can’t tell you how many different resources I’ve used as a developer. This book is so much better than sifting though StackOverflow, YouTube, or even Apple’s Documentation! It has so much important information for developers including how to build a user interface, how to use MVC architecture, how to read JSON files, how to submit to the AppStore, and so much more.I HIGHLY RECOMMEND!!!!!
Amazon Verified review Amazon
James Nachbar Jul 20, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I enjoyed this book as an introduction to iOS 14 programming and the Swift programming language. The "Beginners" in the title refers to beginners with iOS 14, not to beginners in coding or UI development.Because the beginners getting this book would not be expected to completely understand the Swift ecosystem, it is important to note that while the book covers Swift, it uses the older UIKit rather than the newer (and rapidly evolving) SwiftUI user interface element system. That is not surprising in that it is the fifth edition of this book. There is a brief chapter on SwiftUI, but it is too short to give much more than a taste of SwiftUI.Overall, the book includes lots of screenshots and detailed operations, and is detailed enough to be useful for a first read even without going through the actual steps in Xcode yourself. Each chapter has references to the official Apple documentation, and each chapter even has a video showing the steps outlined in the chapter.Recommended as a good introduction to iOS programming if you already understand the basics of programming and UIs.
Amazon Verified review Amazon
G. Vlahos Dec 31, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I agree strongly with ghostxray's review.I have coded Java for a long time, the breezy pace was greatly appreciated.I would have like to seen some graphical representations of how the layers fit together, and a one-pager on the most helpful Xcode key/shortcut definitions.Overall this is a very nice book for following along and learning iOS 14 using Swift 5 with Xcode 12.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.