SubmitButton 0.2.4

SubmitButton 0.2.4

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jan 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Jagajith M Kalarickal.



  • By
  • Jagajith M Kalarickal

SubmitButton

Overview

SubmitButton is a subclass of UIButton, written in Swift 3. SubmitButton library provide a new catching user interface for a submit button. From now on, anytime the user clicks on the button that involves addressing to the server, they will see the animation that informs them of the progress and completion.

SubmitButton

Highlights

  • [x] Custom button color.
  • [x] Shows loading indicator.
  • [x] Support success, failed and cancelled status.
  • [x] Support storyboard customization.

Installation

Manually:

  • Download SubmitButton.
  • Drag and drop SubmitButton directory to your project

Example Project

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Xcode 7.3+
  • iOS 8.0+
  • Swift 2.3+

Communication

  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Usage

Here is how you can use SubmitButton.

Import SubmitButton to your viewcontroller,

import SubmitButton
  • Select button type as ‘Custom’ in Attributes inspector
  • Use loadingType property to select the button loading type.
  • Use Cancel Enable in Attributes inspector or cancelEnabled property to show cancel while loading.
submitButton.taskCompletion { (_) in
    self.submitButton.completeAnimation(status: .success)
}

Author

Jagajith M Kalarickal, [email protected]

License

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