type
status
date
slug
summary
tags
category
icon
password
Session: what’s new in swiftUI
一、SwiftUI in more places

1.spatial computing

all-new 3D capabilities like volumes; rich experiences with immersive spaces; new 3D gestures, effects, and layout; and deep integration with RealityKit.
2D windows use WindowGroup to construct windows, Within a window, choose one of the usual SwiftUI containers like on the other platforms.
To display 3D experiences, use volumetric style to the scene
Use the new RealityView to fill a volume with a static model using Model3D
The new ImmersiveSpace scene type lets you define immersive, spatial experiences.
Watch “Meet SwiftUI for spatial computing” to explore more information
2.watchOS 10

- Beautiful full-screen color and imagery.
NavigationSplitView and NavigationStack get beautiful new transitions.
TabView gets a new vertical paging style driven by the Digital Crown.

- New API:
- containerBackground
- topBarLeading and topBarTrailing for toolbar
- DatePicker
- Selection of list
- Smart Stack Widgets
Related Sessions:
Design and build apps for watchOS 10
Update your app for watchOS 10
3.Interactive and animated Widgets
- Interactive: Button and Toggle view can used in Widgets, than an activate code defined using App Intents
- Animating Widgets using SwiftUI transition and animation modifiers.
Related Sessions:
Bring widgets to new places
Bring widgets to life
4.Xcode Previews

- Preview macros
- Add a widget type, and define a timeline for testing
- Previews of Mac apps right inside Xcode
Session: Build programmatic UI with Xcode Previews
5.MapKit
- Put a map in your view.
- Add custom markers, polylines, and the user's location.
- Configure the available controls.
Session: Meet MapKit for SwiftUI
6.Improvements of Swift Charts
- scrolling charts
- donut and pie chart whit the new SectorMark

Session: Explore pie charts and interactivity in Swift Charts
7.In-app purchase view

Session: Meet StoreKit for SwiftUI
二、Simplified data flow

1.Observable macro

no need to mark properties as Published, let your code clear and concise
Session: Discover Observation with SwiftUI
2.SwiftData
How to use SwiftData
- Definite model type by useing Model macro

- Add a model container to app

- Using Query dynamic property

SwiftData for storing document’s data
Sessions:
Meet SwiftData
Build an app with SwiftData
3.Inspector

A new modifier for displaying details about the current selection or context.It's presented as a distinct section in your interface.
On macOS, Inspector presents as a trailing sidebar.
as well as on iPadOS in a regular size class.
In compact size classes, it will present itself as a sheet.
Session: Inspectors in SwiftUI: discover the details
4.Dialogs, new APIS
5.Lists and tables has new features
Tables support customization of their column ordering and visibility.
OutlineGroup、DisclosureTableRow
Big improvements to the performance, particularly when dealing with large data sets:watch “Demystify SwiftUI performance”
三、Extraordinary animations

1.Keyframe Animator API

2.Phase animator

3.Haptic feedback
Using sensoryFeedback modifier

4.Visual effects modifier

4.Metal shader

5.Symbol Effect

Session: Animate symbols in your app
6. Text new APIs
- textScale modifier
- typesettingLanguage modifier
Related Session about animation:
Explore SwiftUI animation
Animate with springs
四、Enhanced interactions

1.Scroll transition effects

Session: Beyond scroll views
2.HDR Image
allowedDynamicRange modifier

3.New Accessibility APIs
accessibilityZoomAction modifier
Watch: Build accessible apps with SwiftUI and UIKit
4.Static member syntax for custom colors

5.Compact Menu and Palette

6.Bordered buttons


7.Hardware keyboard support
Using the onKeyPress modifier to directly react to any keyboard input
Session: The SwiftUI cookbook for focus