Hello,
Is it possible triggers a function instead a view on the tab item?
This is a standard:
Is it possible this? :
Can you help me?
Thanks!
L
Is it possible triggers a function instead a view on the tab item?
This is a standard:
Code Block TabView { Text("The First Tab") .tabItem { Image(systemName: "1.square.fill") Text("First") } Text("Another Tab") .tabItem { Image(systemName: "2.square.fill") Text("Second") } Text("The Last Tab") .tabItem { Image(systemName: "3.square.fill") Text("Third") } } .font(.headline)
Is it possible this? :
Code Block TabView { Text("The First Tab") .tabItem { Image(systemName: "1.square.fill") Text("First") } Text("Another Tab") .tabItem { Image(systemName: "2.square.fill") Text("Second") } someFunction() 👈 .tabItem { Image(systemName: "3.square.fill") Text("Third") } } .font(.headline)
Can you help me?
Thanks!
L