Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
An iOS Developer's Guide to SwiftUI
An iOS Developer's Guide to SwiftUI

An iOS Developer's Guide to SwiftUI: Design and build beautiful apps quickly and easily with minimum code

eBook
€8.99 €26.99
Paperback
€33.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Colour book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

An iOS Developer's Guide to SwiftUI

Part 1: Simple Views

In this part, you will be introduced to SwiftUI, the multiplatform UI framework from Apple that allows developers to build user interfaces for all Apple devices. These chapters have been designed for iOS developers in such a way that they guide you through the main concepts of SwiftUI and its practical implementation, offering a concrete base to develop powerful and visually beautiful applications.

You will start to explore the fundamentals of SwiftUI and its declarative syntax to build an intuitive and efficient UI. We’ll cover key concepts, such as views, modifiers, and state management, demonstrating how these components work together to build dynamic layouts.

You will learn to manage data well within SwiftUI, ensuring slick, dynamic user interfaces are produced through bindings, observable objects, and environment values.

This part will teach you how to work with animation and the gesture features of SwiftUI by applying them with a layer of polish and interactivity to your apps. You should reach the end of this section prepared with the knowledge and skills needed to begin using SwiftUI for your iOS development projects, making applications that are not only functional but also visually engaging.

This part contains the following chapters:

  • Chapter 1, Exploring the Environment – Xcode, Playgrounds, and SwiftUI
  • Chapter 2, Adding Basic UI Elements and Designing Layouts
  • Chapter 3, Adding Interactivity to a SwiftUI View
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Learn how to structure and maintain clean app architecture
  • Under the guidance of industry expert Michele Fadda, build well-structured, maintainable, and high-performance applications
  • Understand the declarative functional approach and focus on asynchronous programming within the context of SwiftUI
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

– SwiftUI transforms Apple Platform app development with intuitive Swift code for seamless UI design. – Explore SwiftUI's declarative programming: define what the app should look like and do, while the OS handles the heavy lifting. – Hands-on approach covers SwiftUI fundamentals and often-omitted parts in introductory guides. – Progress from creating views and modifiers to intricate, responsive UIs and advanced techniques for complex apps. – Focus on new features in asynchronous programming and architecture patterns for efficient, modern app design. – Learn UIKit and SwiftUI integration, plus how to run tests for SwiftUI applications. – Gain confidence to harness SwiftUI's full potential for building professional-grade apps across Apple devices.

Who is this book for?

– This book is for iOS developers interested in mastering SwiftUI, software developers with extensive iOS development experience using UIkit transitioning to SwiftUI, as well as mobile consultants and engineers who want to gain an in-depth understanding of the framework. – Newcomers equipped with knowledge of Swift, UIkit, XCode, and asynchronous programming will find this book invaluable for launching a career in mobile software development with iOS.

What you will learn

  • Get to grips with UI coding across Apple platforms using SwiftUI
  • Build modern apps, delving into complex architecture and asynchronous programming
  • Explore animations, graphics, and user gestures to build responsive UIs
  • Respond to asynchronous events and store and share data the modern way
  • Add advanced features by integrating SwiftUI and UIKit to enhance your apps
  • Gain proficiency in testing and debugging SwiftUI applications
Estimated delivery fee Deliver to Malta

Premium delivery 7 - 10 business days

€32.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 03, 2024
Length: 446 pages
Edition : 1st
Language : English
ISBN-13 : 9781801813624
Vendor :
Apple
Languages :
Concepts :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Colour book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Malta

Premium delivery 7 - 10 business days

€32.95
(Includes tracking information)

Product Details

Publication date : May 03, 2024
Length: 446 pages
Edition : 1st
Language : English
ISBN-13 : 9781801813624
Vendor :
Apple
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 97.97
An iOS Developer's Guide to SwiftUI
€33.99
SwiftUI Cookbook
€33.99
Swift Cookbook
€29.99
Total 97.97 Stars icon
Banner background image

Table of Contents

