I'm going through the tutorial and have copied the code given to me verbatim, but I am still getting the error 'Value of type 'SettingsView' has no member 'tabItem'. Not sure what to do. Code is below.
import SwiftUI
@main struct MyApp: App { var body: some Scene {
WindowGroup {
TabView {
ContentView()
.tabItem {
Label("Journal", systemImage: "book")
}
SettingsView()
.tabItem { *error is here - Value of type 'SettingsView' has no member 'tabItem'
Label("Settings", systemImage: "gear")
}
}
}
}
}