Tabview 是从 iOS13 开始被引入的 SwiftUI 组件,用于创建在多个子视图之间切换的视图。在 WWDC 2024 中,苹果对 TabView 的功能和使用方法进行了多项改进,在本文中,我们将了解新版本中的新功能及其改进之处。
Enhancing your app’s content with tab navigation | Apple Developer DocumentationKeep your app content front and center while providing quick access to navigation using the tab bar.Apple Developer Documentation
Tabview 核心改进
* 编程控制
* 自适应平台