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

SwiftUI Preview Not Working #791

Open
noob-programmer1 opened this issue Dec 9, 2024 · 1 comment
Open

SwiftUI Preview Not Working #791

noob-programmer1 opened this issue Dec 9, 2024 · 1 comment

Comments

@noob-programmer1
Copy link

I’m having trouble with SwiftUI previews crashing when using Kotlin/Native code that references Moko resources. Specifically, I’m on Moko resources v0.24.4, and I’m calling LitePackRes.strings.pack_title.format(...) inside a Kotlin data class. This works fine at runtime, but the SwiftUI preview crashes (XCPreviewAgent aborts) whenever this code is run in the preview environment. Has anyone experienced issues with Moko resource initialization in previews, or found a workaround to mock or safely skip resource-based formatting calls during SwiftUI previews?

@MAX-POLKOVNIK
Copy link

Check this issue - #747

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants