What’s new in SwiftUI
🎥 Video: https://developer.apple.com/videos/play/wwdc2021/10018/
AsyncImage
with placeholders
.refreshable
for lists (and grids?)
- Async loading via
.task
- swipe actions
.swipeAction
- macOS: lists alternate row colors
- fetch request and sectioned fetch request
- custom previews for drag and drop
- import / export providers
- SF Symbols: auto chooses the right modifier: fill, outline, etc.
- background materials
- accessibility support
- great localization support
- dynamic type for iOS
- text selection for macOS and iOS
- keyboard accessory views
- focus mode
- button styles on iOS
- menu “buttons”: primary action, or show menu