Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work in large app #2

Closed
linlinyao1 opened this issue Aug 24, 2021 · 1 comment
Closed

Doesn't work in large app #2

linlinyao1 opened this issue Aug 24, 2021 · 1 comment
Labels
can't fix This issue cannot be fixed

Comments

@linlinyao1
Copy link

SwiftUIPreview render exceed 30 seconds and throw error when preview a custom view inside a large app (take over 10 mins to compile)

@theoriginalbit
Copy link
Owner

Yep! I thought I'd put a note the README in about that 🤔

Unfortunately there's not much that can be done about it as it is a timeout enforced by Xcode. Though interesting that you're seeing a 30 second timeout, as the default is usually 5 seconds. You could try to break down the app into smaller components (frameworks) that can compiler faster, I've had more success with that, but unfortunately slow compile times will always give you mixed results.

@theoriginalbit theoriginalbit added the can't fix This issue cannot be fixed label Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can't fix This issue cannot be fixed
Projects
None yet
Development

No branches or pull requests

2 participants