Inside Xcode, I follow File-> New -> File -> SwiftUI View and create a UIView File. It creates an editable file with the code below:
import SwiftUI