Book Image

An iOS Developer's Guide to SwiftUI

By : Michele Fadda
Book Image

An iOS Developer's Guide to SwiftUI

By: Michele Fadda

Overview of this book

– 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.
Table of Contents (25 chapters)
Free Chapter
1
Part 1: Simple Views
5
Part 2: Scrollable Views
8
Part 3: SwiftUI Navigation
11
Part 4: Graphics and Animation
14
Part 5: App Architecture
17
Part 6: Beyond Basics

Summary

In this chapter, I have tried to gently nudge you toward the most practical tools used to allow you to properly partition complex apps in a SwiftUI context, without using any of the terrible “architectural frameworks” that are unfortunately so common in the industry. Bear in mind that architecture needs to be adopted and understood by humans and, as such, is not about making optimal engineering choices; it needs to be balanced with the culture of the development team.

This treatment is not by any means complete, as we concentrated on the most practical approaches, avoiding “pre-cooked” approaches that might be useful in other contexts, such as Android and .NET, but are, in this author’s view, less natural, less elegant, and less powerful in the context of Apple application programming using SwiftUI.

This is the end of our practical take on architecture. In the next chapter, we will take a more theoretical view: we will start by talking...