How to convert a View (not UIView) to an image?
Although SwiftUI does not provide a direct method to convert a view into an image, you still can do it. It is a little bit of a hack, but it works just fine. In the example below, the code captures the image of two VStacks whenever they are tapped. Their contents are converted into a … Read more