I'd recommend combining these two approaches, worked like magic for me.
type the following in youtube search(Apple doesn't let me post the youtube link here):
"Hack screen capture to take photo of web info easily on your app | SwiftUI"
Use the background modifier shown in the video, it's a great idea.
Use the View and UIView extensions from this source:
https://gist.github.com/SatoTakeshiX/39e111aa93f896e58c74fdc13d19ba0a
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: