Remove the old selected view controller from the view hierarchy when switching selected view controller, and add accessibility post notifications when switching selected view controllers so that VoiceOver will always switch to a new element visible on screen.
Remove the old selected view controller from the view hierarchy when switching selected view controller, and add accessibility post notifications when switching selected view controllers so that VoiceOver will always switch to a new element visible on screen.

PiperOrigin-RevId: 327825660

material-components/material-components-ios,material-components/material-components-ios,material-components/material-components-ios,material-components/material-components-ios,material-components/material-components-ios