Get started with SwiftUI and accelerate your iOS app development with this guide to leveraging the declarative approach, with key images printed in color
Key Features- Learn how to structure and maintain clean app architecture
- Integrate SwiftUI with relevant frameworks to create professional and responsive apps
- 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
SwiftUI has transformed app development across Apple Platforms, offering developers the power to build seamless user interfaces by just defining the UI design through intuitive Swift code. This book explores SwiftUI’s revolutionary declarative programming approach to assist you in designing UI for Apple devices, ranging from iPhones to Macs, by declaring what the app should look like and what it should do, leaving the heavy lifting to the operating system.
With a hands-on approach, the book immerses you in the fundamentals of SwiftUI and goes on to cover SwiftUI parts that are omitted by most introductory guides. Starting with creating views and modifiers, you’ll progress to more intricate and responsive user interfaces and advanced techniques, gradually working toward building complex apps. Further, this book focuses on the new features in asynchronous programming and architecture patterns to design efficient, modern, and well-structured apps. Finally, you’ll explore the integration of UIkit and SwiftUI and how to run tests for a SwiftUI application.
By the end of the book, you’ll have gained the confidence to harness the full potential of SwiftUI to build professional-grade applications.
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
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.
Table of Contents- Exploring the Environment - Xcode, Playgrounds, and SwiftUI
- Adding Basic UI Elements and Designing Layouts
- Adding Interactivity to a SwiftUI View
- Iterating Views, Scroll Views, FocusState, Lists, and Scroll View Reader
- The Art of Displaying Grids
- Tab Bars and Modal View Presentation
- All About Navigation
- Creating Custom Graphics
- An Introduction to Animations in SwiftUI
- App Architecture and SwiftUI Part I: the Practical Tools
- App Architecture and SwiftUI Part II - the Theory
- Persistence with Core Data
- Modern Structured Concurrency
- An Introduction to SwiftData
- Consuming REST Services in SwiftUI
- Exploring the Apple Vision Pro