Book Image

iOS 13 Programming for Beginners - Fourth Edition

By : Ahmad Sahar, Craig Clayton
Book Image

iOS 13 Programming for Beginners - Fourth Edition

By: Ahmad Sahar, Craig Clayton

Overview of this book

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.
Table of Contents (33 chapters)
1
Section 1: Swift
10
Section 2: Design
15
Section 3: Code
26
Section 4: Features

What this book covers

Chapter 1, Getting Familiar with Xcode, takes you through a tour of Xcode and talks about all the different panes that you will use throughout the book.

Chapter 2, Simple Values and Types, deals with how values and types are implemented by the Swift language.

Chapter 3, Conditionals and Optionals, shows how if and switch statements are implemented, and how to implement variables that may or may not have a value.

Chapter 4, Range Operators and Loops, shows how to work with ranges and the different ways loops are implemented in Swift.

Chapter 5, Collection Types, covers the common collection types, which are arrays, dictionaries, and sets.

Chapter 6, Functions and Closures, covers how you can group instructions together using functions and closures.

Chapter 7, Classes, Structures, and Enumerations, talks about how complex objects containing state and behaviour are represented in Swift.

Chapter 8, Protocols, Extensions, and Error Handling, talks about creating protocols complex data types can adopt, extending the capabilities of existing types, and how to handle errors in your code.

Chapter 9, Setting Up the Basic Structure, deals with creating the Let's Eat app, adding graphical assets, and setting up the initial screen the users will see.

Chapter 10, Building Your App Structure in Storyboard, covers setting up the main screen for the Let's Eat app.

Chapter 11, Finishing Up Your App Structure in Storyboard, covers setting up the remaining screens for the Let's Eat app.

Chapter 12, Modifying and Configuring Cells, is about designing the table and collection view cells in a storyboard.

Chapter 13, Getting Started with MVC and Collection Views, concerns working with collection views and how you can use them to display a grid of items.

Chapter 14, Getting Data into Collection Views, concerns the incorporation of data into collection views.

Chapter 15, Getting Started with Table Views, teaches you to work with table views and takes an in-depth look at dynamic table views.

Chapter 16, Getting Started with MapKit, deals with working with MapKit and adding annotations to a map. You will also create custom annotations for your map.

Chapter 17, Getting Started with JSON Files, involves learning how to use a data manager to read a JSON file and use the data inside your app.

Chapter 18, Displaying Data in a Static Table View, teaches you how to populate a static table view with data passed from one view controller to another using segues.

Chapter 19, Getting Started with Custom UIControls, takes a look at how to create your own custom views.

Chapter 20, Getting Started with the Cameras and Photo Libraries, talks about working with the device's camera and photo library.

Chapter 21, Understanding Core Data, teaches us the basics of using core data.

Chapter 22, Saving and Loading from Core Data, wraps up reviews and photos by saving them using core data.

Chapter 23, Getting Started with Dark Mode, shows how to add Dark Mode to your app.

Chapter 24, Getting Started with Mac Catalyst, deals with modifying your app to work well on the iPad's larger screen, and to make it work on a Mac.

Chapter 25, Getting Started with SwiftUI, is about building a custom UI using Apple's new SwiftUI technology.

Chapter 26, Getting Started with Sign In with Apple, provides instructions on how to implement Sign in with Apple into your app.

Chapter 27, Testing and Submitting Your App to the App Store, concerns how to submit apps for testing as well as submitting apps to the App Store.