AssistiveButton 1.2.0

AssistiveButton 1.2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2018
SPMSupports SPM

Maintained by zixun.



  • By
  • zixun

AssistiveButton

Swift 3.0+ Platform MIT Carthage compatible

Context

This library is derived from the GodEye project which can automaticly disply Log,Crash,Network,ANR,Leak,CPU,RAM,FPS,NetFlow,Folder and etc with one line of code. Just like god opened his eyes

Example

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

Installation

CocoaPods

AssistiveButton is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "AssistiveButton"

Carthage

Or, if you’re using Carthage, add SwViewCapture to your Cartfile:

github "zixun/AssistiveButton"

Usage

let frame = CGRect(x: 0, y: 100, width: 48, height: 48)
let btn = AssistiveButton(frame: frame, normalImage: UIImage(named: "test")!)
    
btn.didTap = { () -> () in
    print("abc")
}
self.view.addSubview(btn)

Author

name: 陈奕龙

twitter: @zixun_

email: [email protected]

github: zixun

blog: 子循(SubCycle)

License

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