# PTFakeTouch **Repository Path**: vww/PTFakeTouch ## Basic Information - **Project Name**: PTFakeTouch - **Description**: https://github.com/Ret70/PTFakeTouch - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-09-21 - **Last Updated**: 2023-10-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PTFakeTouch ![输入图片说明](WechatIMG19.jpg) # PTFakeTouch Simulate touch events for iOS [User mode] Only enable in the application,and the system touch simulate libary: https://github.com/xuan32546/IOS13-SimulateTouch Just build it and add this framework to your project. Then you can use it. Addtions are from kif. USE CASE ------------- Click a point at screen NSInteger pointId = [PTFakeTouch fakeTouchId:[PTFakeTouch getAvailablePointId] AtPoint:CGPointMake(100,100) withTouchPhase:UITouchPhaseBegan]; [PTFakeTouch fakeTouchId:pointId AtPoint:CGPointMake(100,100) withTouchPhase:UITouchPhaseEnded]; Swipe screen NSInteger pointId = [PTFakeTouch fakeTouchId:[PTFakeTouch getAvailablePointId] AtPoint:CGPointMake(100,100) withTouchPhase:UITouchPhaseBegan]; [PTFakeTouch fakeTouchId:pointId AtPoint:CGPointMake(300,300) withTouchPhase:UITouchPhaseMoved]; [PTFakeTouch fakeTouchId:pointId AtPoint:CGPointMake(300,300) withTouchPhase:UITouchPhaseEnded];