/AssistiveTouch

☕️A custom button just like the system AssistiveTouch ☕️

Primary LanguageSwiftApache License 2.0Apache-2.0

AssistiveTouch

CI Status Version Platform

AssistiveTouch

☕️A custom button just like the system AssistiveTouch ☕️

👀 See also:

dititalkeyboard_display

CocoaPods

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

$ gem install cocoapods

CocoaPods 0.39.0+ is required to build AssistiveTouch 3.0.0+.

To integrate AssistiveTouch 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>'
    pod 'AssistiveTouch'

Then, run the following command:

$ pod install

📖 Usage

      let assistiveTouch = AssistiveTouch(frame: CGRect(x: 10, y: 100, width: 56, height: 56))
      assistiveTouch.addTarget(self, action: #selector(tap(sender:)), for: .touchUpInside)
      assistiveTouch.setImage(UIImage(named: "AsstisTouch"), for: .normal)
      view.addSubview(assistiveTouch)

🔑 Basics Swift 3.0