Is it possible to show an attributedString or something alike at the middle position of the navigationbar?
Asked on 2025-09-05
1 search
Yes, it is possible to show an AttributedString
or similar styled text in the middle position of the navigation bar. In iOS 26, UINavigationItem
provides more control over the title and subtitle areas in the navigation bar, allowing for fine-grained adjustments using attributed strings. You can specify custom views to add interactive elements, and use attributed strings for both the title and subtitle to achieve the desired styling and positioning.
For more details, you can refer to the session Build a UIKit app with the new design (08:54) where these features are discussed.

Code-along: Cook up a rich text experience in SwiftUI with AttributedString
Learn how to build a rich text experience with SwiftUI’s TextEditor API and AttributedString. Discover how you can enable rich text editing, build custom controls that manipulate the contents of your editor, and customize the formatting options available. Explore advanced capabilities of AttributedString that help you craft the best text editing experiences.

Build a UIKit app with the new design
Update your UIKit app to take full advantage of the new design system. We’ll dive into key changes to tab views, split views, bars, presentations, search, and controls, and show you how to use Liquid Glass in your custom UI. To get the most out of this video, we recommend first watching “Get to know the new design system” for general design guidance.

Code-along: Explore localization with Xcode
Learn how to localize your app into additional languages using Xcode. We’ll walk step-by-step through the process of creating a String Catalog, translating text, and exchanging files with external translators. You’ll learn best practices for providing necessary context to translators and how Xcode can help to provide this information automatically. For larger projects, we’ll also dive into techniques to manage complexity and streamline string management using type-safe Swift code.