Mastering iOS 14 Programming
eBook - ePub

Mastering iOS 14 Programming

Build professional-grade iOS 14 applications with Swift 5.3 and Xcode 12.4, 4th Edition

Mario Eguiluz Alebicto, Chris Barker, Donny Wals

Compartir libro
  1. 558 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Mastering iOS 14 Programming

Build professional-grade iOS 14 applications with Swift 5.3 and Xcode 12.4, 4th Edition

Mario Eguiluz Alebicto, Chris Barker, Donny Wals

Detalles del libro
Vista previa del libro
Índice
Citas

Información del libro

Become a professional iOS developer with the most in-depth and advanced guide to Swift 5.3, Xcode 12.4, ARKit 4, Core ML, and iOS 14's new features

Key Features

  • Explore the world of iOS app development through practical examples
  • Understand core iOS programming concepts such as Core Data, networking, and the Combine framework
  • Extend your iOS apps by adding augmented reality and machine learning capabilities, widgets, App Clips, Dark Mode, and animations

Book Description

Mastering iOS 14 development isn't a straightforward task, but this book can help you do just that. With the help of Swift 5.3, you'll not only learn how to program for iOS 14 but also be able to write efficient, readable, and maintainable Swift code that reflects industry best practices.

This updated fourth edition of the iOS 14 book will help you to build apps and get to grips with real-world app development flow. You'll find detailed background information and practical examples that will help you get hands-on with using iOS 14's new features. The book also contains examples that highlight the language changes in Swift 5.3. As you advance through the chapters, you'll see how to apply Dark Mode to your app, understand lists and tables, and use animations effectively. You'll then create your code using generics, protocols, and extensions and focus on using Core Data, before progressing to perform network calls and update your storage and UI with the help of sample projects. Toward the end, you'll make your apps smarter using machine learning, streamline the flow of your code with the Combine framework, and amaze users by using Vision framework and ARKit 4.0 features.

By the end of this iOS development book, you'll be able to build apps that harness advanced techniques and make the best use of iOS 14's features.

What you will learn

  • Build a professional iOS application using Xcode 12.4 and Swift 5.3
  • Create impressive new widgets for your apps with iOS 14
  • Extend the audience of your app by creating an App Clip
  • Improve the flow of your code with the Combine framework
  • Enhance your app by using Core Location
  • Integrate Core Data to persist information in your app
  • Train and use machine learning models with Core ML
  • Create engaging augmented reality experiences with ARKit 4 and the Vision framework

Who this book is for

This book is for developers with some experience in iOS programming who want to enhance their application development skills by unlocking the full potential of the latest iOS version with Swift.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Mastering iOS 14 Programming un PDF/ePUB en línea?
Sí, puedes acceder a Mastering iOS 14 Programming de Mario Eguiluz Alebicto, Chris Barker, Donny Wals en formato PDF o ePUB, así como a otros libros populares de Informatica y Programmazione di dispositivi mobili. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2021
ISBN
9781838822606

Chapter 1: What's New in iOS 14?

During WWDC 2020, Apple introduced the new features and improvements included in iOS 14. Using the latest features in your apps can make a huge difference for users in terms of engagement, positive reviews, and overall user experience. It can also lead to other benefits, such as being featured by Apple in the App Store, and having an advantage over competitors' apps in the same category.
Apple made Swift 5.2 available for developers on March 24, 2020. Later in the year, Apple released Swift 5.3. These versions focus on quality and performance improvements, new language features, and increased support for Windows platforms and Linux distributions.
There was another big announcement during WWDC 2020: Apple Silicon. Apple introduced its own processors to the world. Developers can start building apps and ship them by the end of 2020, starting a transition that will last two years. This transition will establish a common architecture across all Apple products. With a common architecture, it will be easier to create apps for the entire Apple ecosystem.
In this chapter, you will learn the basics of two of the most significant new features on iOS 14: App Clips and widgets. We will also cover the latest additions to augmented reality, machine learning, and user privacy. At the end of the chapter, you will learn about the new additions to the Swift language with some code examples.
In this chapter, we're going to cover the following main topics of iOS 14, Swift 5.2, and Swift 5.3:
  • Introducing App Clips
  • Introducing WidgetKit
  • Improvements in augmented reality
  • Improvements in machine learning
  • Improvements in user privacy
  • Introducing Swift 5.2
  • Introducing Swift 5.3

Technical requirements

The code for this chapter can be found here: https://github.com/PacktPublishing/Mastering-iOS-14-Programming-4th-Edition/tree/master/Chapter%201%20-%20Whats%20New.
If you want to try out Swift 5.2 features as you read through the chapter, you need to install Xcode version 11.4 or later: https://itunes.apple.com/app/xcode/id497799835.

Introducing App Clips

App Clips allow users to discover your app in a fast and lightweight manner. With App Clips, a user can quickly use a feature of your app even without having the app installed on their phone. Let's see an example of what an App Clip looks like:
Figure 1.1 − App Clip UI
Figure 1.1 − App Clip UI
App Clips should be lightweight, brief, and finish a user task in seconds. Let's see some use cases of App Clips:
  • An App Clip to order coffee when you pass by the coffee shop door and tap on an NFC tag.
  • An App Clip to rent an electric bike parked in the street, just by scanning a QR code on it. Also, you can use Sign in with Apple and Apple Pay to avoid forms and interface complexities, allowing you to rent the bike in seconds.
  • An App Clip to pre-order from the menu in a restaurant and save time while you wait to be seated.
  • An App Clip that triggers when you tap around NFC spots in an art gallery or a museum and displays augmented reality scenes on your iPhone.
As you can see, the possibilities with App Clips are endless. Now that we have covered what an App Clip is, we are going to explain the user's journey using an App Clip (from the invocation to the end). We will cover the invocation methods (how to trigger an App Clip to appear). Finally, we will explore the recommended guidelines when building an App Clip.

App Clip user journey

Let's now explore the whole process and steps in more detail, starting from when the user discovers your App Clip to when the user finishes the App Clip journey.
Let's imagine that we have an app to rent electric bikes on the street. There are several stages involved in the App Clip process:
Figure 1.2 − App Clip process and steps
Figure 1.2 − App Clip process and steps
The steps of an AppClip are as follows:
  1. Invocation method: The App Clip invocation method is how the user can trigger and open an App Clip. For our example with the electric bike rental, a user scans a QR code placed in the bike with their device camera, and the App Clip opens on the home screen. The invocation method, in this case, is the QR code. We will explore more of them later in the chapter.
  2. User Journey: After the invocation, the App Clip presents some options for the user to choose from (for example, 1-hour rental for $2 and 24-hou...

Índice