Swift Cookbook
eBook - ePub

Swift Cookbook

Over 60 proven recipes for developing better iOS applications with Swift 5.3, 2nd Edition

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

Swift Cookbook

Over 60 proven recipes for developing better iOS applications with Swift 5.3, 2nd Edition

About this book

Discover recipes for building feature-rich, reliable iOS native apps and explore the latest features in Swift 5.3 with the help of proven industry standard recipes, modern design techniques, and popular strategies

Key Features

  • Understand how closures work and make use of generics with protocols to write flexible code
  • Discover the fundamentals of Swift and build apps with frameworks such as Foundation, Networking, and UIKit
  • Get to grips with the new features of Swift 5.3, including SwiftUI, CoreML and the Vision Framework

Book Description

Swift is an exciting, multi-platform, general-purpose programming language, and with this book, you'll explore the features of its latest version, Swift 5.3.

The book begins with an introduction to the basic building blocks of Swift 5.3, its syntax, and the functionalities of Swift constructs. You'll then discover how Swift Playgrounds provide an ideal platform to write, execute, and debug your Swift code. As you advance through the chapters, the book will show you how to bundle variables into tuples or sets, order your data with an array, store key-value pairs with dictionaries, and use property observers. You'll also get to grips with the decision-making and control structures in Swift, examine advanced features such as generics and operators, and explore functionalities outside of the standard library. Once you've learned how to build iOS applications using UIKit, you'll find out how to use Swift for server-side programming, run Swift on Linux, and investigate Vapor. Finally, you'll discover some of the newest features of Swift 5.3 using SwiftUI and Combine to build adaptive and reactive applications, and find out how to use Swift to build and integrate machine learning models along with Apple's Vision Framework.

By the end of this Swift book, you'll have discovered solutions to boost your productivity while developing code using Swift 5.3.

What you will learn

  • Explore basic to advanced concepts in Swift 5.3 programming
  • Understand conditional statements, loops, and how to handle errors in Swift
  • Define flexible classes and structs using generics
  • Use advanced operators and create custom ones
  • Build iOS apps using the powerful features of UIKit or the new SwiftUI framework
  • Import your own custom functionality into Swift Playgrounds
  • Run Swift on Linux and investigate server-side programming with the server-side framework Vapor
  • Use Swift to implement machine learning models using CoreML and Vision

Who this book is for

This book is for experienced iOS developers looking to learn about the diverse features offered by Swift 5.3, along with tips and tricks to efficiently code and build applications. Knowledge of general programming concepts will assist in understanding key concepts.

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 Swift Cookbook by Keith Moon,Chris Barker 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.

Information

Table of contents

  1. Title Page
  2. Copyright and Credits
  3. Dedication
  4. Contributors
  5. Preface
  6. Swift Building Blocks
  7. Mastering the Building Blocks
  8. Data Wrangling with Swift Control Flow
  9. Generics, Operators, and Nested Types
  10. Beyond the Standard Library
  11. Building iOS Apps with Swift
  12. Swift Playgrounds
  13. Server-Side Swift
  14. Performance and Responsiveness in Swift
  15. SwiftUI and Combine Framework
  16. Using CoreML and Vision in Swift
  17. About Packt
  18. Other Books You May Enjoy