iOS 13 Programming for Beginners
eBook - ePub

iOS 13 Programming for Beginners

Get started with building iOS apps with Swift 5 and Xcode 11, 4th Edition

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

iOS 13 Programming for Beginners

Get started with building iOS apps with Swift 5 and Xcode 11, 4th Edition

Book details
Book preview
Table of contents
Citations

About This Book

A step-by-step guide to learning iOS app development and exploring the latest Apple development tools

Key Features

  • Explore the latest features of Xcode 11 and the Swift 5 programming language in this updated fourth edition
  • Kick-start your iOS programming career and have fun building your own iOS apps
  • Discover the new features of iOS 13 such as Dark Mode, iPad apps for Mac, SwiftUI, and more

Book Description

iOS 13 comes with features ranging from Dark Mode and Catalyst through to SwiftUI and Sign In with Apple. If you're a beginner and are looking to experiment and work with these features to create your own apps, then this updated fourth edition gets you off to a strong start. The book offers a comprehensive introduction for programmers who are new to iOS, covering the entire process of learning the Swift language, writing your own apps, and publishing them on the App Store. This edition is updated and revised to cover the new iOS 13 features along with Xcode 11 and Swift 5.

The book starts with an introduction to the Swift programming language, and 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 latest version of Xcode, and also implement the code for views, view controllers, data managers, and other aspects of mobile apps. The book will then help you apply the latest iOS 13 features to existing apps, along with introducing you to SwiftUI, a new way to design UIs. Finally, the book will take you through setting up testers for your app, and what you need to do to publish your app on the App Store.

By the end of this book, you'll be well versed with how to write and publish apps, and will be able to apply the skills you've gained to enhance your apps.

What you will learn

  • Get to grips with the fundamentals of Xcode 11 and Swift 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 the app
  • Implement the latest iOS features such as Dark Mode and Sign In with Apple
  • Understand how to convert an existing iPad app into a Mac app
  • Design, deploy, and test your iOS applications with industry patterns and practices

Who this book is for

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

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
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.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
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 access iOS 13 Programming for Beginners by Ahmad Sahar, Craig Clayton in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming. We have over one million books available in our catalogue for you to explore.

Information

Year
2020
ISBN
9781838820633
Edition
4

Section 1: Swift

Welcome to part one 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). Next, 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 chapter, and will also enable you to create your own Swift programs. Let's get started!

Getting Familiar with Xcode

Welcome to iOS 13 Programming for Beginners. I hope you will find this a useful introduction to writing and publishing iOS 13 apps on the App Store.
This book is divided into four parts. Each is designed to accomplish a specific set of goals.
In Section 1, Swift, you start by learning Swift 5.1, which is the latest version of the Swift language. Swift is the programming language used to write apps for all Apple hardware. You'll see how common programming tasks are accomplished in Swift. At the end of this part, you should have a working knowledge of the Swift language.
In Section 2, Design, you'll create the design of an iOS 13 application from scratch using storyboards. This is accomplished using Xcode's Interface Builder, and coding is kept to a minimum. At the end of this part, you should have a clear idea of the app's user interface and flow.
Section 3, Code, will focus on coding. You will learn many important iOS app development concepts, and as you go along, you'll learn strategies and techniques that you can use in your own apps.
Section 4, Features, covers the exciting new technologies first introduced by Apple at WWDC 2019, such as Dark Mode, Catalyst, SwiftUI, and Sign In with Apple. You'll also learn how to create resources for App Store submission, submit your app to the App Store, and beta test your app.
The app you'll write is a restaurant reservation app named Let's Eat. This app was originally written by Craig Clayton, who wrote the previous edition of this book. I have updated this app for the latest version of Xcode and iOS.
In this chapter, we'll cover the following topics:
  • Downloading and installing Xcode from the App Store
  • Understanding the Xcode user interface
  • Running the app in the Simulator
  • Using an iOS 13 device for development

Technical requirements

To do the exercises for this chapter, you will need the following:
  • An Apple Mac computer running macOS 10.15 Catalina
  • An Apple ID (if you don't have one, you will create one in this chapter)
  • Optionally, an iOS device running iOS 13
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-13-Programming-for-Beginners.
You'll start by downloading Xcode, Apple's integrated development environment for developing iOS apps from the App Store.
Check out the following video to see the code in action:
http://bit.ly/38B50D5

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. Perform the following steps:
  1. Open the App Store on your Mac (it's in 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 r...

Table of contents

  1. Title Page
  2. Copyright and Credits
  3. About Packt
  4. Contributors
  5. Preface
  6. Section 1: Swift
  7. Getting Familiar with Xcode
  8. Simple Values and Types
  9. Conditionals and Optionals
  10. Range Operators and Loops
  11. Collection Types
  12. Functions and Closures
  13. Classes, Structures, and Enumerations
  14. Protocols, Extensions, and Error Handling
  15. Section 2: Design
  16. Setting Up the Basic Structure
  17. Building Your App Structure in Storyboard
  18. Finishing Up Your App Structure in Storyboard
  19. Modifying and Configuring Cells
  20. Section 3: Code
  21. Getting Started with MVC and Collection Views
  22. Getting Data into Collection Views
  23. Getting Started with Table Views
  24. Getting Started with MapKit
  25. Getting Started with JSON Files
  26. Displaying Data in a Static Table View
  27. Getting Started with Custom UIControls
  28. Getting Started with Cameras and Photo Libraries
  29. Understanding Core Data
  30. Saving and Loading from Core Data
  31. Section 4: Features
  32. Getting Started with Dark Mode
  33. Getting Started with Mac Catalyst
  34. Getting Started with SwiftUI
  35. Getting Started with Sign In with Apple
  36. Testing and Submitting Your App to the App Store
  37. Other Books You May Enjoy