9,236 questions
0
votes
0
answers
46
views
UIImage not showing in Xcode Debug
When I try to check any UIImage, it doesn't show. I can see MTLTexture, but not UIImage. I can see images if I go to the older branch, but not the current branch that I am working on. How to fix this?
...
0
votes
0
answers
62
views
How to preserve text on single PDF to Image conversion?
Trying to import user's daily duties which are PDF format. The PDF contains no more than 20 dates and airport/time combinations which is what I need to capture from the document. I have the text ...
0
votes
1
answer
132
views
How to render images @2x and @3x from a URL in a SwiftUI Image
I have requirement to load an advertisement image in my app and these are usually logos of companies.
The thing about logos is that while they can be of a specific height, their width would change.
So ...
2
votes
2
answers
76
views
Overlay one UIImage onto another UIImage in the center
I have 2 UIImages, image1 and image2. I wish to overlay image2 onto image1, the overlaid image2 should be in the center of image1 and the result should return a UIImage and not UIImageView.
With my ...
0
votes
0
answers
104
views
Converting a UIImage to the WebP format is extremely slow
Converting a UIImage to the WebP format is extremely slow. For a 2.5M HEIF photo with a compression ratio of 0.85, SDImageWebPCoder and libwebp take about 13.5 seconds.
SDImageWebPCoder
let webpCoder ...
2
votes
1
answer
85
views
Changing color and symbol of 'Back' button on App Navigator, using Swift
I am trying to achieve the attached Back navigation look:
I want to keep the slide back functionality too.
From an Apple forum question from a year ago, what I am trying to do is "not officially ...
-3
votes
3
answers
102
views
Convert UIImage.size to String
if(image != nil){
mediaSize = String(image!.size.width) + "|" + String(image!.size.height)
}
The result should be like "400|300"
I get the error: No exact matches in call to ...
1
vote
1
answer
1k
views
iOS Widget Image not displaying when OS18 Tint mode is enabled
I'm implementing an iOS widget. An image is retrieved from photos, and displayed in the Widget along with a few basic functional buttons (not included here).
The widget works fine building locally or ...
1
vote
1
answer
209
views
How does prepareForDisplay work and why does it work without using the decodedImage
I am trying to load an image from a url but it causes major lags in my app due to the amount of images I am loading. I am now calling "prepareForDisplay" on the image I get from inputting ...
0
votes
0
answers
34
views
Getting a sub-UIImage from a UIImageView given a CGRect?
Given a UIImageView, and a CGRect inside that UIImageView, how do I get a sub-UIImage of the UIImage displayed in the UIImageView that is a cut-out of the image matching the CGRect?
I’m struggling to ...
0
votes
0
answers
190
views
SwiftUI App Not Persisting Images with @AppStorage and File System
I am building a SwiftUI app that allows users to add and view images, and I need to save these images so that they persist across app launches. I am using @AppStorage to store paths to the images ...
0
votes
0
answers
96
views
How to Load Images from URL Instead of Base64 for CarPlay in Swift?
I am currently working on a CarPlay project where I need to display images using CPGridButton. Initially, I was using Base64 strings to load images, but I want to switch to loading images directly ...
-1
votes
2
answers
183
views
How to use CIFilter to composite two images of different sizes
I have two images of different sizes that I want to composite together using a CIFilter. ImageA size is 2400x1800. ImageB size is 1200x900.
As the two images are different sizes, when the images are ...
0
votes
1
answer
250
views
CarPlay SwiftUI no applying color to non-system UIImage
In an Apple CarPlay CPGridTemplate with several buttons, the buttons from a system UIImage are tinted cyan by the system, while the buttons from a custom SVG stay black. All combinations of ....
0
votes
1
answer
55
views
How to write UIImage extension to add tint color to the image with signature UIImage(resource, color)
Please find my code
convenience init?(resource: ImageResource, color: UIColor) {
let image = UIImage(resource: resource).withTintColor(color)
self.init()
}
Please mention what I am missing