type
status
date
slug
summary
tags
category
icon
password
 

一、SwiftUI in more places

notion image

1.spatial computing

notion image
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

notion image
  1. Beautiful full-screen color and imagery.
    1. NavigationSplitView and NavigationStack get beautiful new transitions. TabView gets a new vertical paging style driven by the Digital Crown.
      notion image
  1. New API:
    1. containerBackground
    2. topBarLeading and topBarTrailing for toolbar
    3. DatePicker
    4. Selection of list
  1. Smart Stack Widgets
    1.  
Related Sessions:
Design and build apps for watchOS 10
Update your app for watchOS 10
 

3.Interactive and animated Widgets

  1. Interactive: Button and Toggle view can used in Widgets, than an activate code defined using App Intents
  1. Animating Widgets using SwiftUI transition and animation modifiers.
Related Sessions:
Bring widgets to new places
Bring widgets to life
 

4.Xcode Previews

notion image
  1. Preview macros
  1. Add a widget type, and define a timeline for testing
  1. Previews of Mac apps right inside Xcode
Session: Build programmatic UI with Xcode Previews
 

5.MapKit

  1. Put a map in your view.
  1. Add custom markers, polylines, and the user's location.
  1. Configure the available controls.
Session: Meet MapKit for SwiftUI

6.Improvements of Swift Charts

  1. scrolling charts
  1. donut and pie chart whit the new SectorMark
    1. notion image
Session: Explore pie charts and interactivity in Swift Charts

7.In-app purchase view

notion image
Session: Meet StoreKit for SwiftUI

二、Simplified data flow

notion image

1.Observable macro

notion image
no need to mark properties as Published, let your code clear and concise
Session: Discover Observation with SwiftUI

2.SwiftData

How to use SwiftData
  1. Definite model type by useing Model macro
    1. notion image
  1. Add a model container to app
    1. notion image
  1. Using Query dynamic property
    1. notion image
 
SwiftData for storing document’s data
Sessions:
Meet SwiftData
Build an app with SwiftData

3.Inspector

notion image
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

notion image

1.Keyframe Animator API

notion image

2.Phase animator

notion image

3.Haptic feedback

Using sensoryFeedback modifier
notion image

4.Visual effects modifier

notion image

4.Metal shader

notion image

5.Symbol Effect

notion image
Session: Animate symbols in your app

6. Text new APIs

  1. textScale modifier
  1. typesettingLanguage modifier
 
Related Session about animation:
Explore SwiftUI animation
Animate with springs

四、Enhanced interactions

notion image

1.Scroll transition effects

notion image
Session: Beyond scroll views
 

2.HDR Image

allowedDynamicRange modifier
notion image

3.New Accessibility APIs

accessibilityZoomAction modifier
Watch: Build accessible apps with SwiftUI and UIKit

4.Static member syntax for custom colors

notion image

5.Compact Menu and Palette

notion image

6.Bordered buttons

notion image
notion image

7.Hardware keyboard support

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