I think the question is more related to how to code with SwiftUI. I guess a basic SwiftUI tutorial should give you a good place to start.
I have seen some code examples in this issue, maybe that helps: