https://github.com/cnkcq/assistivetouch
☕️A custom button just like the system AssistiveTouch ☕️
https://github.com/cnkcq/assistivetouch
assistivetouch ios-app library
Last synced: about 1 year ago
JSON representation
☕️A custom button just like the system AssistiveTouch ☕️
- Host: GitHub
- URL: https://github.com/cnkcq/assistivetouch
- Owner: CNKCQ
- License: apache-2.0
- Created: 2016-11-16T08:10:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-16T11:04:07.000Z (over 9 years ago)
- Last Synced: 2025-04-09T23:43:19.145Z (about 1 year ago)
- Topics: assistivetouch, ios-app, library
- Language: Swift
- Size: 38.1 KB
- Stars: 15
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AssistiveTouch
[](https://travis-ci.org/kishikawakatsumi/IDCardKeyboard)
[](http://cocoadocs.org/docsets/IDCardKeyboard)
[](http://cocoadocs.org/docsets/IDCardKeyboard)

# AssistiveTouch
☕️A custom button just like the system AssistiveTouch ☕️
##### :eyes: See also:

### CocoaPods
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:
```bash
$ 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`:
```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
target ''
pod 'AssistiveTouch'
```
Then, run the following command:
```bash
$ pod install
```
## :book: Usage
``` bash
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)
```
:key: Basics Swift 3.0