I'm beginner of SwiftUI
I recently learning SwiftUI with Youtube Lecture
In TabView part,
TabView {
myView(titleText: "프로필", bgColor: Color.blue) // it's just View I made
.tabItem {
Image(systemName : "person.crop.circle.fill")
Text("프로필")
}.tag(2) // <- I'm wondering about this 'tag'
}
I'm wondering what does 'tag(_)' do in tabItem
thank you for your answer