Skip to content

resand/MMLoadingButton

 
 

Repository files navigation

MMLoadingButton

CI Status Version License Platform

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)

LoadingButton

2.Setting

LoadingButton

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

LoadingButton

2.Scuess With Tick Animation

loadingButton.stopLoading(true, completed: {
    print("Scuess Completed")
})

LoadingButton

3.Error With Crossed Animation

loadingButton.stopLoading(false, completed: {
    print("Error Completed")
})

LoadingButton

4.Error With Crossed ,message and Animation

loadingButton.stopWithError("Error !!", hideInternal: 2, completed: {
    print ("Fail Message Completed")
})

LoadingButton

5.Add Transition With function

    loadingBtn.addScuessPresentVC(vc)

LoadingButton

If you presentViewController with default transition,you can add custom transition use

    loadingBtn.addScuessWithDismissVC()

LoadingButton

6.Auto Push the bottom View when show Error Message

LoadingButton

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, millmanyang@gmail.com

License

MMLoadingButton is available under the MIT license. See the LICENSE file for more info.

About

Custom Loading Button With Animation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 74.1%
  • Shell 20.2%
  • Ruby 4.2%
  • Objective-C 1.5%