From 7ceb9b2e0f1e61a919329015fceb0c4c07049bb3 Mon Sep 17 00:00:00 2001 From: Denys Telezhkin Date: Mon, 10 Apr 2017 11:26:16 +0300 Subject: [PATCH] Update syntax to Xcode 8.3 / Swift 3.1 --- PulleyLib/PulleyViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PulleyLib/PulleyViewController.swift b/PulleyLib/PulleyViewController.swift index 525df3b..904c5bb 100644 --- a/PulleyLib/PulleyViewController.swift +++ b/PulleyLib/PulleyViewController.swift @@ -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){