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
true. The animation serves to draw the user’s attention to the new selection, which can be useful when implementing search.