With UIKit, we can easily change NavigationBar right item with segmented control. Like the sample code provide from Apple - https://developer.apple.com/documentation/uikit/uinavigationcontroller/customizing_your_app_s_navigation_bar The first sample "Custom Right View"
When I try to use SwiftUI to achieve the same effect, I can't found a way to do it, any idea for this topic? Thanks in advance!
Selecting any option will automatically load the page