Asynchronous Programming with SwiftUI and Combine : Functional Programming to Build UIs on Apple Platforms
- Format
- Bog, hæftet
- Engelsk
- 464 sider
Normalpris
Medlemspris
- Du sparer kr. 50,00
- Fri fragt
-
Leveringstid: 7-9 Hverdage (Sendes fra fjernlager) Forventet levering: 05-03-2026
- Kan pakkes ind og sendes som gave
Beskrivelse
Chapter 1: SwiftUI - A new Beginning
Why a New UI framework? SwiftUI Principles Declarative vs Imperative State Management Composition over Inheritance Everything is a View UIs are a function of their state A quick tour of SwiftUI Creating a new app Anatomy of a SwiftUI app Two-way toolingAdding your first button Print "hello" to the console Explain live mode (need to turn on debug mode so you can see console output while in preview)
A brief overview of statement management Use code editor and preview pane to update the "hello world" app to allow the user to give their name
TextField, Label, (Button) @State to bind the TextField input Bind Label, so it gets updated automatically Run the app in live preview Chapter 2: Getting Started with SwiftUI
¿ Building Blocks
Views View Modifiers Property Wrappers Simple UI Controls ¦ Lists
¦ Navigation
¿ Composing UIs from simple UI elements
Building a list rowMaking it reusableextracting parts into separate structs / views using ViewBuilders (properties / functions) Chapter 3: SwiftUI Foundation
Opaque return types Implicit returns from single-expression functions Function Builders View Builders Multiple Trailing Closures Domain Specific languages Property WrappersThe View Life Cycle Chapter 4: State Management
Managing State with Property Wrappers ¦ @State ¦ @ObservableObject ¦ @ObservedObject
¦ @StateObject
¦ @EnvironmentObject
SwiftUI Patterns and State Management
Pattern: Drill-Down Navigation Pattern: Input form Pattern: Lookup field Pattern: Local state in a single dialog View Lifecycle See Michael Long's article Maybe even build some sort of introspector? Build my own debugging utilities Chapter 5: Building Input Forms
Building simple forms
Build a simple form with a couple of simple input fields. Building advanced forms ¦ 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:
Do the passwords match? Password strong enough? Username long enough? Username still available? How to handle state? Chapter 6: Functional Reactive Programming and Combine
Introduction to Functional Reactive Programming What is it? Why is it so cool / hot? How can it help to make your apps better and more error-free Core Combine Concepts ¦ Publishers ¦ Subscribers
¦ Operators
Combine Visualised Marble Diagrams Show some Combine operators as Marble Diagrams Chapter 7: C
Detaljer
- SprogEngelsk
- Sidetal464
- Udgivelsesdato14-01-2023
- ISBN139781484285732
- Forlag Apress
- MålgruppeFrom age 0
- FormatHæftet
Størrelse og vægt
10 cm
Anmeldelser
Vær den første!