setCurrentSelection(_:animate:)
Sets the current selection, in an animated way, if desired.
Declaration
func setCurrentSelection(_ selection: PDFSelection?, animate: Bool)Discussion
This method behaves as setCurrentSelection(_:), but with the addition of animation, if animate is true. The animation serves to draw the user’s attention to the new selection, which can be useful when implementing search.