You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: