This works for me too 👍
Post
Replies
Boosts
Views
Activity
iOS 16, Swift 5.7
override func viewDidLoad() {
super.viewDidLoad()
textField.inputAssistantItem.leadingBarButtonGroups = []
textField.inputAssistantItem.trailingBarButtonGroups = []
}