iOS 15 Programming for Beginners
eBook - ePub

iOS 15 Programming for Beginners

Kickstart your mobile app development journey by building iOS apps with Swift 5.5 and Xcode 13, 6th Edition

  1. 784 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

iOS 15 Programming for Beginners

Kickstart your mobile app development journey by building iOS apps with Swift 5.5 and Xcode 13, 6th Edition

About this book

Key Features

  • Explore the latest features of Xcode 13 and the Swift 5.5 programming language in this updated sixth edition
  • Start your iOS programming career and have fun building your own iOS apps
  • Discover the new features of iOS 15 such as Mac Catalyst, SwiftUI, Swift Concurrency, and SharePlay

Book Description

With almost 2 million apps on the App Store, iOS mobile apps continue to be incredibly popular. Anyone can reach millions of customers around the world by publishing their apps on the App Store. iOS 15 Programming for Beginners is a comprehensive introduction for those who are new to iOS. It covers the entire process of learning the Swift language, writing your own app, and publishing it on the App Store.Complete with hands-on tutorials, projects, and self-assessment questions, this easy-to-follow guide will help you get well-versed with the Swift language to build your apps and introduce exciting new technologies that you can incorporate into your apps. You'll learn how to publish iOS apps and work with Mac Catalyst, SharePlay, SwiftUI, Swift concurrency, and much more.By the end of this iOS development book, you'll have the knowledge and skills to write and publish interesting apps, and more importantly, to use the online resources available to enhance your app development journey.

What you will learn

  • Get to grips with the fundamentals of Xcode 13 and Swift 5.5, 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 Swift Concurrency and SharePlay
  • Convert an existing iPad app into a Mac app with Mac Catalyst
  • Design, deploy, and test your iOS applications with design patterns and best practices

Who this book is for

This book is for anyone who has programming experience but is new to Swift and iOS app development. Basics knowledge of programming, including loops, boolean, and so on, is necessary.

]]>

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weโ€™ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere โ€” even offline. Perfect for commutes or when youโ€™re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access iOS 15 Programming for Beginners by Ahmad Sahar,Craig Clayton in PDF and/or ePUB format, as well as other popular books in Computer Science & Operating Systems. We have over one million books available in our catalogue for you to explore.

Part 1: Swift

Welcome to Part 1 of this book. In this part, you will begin by exploring Xcode, Apple's programming environment, which is also known as the Integrated Development Environment (IDE). After that, you will start learning the foundations of Swift 5, the programming language used in iOS apps, and see how it is used to accomplish common programming tasks.
This part comprises the following chapters:
  • Chapter 1, Getting Familiar with Xcode
  • Chapter 2, Simple Values and Types
  • Chapter 3, Conditionals and Optionals
  • Chapter 4, Range Operators and Loops
  • Chapter 5, Collection Types
  • Chapter 6, Functions and Closures
  • Chapter 7, Classes, Structures, and Enumerations
  • Chapter 8, Protocols, Extensions, and Error Handling
By the end of this part, you'll understand the process of creating an app and running it on a simulator or device, and you'll have a working knowledge of how to use the Swift programming language, in order to accomplish common programming tasks. This will prepare you for the next part and will also enable you to create your own Swift programs. Let's get started!

Chapter 1: Getting Familiar with Xcode

Welcome to iOS 15 Programming for Beginners. I hope you will find this a useful introduction to creating and publishing iOS 15 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 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 an iOS 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 do the exercises for this chapter, you will need the following:
  • An Apple Mac computer running macOS 11 Big Sur or macOS 12 Monterey
  • An Apple ID (if you don't have one, you will create one in this chapter)
  • Optionally, an iOS device running iOS 15
The Xcode project for this chapter is in the Chapter01 folder of the code bundle for this book, which can be downloaded here:
https://github.com/PacktPublishing/iOS-15-Programming-for-Beginners-Sixth-Edition
Check out the following video to see the code in action:
https://bit.ly/3wqcqpG
You'll start by downloading Xcode, Apple's integrated development environment (IDE) for developing iOS apps from the App Store, in the next section.
Tip
The size of the download is very large (11.7 GB at the time of writing) so it may take a while to download. Ensure that you have enough disk space prior to downloading.

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. To do this, 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 text box. If you don't have one, 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....

Table of contents

  1. iOS 15 Programming for Beginners
  2. Sixth Edition
  3. Preface
  4. Part 1: Swift
  5. Chapter 1: Getting Familiar with Xcode
  6. Chapter 2: Simple Values and Types
  7. Chapter 3: Conditionals and Optionals
  8. Chapter 4: Range Operators and Loops
  9. Chapter 5: Collection Types
  10. Chapter 6: Functions and Closures
  11. Chapter 7: Classes, Structures, and Enumerations
  12. Chapter 8: Protocols, Extensions, and Error Handling
  13. Part 2: Design
  14. Chapter 9: Setting Up the User Interface
  15. Chapter 10: Building Your User Interface
  16. Chapter 11: Finishing Up Your User Interface
  17. Chapter 12: Modifying and Configuring Cells
  18. Part 3: Code
  19. Chapter 13: Getting Started with MVC and Collection Views
  20. Chapter 14: Getting Data into Collection Views
  21. Chapter 15: Getting Started with Table Views
  22. Chapter 16: Getting Started with MapKit
  23. Chapter 17: Getting Started with JSON Files
  24. Chapter 18: Displaying Data in a Static Table View
  25. Chapter 19: Getting Started with Custom UIControls
  26. Chapter 20: Getting Started with Cameras and Photo Libraries
  27. Chapter 21: Understanding Core Data
  28. Part 4: Features
  29. Chapter 22: Getting Started with Mac Catalyst
  30. Chapter 23: Getting Started with SwiftUI
  31. Chapter 24: Getting Started with Swift Concurrency
  32. Chapter 25: Getting Started with SharePlay
  33. Chapter 26: Testing and Submitting Your App to the App Store
  34. Other Books You May Enjoy