Latest 0.2.4
Homepage https://github.com/jagajithmk/SubmitButton
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

Version
License
Platform

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

CocoaPods:

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate SubmitButton into your Xcode project using CocoaPods, specify it in your Podfile:


source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
pod "SubmitButton"
end

Then, run the following command:

$ pod install

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.

Select button type as 'Custom' in Attributes inspector


submitButton.loadingType = .timeLimited

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.

Latest podspec

{
    "name": "SubmitButton",
    "version": "0.2.4",
    "summary": "SubmitButton library provides a better user interation for a submit button.",
    "description": "Submitbutton library provide a new catching user interface for a submit button. This library is written in Swift 3. 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.",
    "homepage": "https://github.com/jagajithmk/SubmitButton",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Jagajith M Kalarickal": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jagajithmk/SubmitButton.git",
        "tag": "0.2.4"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "SubmitButton/Classes/**/*",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This