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 ...
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 ...
I am using Simple UIImageView in my code and setting image from symbols. The problem is once I've set symbol, the UIImageView doesn't care about NSLayoutConstrains and It's resizes as it wants.Is ...
I want to have Image occupying full width of its container and height will be based on aspect ratio provided explicitly. Also the image should cover all its frame and doesn't matter its content is cut ...
I have a label which is placed as a subview on an imageView. Depending on the color of the area where the label is set, I want to set the text color of the label as contrast. E. g. if the specific ...
It is necessary to change the color of the image to 00ff00.But it turns out to 4fff00.I tried it in two ways. The result is the same.internal static func imageColorMatrix1(image: UIImage) -> ...
I'm having issues with UIScrollView when doing pinch-to-zoom UIImageView. Implementation is relatively simple which you can find in many places on the Internet. Double tap to zoom in and out works ...
Basically trying to recreate the small icons like in the iOS Settings app. I have tried numerous techniques from stack over flow and nothing works. I managed to add padding around the UIImage, but the ...
I face a problem when after UIImage rotation the white lines appear on sides of the image. In my image redactor I have rotateButton. After tapping on it I call this function:func rotateLeft() -> ...
I want to enlarge an image and fill the space with white color. func resizeImageWithTransparentBackground(originalImage: UIImage, targetSize: CGSize) -> UIImage? { let originalSize = ...
I am referring to SF Symbols app for available system icons. If I have to use the asset, I could directly use the systemName to create UIImage. Recently I noticed that there is something called ...
I'm quite new to Swift and iOS development and I have encountered a issue while building an app.In a ViewController I have a ScrollView with nested inside a UIView with two UIImageView children ...
Here I have attached the screenshot that I have worked. I am facing an issue that image view is not scaling to the frame. I have created a custom view within the custom view i have added imageview and ...
I have a custom UIImageView that acts like a 'carousel' in that users can swipe it to see an image (which, by the way, I adapted from this excellent post on Medium.I want the corners to be rounded to ...
A part of an app I'm making in Kotlin in Android Studio contains a map with provinces. (See image) Replication of map of the Netherlands All of the provinces are different ImageViews, because I need ...