ISBN-13: 9781484285718 / Angielski / Miękka / 2023 / 325 str.
ISBN-13: 9781484285718 / Angielski / Miękka / 2023 / 325 str.
Chapter 1: SwiftUI - A new Beginning
see console output while in preview)
world” app to allow the user to give their name
Chapter 2: Getting Started with SwiftUI
○ Building Blocks
■ Lists
■ Navigation
○ Composing UIs from simple UI elements
Chapter 3: SwiftUI Foundation
Chapter 4: State Management
■ @ObservableObject ■ @ObservedObject
■ @StateObject
■ @EnvironmentObject
■ Look-up fields
■ Drill-down
■ In-place editing (e.g. date picker) ■ Sections
■ Forms and Data Binding / State Management
■ Building a sign-up form
■ Username
■ Password / Repetition ■ Validation
■ Come up with a non-Combine version for the following rules:
Chapter 6: Functional Reactive Programming and Combine
■ Subscribers
■ Operators
Chapter 7: Combine and SwiftUI
○ Driving UI state
○ Input validation using Combine
state of the sign-up button
Chapter 8: Testing Combine Code
Chapter 9: Advanced SwiftUI UIs
○ LazyVGrid / LazyHGrid
○ Outlines
Chapter 10: Advanced SwiftUI - Building Reusable UI ComponentsChapter 11: Building a Complete App with SwiftUI and Combine
Chapter 12: Displaying a list of books
Chapter 13: Implementing a search screen
○ Implementing a re-usable search bar
○ Connecting to the OpenLibrary API
Chapter 14: Drill-Down Navigation and State Management
○ Implementing a book details / edit screen
○ Drill-down navigation pattern
Chapter 15: Persisting Data in Firestore
■ Real-time Sync
Chapter 16: App Store Hero Animation
Peter Friese is a software engineer, author, speaker, and musician with a passion for helping developers build great apps. He works as a Developer Relations Engineer / Developer Advocate on the Firebase team at Google, where he focuses on helping developers build better apps using Firebase on iOS and other Apple platforms.
Peter shares his knowledge and experience through writing on his personal blog, peterfriese.dev, publishing videos on YouTube, speaking at conferences and meet-ups, crafting sample apps and contributing to the Firebase SDKs.
Prior to working at Google, he has held roles as a software engineer, software architect, and principal consultant at companies such as Lufthansa Systems, Gentleware, itemis, and Zühlke.
Develop UI-heavy applications more easily, faster, and error-free. Based on several enhancements to the Swift language, SwiftUI takes a declarative approach to building UIs. Instead of imperatively coding the UI, this book will show you how to describe how you want your UI to look.
SwiftUI treats the UI as a function of its state, thereby making managing your app’s state a lot easier. Change the underlying data model to redraw all parts of the UI that are connected to that particular slice of data. Likewise, easily update the underlying data model from the UI elements your data model is connected to. Combine is Apple’s Functional Reactive Programming framework. It complements SwiftUI and other frameworks, such as the networking APIs, in a natural way. Using Combine, you can subscribe to events and describe data processing in a way that is free of side effects. This allows for an easier implementation of event-driven applications.
Using SwiftUI and Combine build more error-free apps in a shorter amount of time, targeting all of Apple’s platforms (iOS, iPadOS, watchOS, macOS, tvOS) with little to no overhead.
By the end of the book you will have a solid understanding for architecting and implementing UI-heavy apps in a declarative and functional reactive way using SwiftUI, Combine, and async/await.
You will:
- Build simple and gradually more complex UIs in SwiftUI
- Understand SwiftUI’s state management system
- Work with Combine and Swift’s new async/await APIs to access the network and access other asynchronous APIs
- Architect and structure modern applications on Apple platforms using SwiftUI, Combine, and async/await1997-2024 DolnySlask.com Agencja Internetowa