'how to keep origin image size in swift ui

I am using KFImage to load images from URLs in swift UI, however, I want to keep the width and height that come with the image from the URL they come in different sizes

KFImage(URL(string: egg.logoUrl))
                           .resizable()
                           .fixedSize()

I used jetback compose, and I can say that one of the hardest things in swift Ui, is image scaling that requires geometry rendering wherein compose can do it in single function call



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source