tab bar更新了什么
Asked on 06/16/2025
1 search
在WWDC 2024中,Apple对Tab Bar进行了多项更新,特别是在iPadOS 18中。以下是一些主要的更新内容:
-
视觉更新: Tab Bar在iPadOS 18中获得了新的紧凑外观,减少了垂直和水平的空白空间,使应用内容更加突出。
-
结合侧边栏体验: 现有的侧边栏应用可以采用新的UITabBarController API,以获得结合Tab和侧边栏的体验。当侧边栏最小化时,它会动画化地回到Tab Bar中。
-
自定义功能: 新的Tab Bar允许用户通过拖放来个性化侧边栏和Tab Bar。
-
浮动设计: 在iOS 18中,Tab Bar被重新设计为浮动在网页上方,并动态缩小以将内容置于中心位置。
-
SwiftUI更新: 在iOS 18中,TabView有了新的语法,使得在构建时更容易捕捉常见错误,并支持程序化选择。
这些更新旨在提升用户体验,使应用程序的导航更加直观和个性化。
有关详细信息,您可以查看以下相关的WWDC 2024会话:
- What’s new in UIKit (01:24)
- Elevate your tab and sidebar experience in iPadOS (00:52)

What’s new in UIKit
Explore everything new in UIKit, including tab and document launch experiences, transitions, and text and input changes. We’ll also discuss better-than-ever interoperability between UIKit and SwiftUI animations and gestures, as well as general improvements throughout UIKit.

Elevate your tab and sidebar experience in iPadOS
iPadOS 18 introduces a new navigation system that gives people the flexibility to choose between using a tab bar or sidebar. The newly redesigned tab bar provides more space for content and other functionality. Learn how to use SwiftUI and UIKit to enable customization features – like adding, removing and reordering tabs – to enable a more personal touch in your app.

Keynote
Don’t miss the exciting reveal of the latest Apple software and technologies.