SwiftUI Cookbook - Giordano Scalzo, Edgar Nzokwe

SwiftUI Cookbook

A guide to solving the most common problems and learning best practices while building SwiftUI apps, 2nd Edition
Buch | Softcover
616 Seiten
2021 | 2nd Revised edition
Packt Publishing Limited (Verlag)
978-1-80323-445-8 (ISBN)
49,85 inkl. MwSt
SwiftUI is an innovative new framework for building UI for all Apple platforms. This recipe-based guide covers the new features of SwiftUI 3 introduced in iOS 15 and helps you migrate from UIkit with a simple learning curve through practical solutions. You'll learn how SwiftUI combines with Apple dev tools to build truly cross-platform Apple apps.
Unleash the power of declarative programming in SwiftUI by building cross-platform Apple apps for iOS 15, macOS, and watchOS using Swift 5.5, Xcode 13, and SwiftUI 3

Key Features

Apply the declarative programming paradigm to build cross-platform UIs for Apple devices
Learn to integrate UIkit, Core Data, Firebase, and Sign in with Apple with SwiftUI
Adopt the new SwiftUI 3.0 features to build visually appealing UIs speedily

Book DescriptionSwiftUI provides an innovative and simple way to build beautiful user interfaces (UIs) for all Apple platforms, 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.

The cookbook begins by explaining how to use basic SwiftUI components. Once you’ve learned the core concepts of UI development, such as Views, Controls, Lists, and ScrollViews, using practical implementations in Swift, you'll advance to adding useful features to SwiftUI using drawings, built-in shapes, animations, and transitions. You’ll understand how to integrate SwiftUI with exciting new components in the Apple development ecosystem, such as Combine for managing events and Core Data for managing app data. Finally, you’ll write iOS, macOS, and watchOS apps by sharing the same SwiftUI codebase.

By the end of this SwiftUI book, you'll have discovered a range of simple, direct solutions to common problems encountered when building SwiftUI apps.

What you will learn

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

Who this book is forThis 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.

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.

Table of Contents

Using the Basic SwiftUI Views and Controls
Going Beyond the Single Component with Lists and Scroll Views
Exploring Advanced Components
Viewing while Building with SwiftUI Preview
Creating New Components and Grouping Views with Container Views
Presenting Extra Information to the User
Drawing with SwiftUI
Animating with SwiftUI
Driving SwiftUI with Data
Driving SwiftUI with Combine
SwiftUI Concurrency with async await
Handling Authentication and Firebase with SwiftUI
Handling Core Data in SwiftUI
Creating Cross-Platform apps with SwiftUI
SwiftUI Tips and Tricks

Erscheinungsdatum
Verlagsort Birmingham
Sprache englisch
Maße 75 x 93 mm
Themenwelt Informatik Programmiersprachen / -werkzeuge Mac / Cocoa Programmierung
Informatik Weitere Themen Smartphones / Tablets
ISBN-10 1-80323-445-8 / 1803234458
ISBN-13 978-1-80323-445-8 / 9781803234458
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich
Apps programmieren für macOS, iOS, watchOS und tvOS

von Thomas Sillmann

Buch (2023)
Carl Hanser (Verlag)
59,99
Das umfassende Handbuch. Apps entwickeln für iOS, macOS und tvOS. …

von Michael Kofler

Buch | Hardcover (2019)
Rheinwerk (Verlag)
49,90
The Big Nerd Ranch Guide

von Mikey Ward; Matthew Mathias; John Gallagher

Buch | Softcover (2020)
Big Nerd Ranch Guides (Verlag)
48,75