Giter Club home page Giter Club logo

swift-cookbook-second-edition's Introduction

Swift Cookbook - Second Edition

Swift Cookbook - Second Edition

This is the code repository for Swift Cookbook - Second Edition, published by Packt.

Over 60 proven recipes for developing better iOS applications with Swift 5.3

What is this book about?

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 learn about 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 use Swift to build and integrate machine learning models along with Apple’s Vision Framework. By the end of the book, you'll have discovered direct solutions that will help you become productive while developing code using Swift 5.3.

This book covers the following exciting features:

  • 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

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

if (test expression)
{
  Statement upon condition is true
}

Following is what you need for this book: If you are looking to learn about the diverse features offered by Swift 5.3, along with tips and tricks to efficiently code and build applications, then this Swift book is for you. Knowledge of general programming concepts will assist in understanding key concepts.

With the following software and hardware list you can run all code files present in the book (Chapter 1-11).

Software and Hardware List

Chapter Software required OS required
1 to 11 macOS 10.15.4+ (Catalina)
1 to 11 Xcode 12+ macOS
8 Ubuntu 20.04 LTS

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Code in Action

Click on the following link to see the Code in Action:

YouTube

Related products

Get to Know the Authors

Keith Moon is an award-winning mobile developer, author and speaker based in London. He has worked with some of the biggest companies in the world to create engaging and personal mobile experiences. Keith has been developing in Swift since its release, working on projects both fully Swift, and mixed Swift and Objective-C. Keith has been invited to speak about Swift development in conferences from Moscow to Minsk and London.

Chris Barker is a Senior iOS developer and Tech Lead for fashion retailer N Brown (JD Williams, SimplyBe, Jacamo), where he heads up the iOS team, building apps for all their major brands. Having now worked in the IT industry for over 24 years, Chris started his career developing .NET applications for online retailer dabs.com (now BT Shop). In 2014, he made his move into mobile app development with digital agency Openshadow based in MediaCityUK. Here, he worked on mobile apps for clients such as Louis Vuitton and L'Oréal Paris. Chris often attends and speaks at his local iOS developer meetup, NSManchester and has attended Malaga Mobile in Spain, where he spoke about his passion for accessibility in mobile apps. Over the past 2 years, Chris has been a regular speaker at CodeMobile Developer Conference and plans to return in the future.

Other books by the authors

swift-cookbook-second-edition's People

Contributors

keefmoon avatar deepesh-packt avatar packt-itservice avatar hedwards1997 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.