Add a TabView
- replace the content in
MainView
with aTabView
with two tabs, Today and Config. These two tabs will for now show aText
when selected.
MainView.swift
TabView {
Text("Today")
.tabItem {
Text("Today")
}
Text("Config")
.tabItem {
Text("Config")
}
}
- we should see the working tabs in the preview