I’m a beginner learning SwiftUI
I have a simple blue bitmap file imported into asset. it’s a bmp file that’s 150×150 pixels
I create a UIImage by:
let data = NSDataAsset(name: "BitmapBlue150")!.data
let uiImage = UIImage(data: data)!
Then in my view the bitmap is shown by
Image(uiImage: uiImage)
When I check uiImage.scale, it is showing scale = 1
However, it seems to me that the displayed image is 150×150 points, not pixels
Did the Image view automatically scale the image? if it did, then the scale factor shouldn’t be 1, right?
Thank you for any insight