JATableViewRowAction 0.1.2

JATableViewRowAction 0.1.2

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

Maintained by Jeferson Assis.



  • By
  • assisjeferson

JATableViewRowAction

A lib inspired in BGTableViewRowActionWithImage

Example

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

Requirements

  • iOS 8.0+
  • Xcode 8+
  • Swift 3

Installation

CocoaPods is a dependency manager for Cocoa projects. JATableViewRowAction is available through CocoaPods. To install it, simply add the following line to your Podfile:

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

pod "JATableViewRowAction"

Then run the following command:

$ pod install

Usage

// In your imports:
import JATableViewRowAction

// In your code:
JATableViewRowAction.rowAction(style: UITableViewRowActionStyle,
                               title: String,
                          titleColor: UIColor,
                               image: UIImage,
                     backgroundColor: UIColor,
                               frame: CGSize,
                                font: UIFont?,
                             handler: @escaping ((UITableViewRowAction, IndexPath) -> Swift.Void)

Author

assisjeferson, [email protected]

License

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