Giter Site home page Giter Site logo

swiftui-cookbook-2nd-edition's Introduction

SwiftUI Cookbook - Second Edition

SwiftUI Cookbook - Second Edition

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

A guide to solving the most common problems and learning best practices while building SwiftUI apps

What is this book about?

SwiftUI provides an innovative and simple way to build beautiful user interfaces (UIs) for all Apple platforms, right from iOS and macOS through to watchOS and tvOS, using the Swift programming language. In this recipe-based cookbook, you’ll cover the foundations of SwiftUI as well as the new SwiftUI 3 features introduced in iOS 15 and explore a range of essential techniques and concepts that will help you through the development process.

This book covers the following exciting features: Explore various layout presentations in SwiftUI such as HStack, VStack, LazyHStack, and LazyVGrid Create widgets to quickly display relevant content at glance Get up to speed with drawings in SwiftUI using built-in shapes, custom paths, and polygons Discover modern animation and transition techniques in SwiftUI Add user authentication using Firebase and Sign in with Apple Manage concurrency with Combine and async/await in SwiftUI Solve the most common SwiftUI problems, such as integrating a MapKit map, unit testing, snapshot testing, and previewing layouts

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, Chapter01.

The code will look like the following:

struct ContentView: View {
@State var password = "1234"
@State var someText = "initial text"
var body: some View {
...

Following is what you need for this book: This book is for mobile developers who want to learn SwiftUI as well as experienced iOS developers transitioning from UIkit to SwiftUI. The book assumes knowledge of the Swift programming language. Knowledge of object-oriented design and data structures will be useful but not necessary. You'll also find this book to be a helpful resource if you're looking for reference material regarding the implementation of various features in SwiftUI.

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

Software and Hardware List

Chapter Software required OS required
01-15 Xcode 13 Mac OS X

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

Errata

  • Page 317 (Pragraph 3, line 8): @ObserveObject should be @ObservedObject
  • Page 304 (Pragraph 7, line 26): even it is should be even if it is
  • Page 80 (line 5): ' Text((result)).searchCompletion(result) should be Text((result)).searchCompletion(result)
  • Page 46 (line 10): (GroupedListSytle()) should be (GroupedListStyle())
  • Page 68 (line 1): (training: EditButton()) should be (trailing: EditButton())

Related products

Get to Know the Authors

Giordano Scalzo is a developer with 20 years of programming experience, since the days of ZX Spectrum. He has worked in Swift, Objective-C, C/C++, Java, .Net, Ruby, Python, and in a ton of other languages that he has forgotten the names of. After years of backend development, over the past 10 years, Giordano has developed extensively for iOS, releasing more than 20 apps—apps that he wrote for clients, enterprise applications, or on his own. He is currently a Tech Lead Consultant in London, where he leads mobile digital transformations through his company, Effective Code Ltd.

Edgar Nzokwe is a software engineer with 6+ years of experience building web and mobile applications. His areas of expertise include SwiftUI, UIKit, and Kotlin, Python, and a few Javascript frameworks. Edgar is dedicated to advancing the knowledge base of SwiftUI because he believes it empowers developers to design and build dazzling cross-platform apps with minimal development time.

Other books by the authors

Swift by Example

SwiftUI Cookbook

Hands-On Design Patterns with Swift

Swift: Developing iOS Applications

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781803234458

swiftui-cookbook-2nd-edition's People

Contributors

dedgar1 avatar gscalzo avatar josepha-packt avatar packt-itservice avatar packtutkarshr 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.