![](https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10-1024x521.webp)
In the newest Xcode, you might see a deprecation warning if you try to use .tabItem
view modifier.
💡
‘tabItem’ will be deprecated in a future version of iOS: Use Tab (title:image:value:content:) and related initializers instead
![](https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.52.53-AM-1024x367.webp)
As shown on the Apple Developer documentation:
![](https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.53.19-AM.webp)
You can easily fix this by using the new Tab
view:
![](https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.55.52-AM.webp)
You can also easily add a badge (that shows a number or a character text), and use the value
parameter to control which tab is currently activated:
![](https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.57.27-AM.webp)