Skip to main content

Add a TabView

  • replace the content in MainView with a TabView with two tabs, Today and Config. These two tabs will for now show a Text when selected.
MainView.swift
TabView {
Text("Today")
.tabItem {
Text("Today")
}

Text("Config")
.tabItem {
Text("Config")
}
}
  • we should see the working tabs in the preview