This was the simplest solution that worked for me.
However size of image sometimes can be problematic.
I am trying to find out a solution to get screen size so my screen captures were better.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: