Guidebook Engineering Blog Dec 15, 2015 1 minute read
Guidebook's Progress Button Open Sourced
The recent release of Guidebook 4.0 included a new version of our download progress button which was heavily inspired by the progress button employed in the iOS app store. We received a number of requests to demonstrate how we created the progress button, and we decided to take it even further: we open sourced it.
Usage is simple:
- Create the button as a custom view in your xib, or create it programatically.
- Make sure that you don’t have a constraint for it’s width (it shrinks)–you might need to set the Intrinsic Content Size to “Placeholder” in your xib to avoid errors.
A simple example might look like:
You can also adjust the tint color of the entire view (which colors the button stroke, text, and icon):
Let us know if you use it within your app or if you have any questions on implementation.