Skip to main content

Tab Bar icons

  • to improve the tabs, we can add some icons. We'll select those icons from the SF Symbols font
MainView.swift
TabView {
Text("Today")
.tabItem {
Image(systemName: "calendar")
Text("Today")
}
Text("Config")
.tabItem {
Image(systemName: "wrench.and.screwdriver")
Text("Config")
}
}
  • To find the icons and their identifiers, you can install the SF Symbols App that contains thousands of icons we can use directly in our apps.