Check out the documentation or just compile it yourself when you add the package to your projects.
Tests
The tests mostly consist of snapshot tests. We use a CADisplayLink to sample some frames from the animation and diff them against reference snapshots. Since there is some expected deviation we add some tolerance to the tests.
How it all started
You may wonder what’s so special about this play button. In this article we describe the difficulties we have faced implementing an interruptible and reversible animation in Core Animation.
PlayButton
A button that can render four different playback related modes and animate between them.
Installation (Swift Package Manager)
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the
swift
compiler.Once you have your Swift package set up, adding PlayButton as a dependency is as easy as adding it to the
dependencies
value of yourPackage.swift
.Usage
Documentation
Check out the documentation or just compile it yourself when you add the package to your projects.
Tests
The tests mostly consist of snapshot tests. We use a
CADisplayLink
to sample some frames from the animation and diff them against reference snapshots. Since there is some expected deviation we add some tolerance to the tests.How it all started
You may wonder what’s so special about this play button. In this article we describe the difficulties we have faced implementing an interruptible and reversible animation in Core Animation.