Skip to content

Commit 6e3bfbd

Browse files
author
Martin Conte Mac Donell
committed
Make sure closure is called w/1.0 on CADisplayLink
1 parent 6b22055 commit 6e3bfbd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Source/CADisplayLink+LambdaKit.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ extension CADisplayLink {
8383
if elapsed >= duration {
8484
displayLink.closureWrapper = nil
8585
displayLink.invalidate()
86+
closureWrapper.handler(1.0)
8687
} else {
8788
closureWrapper.handler(elapsed / duration)
8889
}

0 commit comments

Comments
 (0)