Skip to content

Commit

Permalink
Merge pull request 52inc#16 from mmadjer/drawer-position-closed
Browse files Browse the repository at this point in the history
Add closed position
  • Loading branch information
amyleecodes authored Oct 26, 2016
2 parents fcde8aa + 726ab96 commit fa8c785
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion PulleyLib/PulleyViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ public enum PulleyPosition: Int {
case collapsed = 0
case partiallyRevealed = 1
case open = 2
case closed = 3

static var all: [PulleyPosition] = [
.collapsed,
.partiallyRevealed,
.open
.open,
.closed
]
}

Expand Down Expand Up @@ -484,6 +486,9 @@ open class PulleyViewController: UIViewController, UIScrollViewDelegate, PulleyP

case .open:
stopToMoveTo = (self.view.bounds.size.height - topInset)

case .closed:
stopToMoveTo = 0
}

let drawerStops = [(self.view.bounds.size.height - topInset), collapsedHeight, partialRevealHeight]
Expand Down

0 comments on commit fa8c785

Please sign in to comment.