An open API service indexing awesome lists of open source software.

https://github.com/isaced/ptfaketouch

Simulate touch events for iOS[User mode]
https://github.com/isaced/ptfaketouch

Last synced: over 1 year ago
JSON representation

Simulate touch events for iOS[User mode]

Awesome Lists containing this project

README

          

# PTFakeTouch

Simulate touch events for iOS[User mode]

- Added Podspec
- Lib Architectures

```
lipo -info PTFakeTouch.framework/PTFakeTouch
Architectures in the fat file: PTFakeTouch.framework/PTFakeTouch are: armv7 i386 x86_64 arm64
```

**Use**

```objective-c
#import

// Click a point at screen
NSInteger pointId = [PTFakeMetaTouch fakeTouchId:[PTFakeMetaTouch getAvailablePointId] AtPoint:CGPointMake(100,100) withTouchPhase:UITouchPhaseBegan];
[PTFakeMetaTouch fakeTouchId:pointId AtPoint:CGPointMake(100,100) withTouchPhase:UITouchPhaseEnded];

// Swipe screen
NSInteger pointId = [PTFakeMetaTouch fakeTouchId:[PTFakeMetaTouch getAvailablePointId] AtPoint:CGPointMake(100,100) withTouchPhase:UITouchPhaseBegan];
[PTFakeMetaTouch fakeTouchId:pointId AtPoint:CGPointMake(300,300) withTouchPhase:UITouchPhaseMoved];
[PTFakeMetaTouch fakeTouchId:pointId AtPoint:CGPointMake(300,300) withTouchPhase:UITouchPhaseEnded];
```

**via**

- https://github.com/Ret70/PTFakeTouch
- https://github.com/zjjno/PTFakeTouchDemo
- https://github.com/vviicc/BSUITest