MMLoadingButton
MMLoadingButton copied to clipboard
Custom Loading Button With Animation
MMLoadingButton
Example
To run the example project, clone the repo, and run pod install from the Example directory first.
Requirements
Desc: This is a custom Button With loading progress animation with status scuess and error
1.Scuess can set Transition
2.Error can set reminder message
3.Error message will autoLayout when show
1.Demo With (Error,Scuess,Transition)

2.Setting

3.Setting (Error Color , Top Margin ,Font)

2.Scuess With Tick Animation
loadingButton.stopLoading(true, completed: {
print("Scuess Completed")
})

3.Error With Crossed Animation
loadingButton.stopLoading(false, completed: {
print("Error Completed")
})

4.Error With Crossed ,message and Animation
loadingButton.stopWithError("Error !!", hideInternal: 2, completed: {
print ("Fail Message Completed")
})

5.Add Transition With function
loadingBtn.addScuessPresentVC(vc)

If you presentViewController with default transition,you can add custom transition use
loadingBtn.addScuessWithDismissVC()

6.Auto Push the bottom View when show Error Message

Installation
MMLoadingButton is available through CocoaPods. To install it, simply add the following line to your Podfile:
Swift3
pod "MMLoadingButton"
Swift 2.3
pod ‘MMCardView’,:git => 'https://github.com/MillmanY/MMLoadingButton', :branch => ‘Swift2’
Author
Millman, [email protected]
License
MMLoadingButton is available under the MIT license. See the LICENSE file for more info.