Replies: 1 comment 4 replies
-
|
We’d like to keep a runnable demo inside the package—ideally just for macOS. The reason is that it gives new developers the quickest way to try out the engine: open the package, pick the demo target, and hit Run. That way they don’t need to set up an Xcode project first, and it also doubles as a simple smoke test that the engine builds and runs correctly. Have you run into any issues with other targets when going this route? The idea would be to keep only the macOS demo inside the package, and move iOS/visionOS examples into a separate Examples/ folder or a template repo. I'm open to suggestions if there is a better approach to onboarding new developers. Also, my intent is to keep the demo project as minimal as possible. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Current Setup
Right now, the UntoldEngine repository is structured as a Swift package. Inside the
Sourcesfolder we currently include:This works fine for macOS, but it has serious limitations for other Apple platforms (iOS, visionOS, tvOS, etc.). Running demo apps as Swift package executables on those platforms is either very difficult or not even possible.
Because of this, testing and maintaining cross-platform demos is unnecessarily complex. A better structure is needed.
Proposal: Move Demo Apps Outside
SourcesInstead of keeping demos inside the package, we move them out and let them reference UntoldEngine as a Swift Package dependency. Each demo would then be a standalone Xcode app project, making it much easier to configure and run across different Apple platforms.
Options
Option 1: Keep Demos in the Same Repository
There are two possible layouts here:
Pros
Cons
Option 2: Create a Separate Repository for Demos
Pros
Cons
Recommendation
👉 What do you think?
Beta Was this translation helpful? Give feedback.
All reactions