See the loading progress on your UIButton
$ pod install MHProgressButton
or in your podfile
pod 'MHProgressButton'
add a UIButton to your view and subclass it with MHProgressButton.. set background color as needed and set the progress color and then call linearLoadingWith(progress: CGFloat) method and pass your progress percentage to it... voila ..
add infinit and pulsy loading effects
fork / edit / and Pull request to Develop Branch.