Replies: 1 comment
-
This is purely for iOS 13 compatibility, which this library offers. Of course, nowadays building and running the demo on iOS 13 would be rare and AFAIK impossible in the latest macOS and Xcode versions, so I think it might be time to get rid of it.
Feel free to do so. While you're at it, please also bump the deployment target version to iOS 15, as that's the minimum supported in macOS 15 and Xcode 16 which is what we use for CI. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checking the demo app, I see a Storyboard, AppDelegate, SceneDelegate, AppView, RootView, AppState...
Yikes!
When you create a fresh SwiftUI app project (and name it "Demo"), it has only two files: DemoApp.swift, and ContentView.swift. No Storyboard, no AppDelegate, no SceneDelegate.
I almost gave up on this here...
Is any of that necessary - or can you just copy over AppState.swift and modify DemoApp.swift to inject an AppState object into the ContentView?
And then copy the body of RootView to ContentView.
Yup, this works. You can even use the Preview, but of course must inject an AppState:
Hmm, should I make a PR for my modern Demo project?
Beta Was this translation helpful? Give feedback.
All reactions