Hope I understand your problem…
Just create a New file in the project in Xcode (Fle > New > File), and select SwiftUIView
Name it MySwiftUIView
Adapt the template code to what you want to present:
import SwiftUI
struct MySwiftUIView: View {
var body: some View {
Text("Hello, World!")
}
}
struct MySwiftUIView_Previews: PreviewProvider {
static var previews: some View {
MySwiftUIView()
}
}
Then, call it in the tabbar:
TabView {
MySwiftUIView()
.tabItem {
Label("MyView", systemImage: "list.dash")
}
Topic:
Programming Languages
SubTopic:
Swift
Tags: