1,714 questions
2 votes
1 answer
352 views
SwiftUI preview not working in Xcode 26 when “Automatically Refresh Canvas” is enabled
After updating to Xcode 26, I’m no longer able to load SwiftUI previews in new projects. The preview pane shows the error: Cannot preview in this file. Interestingly, if I disable “Automatically ...
2 votes
0 answers
84 views
QuickLook preview extension console message
My QuickLook preview extension prints this message in the Xcode console whenever it receives a preview request The principal object does not implement the QLPreviewingController protocol or is not a ...
1 vote
0 answers
45 views
Is it possible to "openFilePreserveFocus" without preview mode on VS Code?
I am currently trying to adopt keyboard shortcuts for frequent tasks, where using the mouse has become cumbersome. When writting c and c++, I find myself setting up two tab groups and opening make, .h,...
2 votes
0 answers
110 views
SwiftUI Preview Not Working: Simulator Shutdown Unexpectedly (but app runs fine)
Xcode preview is not working but running the simulator works totally fine... When I try to render a preview of a simple view, the preview canvas fails with a SimulatorShutdownUnexpectedlyError. == ...
0 votes
0 answers
80 views
How do I generate print preview in printdialog box in vb.net
How do I generate a preview in the printdialog box in vb.net. In the frame where the preview would appear, the message "This app doesn't support print preview' appears. (Pictured below) I use ...
1 vote
1 answer
61 views
Android & compose: embed camera preview to UI layout
I want to use only square crop of the image from sensor, therefore I want to have square preview in UI, other UI elements are supposed to be placed outside of preview. UI is built using jetpack ...
0 votes
0 answers
33 views
Mediaplayer in Android Studio causes render problem
I am a beginner with Android Studio. Below code causes renderproblem in preview window. Any idea why this is? Maybe the context? I didn't find any other context variable that didn't give an error. @...
0 votes
0 answers
102 views
Dynamically Preview ZPL Label with Custom Fonts
I am developing a software application that automatically generates and prints labels on a Zebra printer using Python and Flask. The labels are dynamically created using ZPL code. To enhance the user ...
0 votes
1 answer
122 views
SwiftUI preview not working with @ObservedObject store (SessionStore)
I'm developing an iOS application using SwiftUI, and I have a custom view called DashboardView which takes an @ObservedObject of type SessionStore. The problem: the preview does not show at all in ...
1 vote
0 answers
36 views
How can I use calculateWindowSizeClass(activity = this) in a @Preview Composable
I'm trying to preview a Composable in Android Studio using @Preview, and inside that Composable I want to use calculateWindowSizeClass(activity = this) to determine the window size class. Here is a ...
0 votes
1 answer
110 views
Fix for Unicode Rendering Issue in Avalonia Previewer
I encountered an issue with the Avalonia Previewer where Unicode characters (specifically U+1F5D5) were not rendered properly. The Previewer would not display correctly when trying to use this ...
2 votes
1 answer
118 views
Xcode SwiftUI Preview fails due to TensorFlowLiteC. Can it be excluded or fixed?
When trying to preview a SwiftUI View, the preview canvas crashes with a linker error for TensorFlowLiteC. This library does not need to be loaded for Preview. Is there a way to work around this like ...
0 votes
0 answers
73 views
How to align preview and captured image in 1:1 using CamerAwesome?
I'm using the CamerAwesome plugin in Flutter to capture images. My goal is to have a 1:1 aspect ratio for both the preview and the final captured image. While I have set up the preview to display in 1:...
1 vote
0 answers
196 views
Rider Xaml Preview doesn't render styles
The XAML preview in Rider doesn't render any of my styles. Everything else works at runtime. Preview: Runtime: I have a rather strange way to organize my styles: There are a bunch of resource ...
4 votes
1 answer
3k views
How to fix crashing Previews in Xcode 16?
I was not able to run any previews in my framework, and I received the following message: 'XCPreviewAgent crashed due to fatalError...'. I managed to fix the issue myself, and since it wasn't easy, I ...