Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
antranapp committed Dec 7, 2019
1 parent c78732f commit 98dba68
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -73,6 +73,7 @@ public class ConferenceDetailViewController: ViewController<ConferenceDetailView
navigationController?.navigationBar.shadowImage = UIImage()
navigationController?.navigationBar.isTranslucent = true
navigationController?.view.backgroundColor = .clear
navigationItem.setHidesBackButton(true, animated: false)

// Prepare `collectionView`.
// https://stackoverflow.com/questions/23786198/uicollectionview-how-can-i-remove-the-space-on-top-first-cells-row
Expand Down Expand Up @@ -311,8 +312,11 @@ extension ConferenceDetailViewController {

if contentOffSetY > 0 {
headerViewHeightConstraint.constant = max(Constants.headerViewCollapsedHeight, Constants.headerViewExpandedHeight - contentOffSetY)

} else if contentOffSetY < 0 {
if contentOffSetY < -120 {
didSuccessfullyDragDownToDismiss()
return
}
headerViewHeightConstraint.constant = Constants.headerViewExpandedHeight - contentOffSetY
} else {
headerViewHeightConstraint.constant = Constants.headerViewExpandedHeight
Expand Down

0 comments on commit 98dba68

Please sign in to comment.