https://developer.apple.com/documentation/uikit/uitabbarcontroller/prominenttabidentifier is the answer probably
Topic:
SwiftUI
SubTopic:
iPhone Duo SwiftUI Q&A