TabBar with boolean

Viewed 178

I heve created TabBar with 2 tabs. And I equated them to a boolean. For example, if the first tab is true, the second tab is false. And view is exchanged when the value is true. I want to create TabBar with 3 tabs. Is it possible to do this with a boolean? For exmaple :

true , false , false

or

false , true , false

or

false , false , true

How is it possible to get value in such a way?

Thanks!

1 Answers
Related