24 Chapters
Part 1: Simple Views Chevron down icon Chevron up icon
Chapter 1: Exploring the Environment – Xcode, Playgrounds, and SwiftUI Chevron down icon Chevron up icon
Chapter 2: Adding Basic UI Elements and Designing Layouts Chevron down icon Chevron up icon
Chapter 3: Adding Interactivity to a SwiftUI View Chevron down icon Chevron up icon
Part 2: Scrollable Views Chevron down icon Chevron up icon
Chapter 4: Iterating Views, Scroll Views, FocusState, Lists, and Scroll View Reader Chevron down icon Chevron up icon
Chapter 5: The Art of Displaying Grids Chevron down icon Chevron up icon
Part 3: SwiftUI Navigation Chevron down icon Chevron up icon
Chapter 6: Tab Bars and Modal View Presentation Chevron down icon Chevron up icon
Chapter 7: All About Navigation Chevron down icon Chevron up icon
Part 4: Graphics and Animation Chevron down icon Chevron up icon
Chapter 8: Creating Custom Graphics Chevron down icon Chevron up icon
Chapter 9: An Introduction to Animations in SwiftUI Chevron down icon Chevron up icon
Part 5: App Architecture Chevron down icon Chevron up icon
Chapter 10: App Architecture and SwiftUI Part I: Practical Tools Chevron down icon Chevron up icon
Chapter 11: App Architecture and SwiftUI Part II – the Theory Chevron down icon Chevron up icon
Part 6: Beyond Basics Chevron down icon Chevron up icon
Chapter 12: Persistence with Core Data Chevron down icon Chevron up icon
Chapter 13: Modern Structured Concurrency Chevron down icon Chevron up icon
Chapter 14: An Introduction to SwiftData Chevron down icon Chevron up icon
Chapter 15: Consuming REST Services in SwiftUI Chevron down icon Chevron up icon
Chapter 16: Exploring the Apple Vision Pro Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.9
(11 Ratings)
5 star 90.9%
4 star 9.1%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Dildeep Jul 18, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I recently read "iOS Developer's Guide to SwiftUI" and it has quickly become an invaluable resource in my iOS development journey. Whether you're a seasoned developer looking to transition from UIKit to SwiftUI or a newcomer eager to dive into the world of iOS development, this book is a fantastic guide that covers all the essentials and more.The book excels in breaking down the complex topics into manageable, easy-to-understand segments. Starting from the basics, it meticulously guides you through creating views and modifiers before progressing to more advanced and intricate user interface designs. The hands-on approach makes the learning process engaging and effective.One of the standout features of this book is its focus on the declarative programming approach, which is the backbone of SwiftUI. The explanations are clear, and the examples are practical, helping you to grasp how to structure and maintain clean app architecture. The book doesn't just stop at the basics; it dives deep into asynchronous programming and modern architecture patterns, ensuring you can build efficient and well-structured apps.The full-color images and diagrams are incredibly helpful, making it easier to follow along and visualize the concepts being discussed. Moreover, the integration of SwiftUI with other relevant frameworks is covered in detail, allowing you to create professional and responsive applications.The inclusion of chapters on animations, graphics, and user gestures is a huge plus, enabling you to build highly interactive and visually appealing UIs. The book also offers comprehensive insights into persistence with Core Data, structured concurrency, and consuming REST services in SwiftUI, which are crucial for developing modern apps.Additionally, the book's section on integrating SwiftUI with UIKit is invaluable for those transitioning from older projects or looking to enhance their current apps with SwiftUI features. The final chapters on testing and debugging SwiftUI applications provide essential techniques to ensure your apps are robust and error-free.Overall, "iOS Developer's Guide to SwiftUI" is a must-have for any iOS developer's library. The purchase of the print or Kindle version also includes a free PDF eBook, which is a great bonus for reading on the go. This book has greatly boosted my confidence in using SwiftUI and has equipped me with the skills to build professional-grade applications. Highly recommended!
Amazon Verified review Amazon
Andy F. Jun 11, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Full disclosure: I have only reviewed chapter 1 of this book as I am not very technical. I was basically curious to see what my genius friend has been busy writing.What Michele has achieved is very impressive. This is obviously a very technical book, but there's a lightness of touch here that almost feels as though we're just having a chat down the pub.I haven't had to rely on such technical manuals for years. But as the text here is so very readable, I'm sure this would be a super useful book for anyone looking to acquire these skills. The text is also populated with several relevant and helpful screenshots (which it must be said, is not always the case in books like this).Good work Mr. Fadda, I'm impressed.
Amazon Verified review Amazon
Danny Bolella Jun 04, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
As someone who loves working with SwiftUI, Michele has written a fantastic book that I’ll be referring to for quite some time. In particular, I really appreciated the chapters around Navigation and App Architecture (2 chapters on this, alone!). Michele presents well-rounded overview with some great guidance and helpful insights as to how and when to effectively pick and choose approaches. A great read!
Amazon Verified review Amazon
Goppinath Thurairajah May 30, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Despite its title, the book covers much more than just SwiftUI.The book is aimed at iOS developers looking to expand their knowledge by incorporating SwiftUI into their skill set. It is suitable for readers of all levels, from beginners to advanced.The book not only focuses on SwiftUI but also covers a wide range of topics, including:- Introduction to Xcode and app submission- Advanced usage of the Swift language- In-depth exploration of SwiftUI with animation- Modern concurrency and asynchronous programming- App architecture, clean architecture, SOLID principles, and GoF design patterns, along with system modelling using UML diagrams- Data persistence using CoreData and SwiftData- Modern networking and Swift serialization- Working in teams and group thinking- Exploring the Apple Vision ProThe book is logically divided into 16 chapters, with the latter 9 chapters delving into advanced topics. Throughout the book, the author provides external resources for further reading and references, as well as notes highlighting possible pitfalls. This reflects the author’s 30 years of experience in industrial software engineering in the book.In conclusion, this is a comprehensive resource that is beneficial for iOS developers at all levels of expertise. It’s a valuable addition to any iOS engineer’s collection and can also serve as a quick reference guide for non-linear reading.
Amazon Verified review Amazon
Nicholas Jun 18, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is for people who already have a grasp on swift and are looking to dig a little deeper into swiftUI specifically. He covers a little on xcode and even some bugs that we encounter which is helpful to be warned about because its confusing to encounter these things but he does not waste time talking about the most basic concepts related to swift in general which is a plus for me because Ive been developing for a while now and dont need these covered in every book I go through.The book does a good job using scaffolding as a teaching process. The author will introduce some basic concepts like how to construct views, then the next chapter you will learn how to let the user interact with those views. Overall its a really good flow and easy to follow.The book goes pretty in depth on navigation which is helpful because swiftUI handles navigation pretty differently from traditional swift.There are pictures in the book so you can compare the app he is walking you through building with the app on your screen to make sure you are following along correctly. If you get totally lost the source code is linked in the book so you can compare it to your project.The book also covers some newer concepts like SwiftData which I havent worked with before so that was cool and theres a chapter on the apple vision pro which I was pretty impressed with. Its basic stuff but the vision pro is hardly a year old at this point so its nice to even have some basic material to get us started.Overall I found this well organized and very accessible for developers who are familiar with swift but want to get their hands on swiftUI.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela