I saw this link but the code is for UIKit and I'm using SwiftUI which don't work together perfectly. I saw there are ways of using UIKit code with SwiftUI but I didn't understand how to do it in my case.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: