Sets the current selection, in an animated way, if desired.
- iOS 11.0+
- macOS 10.5+
- Mac Catalyst 13.0+
This method behaves as setCurrentSelection:, but with the addition of animation, if
YES. The animation serves to draw the user’s attention to the new selection, which can be useful when implementing search.