29,99 €
SwiftUI 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.
Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:
Seitenzahl: 430
Veröffentlichungsjahr: 2021
A guide to solving the most common problems and learning best practices while building SwiftUI apps
Giordano Scalzo
Edgar Nzokwe
BIRMINGHAM—MUMBAI
Copyright © 2021 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Group Product Manager: Rohit Rajkumar
Publishing Product Manager: Ashitosh Gupta
Senior Editor: Hayden Edwards
Content Development Editor: Rashi Dubey
Technical Editor: Joseph Aloocaran
Copy Editor: Safis Editing
Project Coordinator: Rashika Ba
Proofreader: Safis Editing
Indexer: Manju Arasan
Production Designer: Vijay Kamble
First published: October 2020
Second edition: October 2021
Production reference: 1291021
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-80323-445-8
www.packt.com
We wrote this book standing on the shoulders of giants.
Thanks to Dave Verwer, Majid Jabrayilov, John Sundell, Gui Rambo, Gio Lodi, Antoine van der Lee, Donny Wals, Vincent Pradelles, Mark Moeykens, Paul Hudson, and all the fantastic Swift community for the support and knowledge. – Giordano Scalzo
To my childhood mentor, Mr. Tatuh N. Atem Formin, who introduced me to the amazing world of computing.– Edgar Nzokwe
Giordano Scalzo started his journey back in the days of ZX Spectrum. He has worked with Swift, Objective-C, C/C++, Java, .NET, Ruby, Python, and a ton of other languages that he has forgotten the names of. He is currently a tech lead consultant in London, where he leads mobile digital transformations through his company, Effective Code Ltd.
To my bright future, Mattia and Luca, for giving me lots of smiles and hugs when I needed them.
To my better half, Valentina, who lovingly supports me in everything I do: without you, none of this would have been possible.
Edgar Nzokwe is a software engineer with 6+ years of experience building web and mobile applications. His areas of expertise include SwiftUI, UIKit, 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.
I want to thank my wife, Mabelle, for encouraging me along this journey.
Thanks to my kids, Neil and Zoe, for making me smile when the going got tough.
Finally, I want to give special thanks to my editors, Hayden Edwards and Rashi Dubey, as well as the rest of the Packt team who helped put this book together.
Chris Barker is an iOS developer and principal software manager for Jaguar Land Rover, where he heads up the mobile app team.
Chris started his career developing .NET applications for online retailer dabs.com (now BT Shop) before he made his move into mobile app development with digital agency Openshadow (now MyStudioFactory Paris). There, he worked on mobile apps for clients such as Louis Vuitton and L'Oréal Paris.
He has since worked for online fashion retailer N Brown (JD Williams, SimplyBe, Jacamo) as an iOS tech lead.
Chris often attends and speaks at local iOS developer meetups and conferences such as NSManchester, Malaga Mobile, and CodeMobile.
Danny Bolella is an iOS developer lead at a major trading company. With over a decade of experience under his belt, he's worked on everything from full-stack web to mobile apps in a variety of industries, including financial, energy, and medical devices. He also enjoys writing articles and was the technical reviewer for SwiftUI Cookbook, First Edition.
Danny thanks his amazing wife and children, who give him the motivation and drive to always be better.
Marc Aupont is a first-generation American born to Haitian immigrant parents. After 12 years of working in fintech, he transitioned into mobile software development when Swift was announced in 2015. His passion for technology led him to move from Orlando, FL to NYC in 2017, where he started multiple meetups teaching programming. In addition to his work as a senior iOS engineer at Nike, Marc has been a champion for inclusion and diversity within developer communities for many years. Marc has worked to create opportunities for technical growth in the Swift community by organizing meetups for beginners, sharing his own experience and expertise through mentorship programs, working collaboratively with HBCU students on app development, and more. His hobbies include working on side projects involving electronics and hardware, serving as a music director at his local church, and going on weekend road trips to random destinations with his family.
