https://github.com/liang2kl/swiftui-wwdc22
Exploration of the new APIs for SwiftUI from WWDC22.
https://github.com/liang2kl/swiftui-wwdc22
ios macos swift swiftui wwdc22
Last synced: about 2 months ago
JSON representation
Exploration of the new APIs for SwiftUI from WWDC22.
- Host: GitHub
- URL: https://github.com/liang2kl/swiftui-wwdc22
- Owner: liang2kl
- License: mit
- Created: 2022-06-15T18:17:39.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-16T07:38:00.000Z (about 4 years ago)
- Last Synced: 2025-01-28T00:32:08.584Z (over 1 year ago)
- Topics: ios, macos, swift, swiftui, wwdc22
- Language: Swift
- Homepage:
- Size: 110 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WWDC 2022's New Stuff in SwiftUI
Here we will explore (hopefully) most new APIs for SwiftUI in macOS 13 and iOS 16, either introduced in the sessions or not.
## Current Plans
As introduced in [What's new in SwiftUI](https://developer.apple.com/videos/play/wwdc2022/10052/), the major updates to SwiftUI
this year include:
- [x] Custom layouts (multi-platform)
- [ ] `Grid` (multi-platform)
- [ ] New navigation APIs (multi-platform)
- [x] Swift Charts framework (multi-platform)
- [ ] New feature of `TextField` (multi-platform)
- [ ] `Table` (on iPad)
- [ ] Desktop-class toolbar (on iPad)
- [ ] Resizable sheets (on iOS)
- [ ] Multiple windows (on macOS)
- [ ] Status bar window (on macOS)
- [ ] New design of `Form` (on macOS)
This project aims to cover most of the new APIs of the features mentioned above with a set of tiny demos.
## Demos
| Topic | Demos |
| :--: | :--: |
| Layout | [WaterfallLayout](Sources/WWDC22/Layout/WaterfallLayout.swift)
[EqualWidthHStack](Sources/WWDC22/Layout/EqualWidthHStack.swift) |
| Charts | [InteractiveWeatherChart](Sources/WWDC22/Charts/InteractiveWeatherChart.swift) |
| Navigation | |

## Usage
Xcode 14.0 beta (14A5228q) is required to build the project.
To see how the UI looks, you can either run the app and select the demos
listed on the sidebar, or see each individually with Xcode Previews.
You can also go directly to the source files to check the implementation details.
## Contribution
Contributions are welcome to make new demos of the uncovered topics (listed as not-finished above) or alternative use cases of the already-covered topics.
If you are to make a new demo, make sure to:
- Put the new source file into a (existing or newly created) group,
- Create a preview in the source file
- Document it in detail,
- Make an entry in the split view using the static preview, and
- Update the README.