Latest 1.0.0
Homepage https://github.com/anandvqb/CustomUploadButton
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

Version
License
Platform

Overview

This is a custom upload button that shows animation during the upload action. The user can stop the animation when the upload process is complete. There is also option for disabling/enabling the button.

CustomUploadButton

Requirements

  • Xcode 8.1+
  • iOS 8.0+
  • Swift 3.0+

Installation

CocoaPods:

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

$ gem install cocoapods

To integrate CustomUploadButton 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 ’CustomUploadButton’, ‘1.0.0'
end

Then, run the following command:

$ pod install

Manually:

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

Example

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

Usage

Here is how you can use CustomUploadButton.

Import CustomUploadButton to your viewcontroller,

import CustomUploadButton

Then create an instance of the CustomUploadButton and set the delegate as follows:

@IBOutlet weak var uploadButton: CustomUploadButton!

uploadButton.delegate = self

Now, implement the CustomUploadButtonActionDelegate function where you can stop the animation when your task is complete:

public func buttonAction(sender: CustomUploadButton) {

    //Your task here

    if sender == uploadButton {
        sender.stopAnimation()
    }
}

Author

Anand V, [email protected]

License

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

Latest podspec

{
    "name": "CustomUploadButton",
    "version": "1.0.0",
    "summary": "Custom upload button based on design from UIMovement.",
    "description": "This is a cocoapod for creating a custom upload button based on a design from UIMovement (https://uimovement.com/ui/2472/upload-button/).",
    "homepage": "https://github.com/anandvqb/CustomUploadButton",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Anand V": "[email protected]"
    },
    "source": {
        "git": "https://github.com/anandvqb/CustomUploadButton.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "CustomUploadButton/Classes/**/*",
    "resource_bundles": {
        "CustomUploadButton": [
            "CustomUploadButton/Assets/**/*"
        ]
    },
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This