FastActions 0.2.0

FastActions 0.2.0

Maintained by DengYonghao.



FastAction

FastActions is a powerful and pure Swift implemented library for action handler.

Features

  • View send action to current ViewController or ChildViewController
  • View send action to current NavigationController viewControllers
  • View send action to any Class

The simplest use-case is send action to an ViewController with the UIButton extension:

let button = UIButton()
let params = FastActionsParams(tag: "kBntClickAction")
button.fa.dispatchToVC(params: params)

Requirements

  • iOS 9.0+ / macOS 10.12+ / tvOS 10.0+
  • Swift 4.0+

Installation

CocoaPods

To integrate FastActions into your Xcode project using CocoaPods, specify it to a target in your Podfile:

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

target 'MyApp' do
  # other pod
  pod 'FastActions'
end

Then, run the following command:

$ pod install

Carthage

To integrate FastActions into your Xcode project using Carthage, specify it in your Cartfile:

github "dengyhgit/FastActions" ~> 1.0

Then, run the following command to build the FastActions framework:

$ carthage update FastActions --platform iOS
# Or `--platform macOS`, `--platform tvOS`

License

FastActions is released under the MIT license. See LICENSE for details.