We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd686be commit ed3c8acCopy full SHA for ed3c8ac
SearchController/ViewController.swift
@@ -28,6 +28,7 @@ class ViewController: UITableViewController {
28
// the system animation of the search bar to complete properly.
29
private var lastContentOffset: CGFloat = 0
30
override func scrollViewDidScroll(_ scrollView: UIScrollView) {
31
+ guard #available(iOS 13, *) else { return }
32
let searchBar = searchController.searchBar
33
34
if lastContentOffset > scrollView.contentOffset.y {
0 commit comments