Skip to content

Commit

Permalink
Update syntax to Xcode 8.3 / Swift 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
DenTelezhkin authored Apr 10, 2017
1 parent fe817b3 commit 7ceb9b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PulleyLib/PulleyViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -744,10 +744,10 @@ extension PulleyViewController: UIScrollViewDelegate {
}
}

if abs(Float(currentClosestStop - (self.view.bounds.size.height - topInset))) <= FLT_EPSILON && supportedDrawerPositions.contains(.open)
if abs(Float(currentClosestStop - (self.view.bounds.size.height - topInset))) <= Float.ulpOfOne && supportedDrawerPositions.contains(.open)
{
setDrawerPosition(position: .open, animated: true)
} else if abs(Float(currentClosestStop - collapsedHeight)) <= FLT_EPSILON && supportedDrawerPositions.contains(.collapsed)
} else if abs(Float(currentClosestStop - collapsedHeight)) <= Float.ulpOfOne && supportedDrawerPositions.contains(.collapsed)
{
setDrawerPosition(position: .collapsed, animated: true)
} else if supportedDrawerPositions.contains(.partiallyRevealed){
Expand Down

0 comments on commit 7ceb9b2

Please sign in to comment.