It seems rare that docs alone are enough for me to implement a new feature, but these docs on the UISearchController are detailed and quite clear.