Questions tagged [preview]
User Interface action to display a preliminary or scaled down version of the actual item.
1,693
questions
0
votes
0
answers
20
views
Getting Amibiguous use of 'init(_:traits:body:)' error with #Preview in Xcode 15.0.1
I created a preview using the new #Preview syntax for a View and I'm getting the error Amibiguous use of 'init(_:traits:body:)':
#Preview {
let viewModel = RecordingDetailViewModel(recording: nil, ...
-1
votes
1
answer
67
views
How to preview .doc file or Excel file in SAPUI5 Fiori application without downloading
Using PDF Viewer I am able to preview .PDF files in Fiori SAPUI5 application and other files are downloaded on click but, users wants .doc files or Excel files also to be previewed in browser.
Preview ...
0
votes
0
answers
37
views
Make checkboxes enabled and change markdown when changing checkbox
I have this basic code that renders inputted md as html, and by default all checkboxes are disabled and even if I make them enabled with developer menu in browser they are still can`t be checked. How ...
0
votes
0
answers
11
views
How to show custom preview for different urls according to dynamic query token
I have a Next.js 13 app using client-side rendering, hosted on S3 and CloudFront, with a backend on AWS Lambda. I want to show custom preview for different links when shared on social media.
Links ...
-1
votes
2
answers
49
views
Xcode preview error - '@objc' can only be applied to an extension of a class
I am using Xcode 14.2 with both a SwiftUI file as well as an Objective-C file. It uses NotificationCenter to change my text and labels that I have within my SwiftUI. Part of my text (fourLinesText) is ...
0
votes
0
answers
19
views
How to set preview_url in Facebook Cloud API Whatsapp template message
When sending a text message in Whatsapp using the Facebook cloud API, I can set preview_url in oder to enable link previews in the message as follows:
{
"messaging_product": "...
0
votes
1
answer
29
views
How to enable a sticky file-Preview in vscode?
I'm currently working with multiple markdown files simultaneously and using the preview feature. However, every time I switch my focus to another markdown file, the preview also changes and displays ...
0
votes
0
answers
46
views
Unable to preview Composables with Koin injection [Android]
I am trying to preview a Composable that uses koin dependencies. Per the documentation here you should be able to start a mini KoinApplication in the Preview function to pass the dependency to the ...
0
votes
1
answer
124
views
How to display mulitple Dropzone.js preview records in one row using a preview template
I am using dropzone.js to display images for my application. The app uses Laravel, Vue, and Bootstrap. There can be as many as 40+ images for one record in my DB so displaying one preview per row isn'...
1
vote
1
answer
119
views
SwiftUI Preview Macro: how to provide private state property value for preview use
From Xcode 15, it involves preview macro.
I created an simple app with MapKit to learn it.
struct LocationDetailsView: View {
@Binding var mapSelection: MKMapItem?
@Binding var show: Bool
@...
0
votes
1
answer
117
views
How to create #Preview with async code in swiftUI?
I would like to be able to create a #Preview that uses some values that are computed with async/await.
Below is a sample code with the first 2 previews working fine. The last one calling an async func ...
1
vote
1
answer
157
views
Showing multiple previews in Xcode 15 and up using Preview Macro
How can I show two or more different variants in Xcode using the new #Preview macro?
Without the macro, this was possible:
struct TutorialView_Previews: PreviewProvider {
static var previews: some ...
4
votes
1
answer
421
views
Xcode 15 UIKit Preview FailedToLaunchAppError: Failed to launch error
I'm trying to preview UIKit view using #Preview macro in Xcode 15, but got this error
== PREVIEW UPDATE ERROR:
FailedToLaunchAppError: Failed to launch
==================================
...
0
votes
1
answer
34
views
Next Js 13 App Directory Not Showing Preview Images From Input To Uplaod
I am trying to do a simple upload image layout on my app with a preview of the image. I followed a lot of tactics I found online either from Docs or YT Videos but none seem to work out. I get a weird ...
0
votes
0
answers
36
views
Android Studio. Layout preview. Long initialization
I need help to solve the problem with Android Studio. Preview of layout does not initialize.
Gradle version: 8.0
Android plugin: 8.0.2
I have already tried using various solutions but none helped.
I ...
0
votes
1
answer
87
views
how to capture the same size as shown in android camera preview
The size and proportions of the captured image are different from what you see in the preview screen.
I want to capture the same size as shown in the preview.
The camera preview screen is located ...
0
votes
0
answers
24
views
Showing preview of shared URL on social media for a React based application
I am working on a react-based project which has a facebook feed kind of interface. My frontend is based on React and backend is on serverless, aws-sdk framework.
When clicks on a post and share it on ...
0
votes
0
answers
121
views
Layout preview rendering issue in Android studio
In android studio layout preview not displayed. Multiple times i delete the idea file and clear, rebuild,invalidate cache, restart All options i have tried but issue got remain.these are the android ...
0
votes
1
answer
78
views
In SwiftUI can I set a locale in Preview for currency etc. but keep generic format for text fields eg Locale.current.currencyCode ?? "GBP"
Xcode version 15.0 set to iOS 15.0
As the title says my App uses Text(someAmount, format: Locale.current.currencyCode ?? "GBP") to display an amount of currency the symbol of which should ...
0
votes
0
answers
63
views
Nested view crashes when trying to update EnvironmentObject value
I want to hide and unhide the tab bar in the root view of my app using other views. I have used environment object for it, however when i try to update the value of environment object the preview ...
1
vote
1
answer
537
views
Xcode 15: SwiftUI preview layout: size that fits does not work
Xcode 14 worked normally but in Xcode 15 it stopped working.
I tried using Xcode 15 preview, .sizeThatFits and .fixed
https://i.stack.imgur.com/2DhEl.gif
#Preview {
AddRegionView()
....
1
vote
1
answer
75
views
Swift intrinsicContentSize uses max frame to scale LPLinkPreview
I am creating a link preview and in order to set a custom frame to the preview I have to override the intrinsic content size and place my own sizing. I pass frame.width and frame.height which is ...
0
votes
2
answers
347
views
How do I preview a View that's using @Bindable?
I have a SwiftUI view that is being passed a binding from a parent view. I would like to preview the subview, but can't. I tried .constant and a @Model object directly. Both ways crash the preview.
...
0
votes
1
answer
33
views
In VS Code, why do I have two action buttons for opening a Markdown Preview that have different results?
I'm trying to use a custom CSS to improve my markdown writing and reading. But some configurations is weird on my VS Code.
I edited my settings to add my css:
"markdown.styles": ["./meu-...
0
votes
0
answers
51
views
In camerax, video capture, preview view and image analyzer usecases not working together
While using Camerax, when I combine video capture, preview view and image analyzer usecases, preview becomes blank for android 12, but working on 11 and 13.
cameraProvider.unbindAll()
...
2
votes
1
answer
229
views
How to use let constant in Xcode 15 #Preview
How can I use a let value in the new #Preview macro in Xcode 15?
Here is my code:
#Preview {
let categories = Bundle.main.decode([Category].self, from: "Items.json")
CategoryView(...
0
votes
0
answers
26
views
Is preview feature for video server-side only or can be made also on front?
I'm developing a player using HLS/Dash. I want something similar to youtube preview feature.
It is technically possible to take a screenshot from avideo element using canvas, but it requires to ...
1
vote
1
answer
109
views
How can I automatically open Tex/PDF/Markdown previews side-by-side with the markup when opening the source file in VS Code?
On my Visual Studio Code, I edit .tex files + PDF preview (Latex Workshop extension) and .md files + Markdown preview. I do that at the same time, and I have a split view where the two source files ...
0
votes
0
answers
51
views
Live Server not works correctly (VSC) on Mac OS Ventura after something happened that I don't know
I noticed that since some weeks VSC and Live Server don't work and I don't know. On internet my domain works correctly, I tried also to create another User with Admin permissions and this time worked ...
0
votes
0
answers
35
views
unable to get the formdata values of file upload using react-hook-form
I wanted to upload an image to an API endpoint using ASP WEB API as a Backend and React as a frontend using React Hook Form Library, but when I try to submit the form the file field value is missing ...
0
votes
0
answers
42
views
Cannot preview in file, Active scheme does not build this file
I have been trying to preview a file after downloading StarScream through the Swift Package. Sin ce then, i believe that I correctly imported the package, but I can no longer see a preview or the ...
-1
votes
1
answer
108
views
Preview (embed or on new tab) Word and Excel document on Chrome, Edge, .etc
Word: http://erp.lixco.com:6065/LixcoResource/resources/quanlytailieu/test/b4646089-ce50-4bd7-8013-9fb02ad0fae5.docx
Excel: http://erp.lixco.com:6065/LixcoResource/resources/quanlytailieu/test/...
0
votes
0
answers
18
views
Vuforia model target preview
Is there a way to change the material that the model target preview uses? The project I am working on utilizes UPR which is not compatible with the standard material on the preview.
I tried turning ...
0
votes
0
answers
23
views
Colors in preview
I am experiencing an issue with the preview of my Wix website. I am creating a page for an association and have used the specific typography and colors from their brand image. In the Wix editor, ...
0
votes
0
answers
9
views
In Preview/Test, Core Web Vitals data populates the GA4 debug timeline too frequently and makes it hard to see the other events
I'm trying to reduce the number of times I see Core Web Vitals data (CLS, FID, LCP)on the G4 debug timeline. The Core Web Vitals data fires and is correct but I don't need to see it so many times. The ...
1
vote
0
answers
79
views
How to display document image preview in iOS app?
I need to display document image preview. I have smth like messenger app and I want the user can see UIImage preview before opening document. Documents can be in doc, docx, docm, pptx, ppt, rtf ...
0
votes
0
answers
133
views
Camera preview not working in full screen in flutter
I have added a camera/video function to my app, but the preview is not matching the screen size. I tried few solutions, but in most of the cases it's not changing anything or the ratio is off.
Below ...
0
votes
1
answer
534
views
Access to XAML Live Preview in .Net MAUI
I learned that a XAML Live Preview is available for .Net MAUI. But I feel like I don't have access to it.
I've tried to follow a tutorial which explain that I have to go to Debug > Windows > ...
0
votes
0
answers
143
views
Convert PDF file into a preview Image inside react page
I'm trying once i upload a PDF to my site to display a lil preview of it instead of a PDF logo or some thing like that.
Would appreciate if someone implemented some thing like that would help me with ...
2
votes
1
answer
331
views
How to create a preview with an opened keyboard in Android Compose?
I am working with Android Jetpack Compose and would like to create a preview in which the software keyboard is opened. I want to see how my UI layout behaves when the keyboard is present. ...
0
votes
0
answers
8
views
I have set up my HTML to send image uploaded by users to my email as url, how do I add preview to the URL so I won’t have to click the url everytime
I have not written any code yet. I need guidance on what to use to add the preview function to the url in my email so it can show me previews of the images
I tried using FileReader but that only works ...
1
vote
1
answer
26
views
View not recognizing instance of @EnvironmentObject
I'm working on the audio player portion of my app and inside the player view, I have a simple if statement check. It looks to make sure there is an instance of the audioManager.player and if there is ...
1
vote
1
answer
189
views
SwiftUI FocusState not working in SwiftUI. keyboard not toggle
Here is my code. It not working and the keyboard inn't toggle as expected.
import SwiftUI
struct FocusStateBC_: View {
@FocusState private var usernaminFocus : Bool
@State private var ...
1
vote
1
answer
403
views
How can I open a Markdown file in preview mode by default in VS Code?
I'm trying to configure a GitPod or GitHub Codespace so that the README.md gets automatically opened in preview mode at boot time.
I managed to open the file as:
code README.md
but that opens the ...
2
votes
0
answers
344
views
How to locally test open graph metadata preview in social chat apps like skype, whatsapp, telegram and discord?
I am going to locally test open graph on social chatting apps in development environment.
But I have some issues.
I tried using ngrok and localtunnel, but they are not working. Social chatting apps ...
0
votes
0
answers
17
views
How to delimitate a view onto the preview to take a selfie?
i am implementing an android application in kotlin and i have to take a selfie . I don't want the selfie to take all the screen size so I've using a Preview and then draw a view on it . Here is the ...
0
votes
1
answer
62
views
change size of Preview image before it is uploaded
How Can I change the size of the preview image to width = 100 and height= 100
function imagePreviewFunc(that, previewerId) {
let files = that.files
previewerId.innerHTML='' // reset image preview ...
0
votes
0
answers
53
views
set image preview in edit form from database
I have an issue with displaying a photo preview on an edit form using Formik in Next.js-TypeScript. Here is the code:
const [previewImg, setPreviewImg] = useState<any>()
const [upload, ...
0
votes
1
answer
759
views
How to preview files from local storage in React JS version 18
I am currently working with a React application that can upload documents, and the files would be stored in the local project directory. I want to add preview functionality where all sorts of uploaded ...
0
votes
0
answers
37
views
How can I disable the inversion of the order of a string copied from a pdf generated with headless Chrome?
Generating pdfs with Chrome in headless mode seems to affect the order of characters when copying strings from the pdf.
To reproduce the issue:
chrome --headless --disable-gpu --print-to-pdf=example....