Skip to content

Commit 82e98ef

Browse files
committed
Changed duration of pop animation.
1 parent 86b6726 commit 82e98ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AnimateItAll/FirstViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ class FirstViewController: UIViewController {
343343
// Uses the new UIViewPropertyAnimator API
344344
// Creates an animator in-place that either pops the image open, or closes it, depending on the current state of the image
345345
private func popSkipImageView(toFocused: Bool = true) {
346-
UIViewPropertyAnimator.runningPropertyAnimator(withDuration: 0.1, delay: 0, options: [.curveEaseOut], animations: {
346+
UIViewPropertyAnimator.runningPropertyAnimator(withDuration: normalAnimationDuration / 2, delay: 0, options: [.curveEaseOut], animations: {
347347
self.dimmedView.alpha = toFocused ? 0.8 : 0
348348

349349
// As of iOS 11, you can animate corner radius changes

0 commit comments

Comments
 (0)