Tabular view of the drawer: dismissal by pulling down

I created a box-like window that appears when the user touches a button. The drawer slides out from the bottom of the screen and fills the entire screen.

The box is actually UITableViewController, so there is a table in this box.

If I have several lines, the user can click the title (this is actually a transparent button), and the box will move down and it will be rejected. See the figure below, where purple is actually the view controller under the drawer.

enter image description here

, , ; . : , , . ? , ?

+3
2

UITableView UIScrollView. UIScrollViewDelegate scrollViewDidScroll:. , , . , , . , , , , . , , .

+1
extension "Your CollectionView/TableView Controller" : UIScrollViewDelegate {
    func scrollViewDidScroll(_ scrollView: UIScrollView) {
        if scrollView.contentOffset.y < 0{
            // ......
        }
    }
}
0

All Articles