Copyright ©2021 by AppCoda Limited

All right reserved. No part of this book may be used or reproduced, stored or transmitted in any manner whatsoever without written permission from the publisher.

Published by AppCoda Limited

All trademarks and registered trademarks appearing in this book are the property of their own respective owners.

Update History

Release Date Description
21 Jan, 2018 Updated all chapters of the book for Swift 4 and Xcode 9.
20 Mar, 2018 Added two new chapters for ARKit
16 Apr, 2018 Added a new chapter for Core ML
25 Sep, 2018 Updated for iOS 12 and Swift 4
31 Jan, 2020 Updated for iOS 13 and Swift 5.1
4 Feb, 2020 Updated for iOS 14 and Swift 5.3

Preface

At the time of this writing, the Swift programming language has been around for more than four years. The new programming language has gained a lot of traction and continues to evolve, and is clearly the future programming language of iOS. If you are planning to learn a programming language this year, Swift should be on the top of your list.

I love to read cookbooks. Most of them are visually appealing, with pretty and delicious photos involved. On top of that, they provide clear and easy-to-follow instructions to prepare a dish. That's what gets me hooked and makes me want to try out the recipes. When I started off writing this book, the very first question that popped into my mind was "Why are most programming books poorly designed?" iOS and its apps are all beautifully crafted - so why do the majority of technical books just look like ordinary textbooks?

I believe that a visually stunning book will make learning programming much more effective and easy. With that in mind, I set out to make one that looks really great and is enjoyable to read. But that isn't to say that I only focus on the visual elements. The tips and solutions covered in this book will help you learn more about iOS 14 programming and empower you to build fully functional apps more quickly.

The book uses a problem-solution approach to discuss the APIs and frameworks of iOS SDK, and each chapter walks you through a feature (or two) with in-depth code samples. You will learn how to build a universal app with adaptive UI, train a machine learning model, interact with virtual objects with ARKit, use Touch ID to authenticate your users, create a widget in notification center and implement view controller animations, just to name a few.

I recommend you to start reading from chapter 1 of the book - but you don't have to follow my suggestion. Each chapter stands on its own, so you can also treat this book as a reference. Simply pick the chapter that interests you and dives into it.

Who Is This Book for?

This book is intended for developers with some experience in the Swift programming language and with an interest in developing iOS apps. It is not a book for beginners. If you have some experience in Swift, you will definitely benefit from this book.

If you are a beginner and want to learn more about Swift, you can check out our beginner book at https://www.appcoda.com/swift.

What version of Xcode do you need?

Most of the chapters have been updated for iOS 14, Xcode 12, and Swift 5.3. Therefore, make sure you use Xcode 12 (or up) to go through the projects in this book.

Where to Download the Source Code?

I will build a demo app with you in each chapter of the book, and in this way walk you through the APIs and frameworks. At the end of the chapters, you will find the download links of the final projects for your reference. You are free to use the source code and incorporate it into your own projects. Both personal and commercial projects are allowed. The only exception is that they may not be reused in any way in tutorials or textbooks, whether in print or digital format. If you want to use it for educational purpose, attribution is required.

Do You Need to Join the Paid Apple Developer Program?

You can go through most of the projects using the built-in simulator. However, some chapters such as Touch ID and QR code scanning require you to run the app on a real device. The good news is that everyone can run and test their own app on a device for free, starting from Xcode 7. Even if you do not join the paid Apple Developer Program, you can deploy and run the app on your iPhone. All you need to do is sign in Xcode with your Apple ID, and you're ready to test your app on a real iOS device.

Swift is still evolving. Will you update the source code when Xcode 12.x releases?

Swift is ready for production. But you're right; Apple still keeps making changes to the language. Whenever a new version of Xcode 12 is released (e.g. Xcode 12.x), I will test all of the source code involved in this book again. You can always download the latest version of source code using the download link included in each chapter. You can also join us on Facebook (https://facebook.com/groups/appcoda) or Twitter (https://twitter.com/appcodamobile) for update announcement.

Got Questions?

If you have any questions about the book or find any error with the source code, post it on our private community (https://facebook.com/groups/appcoda) or reach me at [email protected]

results matching ""

    No results matching ""