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 98dba68 commit 4926b06
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -18,6 +18,7 @@ public class ConferenceDetailViewController: ViewController<ConferenceDetailView
// Constant

private struct Constants {
static let offsetThresholdToDismiss: CGFloat = -120
static let headerViewExpandedHeight: CGFloat = 150.0
static let headerViewCollapsedHeight: CGFloat = 44 + UIApplication.shared.statusBarFrame.size.height
}
Expand Down Expand Up @@ -313,7 +314,7 @@ extension ConferenceDetailViewController {
if contentOffSetY > 0 {
headerViewHeightConstraint.constant = max(Constants.headerViewCollapsedHeight, Constants.headerViewExpandedHeight - contentOffSetY)
} else if contentOffSetY < 0 {
if contentOffSetY < -120 {
if contentOffSetY < Constants.offsetThresholdToDismiss {
didSuccessfullyDragDownToDismiss()
return
}
Expand Down

0 comments on commit 4926b06

Please sign in to comment.