{"id":2110,"url":"https://github.com/morizotter/TouchVisualizer","last_synced_at":"2025-08-02T23:31:58.423Z","repository":{"id":26361203,"uuid":"29810298","full_name":"morizotter/TouchVisualizer","owner":"morizotter","description":"Lightweight touch visualization library in Swift. A single line of code and visualize your touches!","archived":true,"fork":false,"pushed_at":"2022-05-11T01:14:44.000Z","size":65328,"stargazers_count":864,"open_issues_count":15,"forks_count":109,"subscribers_count":29,"default_branch":"master","last_synced_at":"2024-12-01T03:41:29.338Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/morizotter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-25T10:22:25.000Z","updated_at":"2024-11-01T03:25:20.000Z","dependencies_parsed_at":"2022-08-28T23:11:32.288Z","dependency_job_id":null,"html_url":"https://github.com/morizotter/TouchVisualizer","commit_stats":null,"previous_names":["morizotter/mzrpresentationkit"],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morizotter%2FTouchVisualizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morizotter%2FTouchVisualizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morizotter%2FTouchVisualizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morizotter%2FTouchVisualizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morizotter","download_url":"https://codeload.github.com/morizotter/TouchVisualizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503132,"owners_count":17930517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:16:03.804Z","updated_at":"2024-12-06T17:30:45.396Z","avatar_url":"https://github.com/morizotter.png","language":"Swift","funding_links":[],"categories":["Testing","Libs","Swift","UI [🔝](#readme)"],"sub_categories":["UI Testing","UI","Other free courses"],"readme":"# ![TouchVisualizer](misc/logo2.png)\n\n[![Version](https://img.shields.io/cocoapods/v/TouchVisualizer.svg?style=flat)](http://cocoadocs.org/docsets/TouchVisualizer) [![License](https://img.shields.io/cocoapods/l/TouchVisualizer.svg?style=flat)](http://cocoadocs.org/docsets/TouchVisualizer) [![Platform](https://img.shields.io/cocoapods/p/TouchVisualizer.svg?style=flat)](http://cocoadocs.org/docsets/TouchVisualizer)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/morizotter/TouchVisualizer)\n[![Circle CI](https://circleci.com/gh/morizotter/TouchVisualizer/tree/master.svg?style=shield\u0026circle-token=b7eb2e179731634bcac95d1e4f8e90b837b092e3)](https://circleci.com/gh/morizotter/TouchVisualizer/tree/master) [![Join the chat at https://gitter.im/morizotter/TouchVisualizer](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/morizotter/TouchVisualizer?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nTouchVisualizer is a lightweight pure Swift implementation for visualising touches on the screen.\n\n## Features\n\n- Works with just **a single line of code**!\n- Supports multiple fingers.\n- Supports multiple `UIWindow`'s.\n- Displays touch radius (finger size).\n- Displays touch duration.\n- Customise the finger-points image and colour.\n- Supports iPhone and iPad in both portrait and landscape mode.\n\n## How it looks\n\n### Portrait:\n\n![one](misc/one.gif)\n\n### Landscape:\n\n![two](misc/two.gif)\n\n### Robots:\n\n![three](misc/three.gif)\n\n### In-app implementation:\n\n![four](misc/four.gif)\n\nIt's fun!\n\n## Runtime Requirements\n\n- Swift 4.0\n- Xcode 9.2\n- iOS9.0 or later\n\nTouchVisualizer works with Swift 5.2 from version 4.0.0.\n\n## Installation and Setup\n\n**Note:** Embedded frameworks require a minimum deployment target of iOS 9.0.\n\n**Information:** To use TouchVisualizer with a project targeting iOS 8.0 or lower, you must include the `TouchVisualizer.swift` source file directly in your project.\n\n### Installing with CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a centralised dependency manager that automates the process of adding libraries to your Cocoa application. You can install it with the following command:\n\n```bash\n$ gem update\n$ gem install cocoapods\n$ pods --version\n```\n\nTo integrate TouchVisualizer into your Xcode project using CocoaPods, specify it in your `Podfile` and run `pod install`.\n\n```bash\nplatform :ios, '9.0'\nuse_frameworks!\npod \"TouchVisualizer\", '~\u003e 4.0'\n```\n\n### Installing with Carthage\n\nCarthage is a decentralised dependency manager that automates the process of adding frameworks to your Cocoa application.\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate TouchVisualizer into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"morizotter/TouchVisualizer\" \"4.0.0\"\n```\n\n### Manual Installation\n\nTo install TouchVisualizer without a dependency manager, please add all of the files in `/Pod` to your Xcode Project.\n\n## Usage\n\nTo start using TouchVisualizer, write the following line wherever you want to start visualising:\n\n```swift\nimport TouchVisualizer\n```\n\nThen invoke visualisation, by calling:\n\n```swift\nVisualizer.start()\n```\n\nand stop the presentation like this:\n\n```swift\nVisualizer.stop()\n```\n\nGet touch locations by this:\n\n```swift\nVisualizer.getTouches()\n```\n\nIt is really simple, isn't it?\n\n## Customisation\n\nTouchVisualizer also has the ability to customize your touch events. Here is an example of what can be customized:\n\n```swift\nvar config = Configuration()\nconfig.color = UIColor.redColor()\nconfig.image = UIImage(named: \"YOUR-IMAGE\")\nconfig.showsTimer = true\nconfig.showsTouchRadius = true\nconfig.showsLog = true\nVisualizer.start(config)\n```\n\n### Configuration properties\n\n| name             | type      | description                                                                                                                | default       |\n| :--------------- | :-------- | :------------------------------------------------------------------------------------------------------------------------- | :------------ |\n| color            | `UIColor` | Color of touch point and text.                                                                                             | default color |\n| image            | `UIImage` | Touch point image. If rendering mode is set to `UIImageRenderingModeAlwaysTemplate`, the image is filled with color above. | circle image  |\n| defaultSize      | `CGSize`  | Default size of touch point.                                                                                               | 60 x 60px     |\n| showsTimer       | `Bool`    | Shows touch duration.                                                                                                      | false         |\n| showsTouchRadius | `Bool`    | Shows touch radius by scaling touch point. It doesn't work on simulator.                                                   | false         |\n| showsLog         | `Bool`    | Shows log.                                                                                                                 | false         |\n\n## Documentation\n\n### Peripheral\n\n- [How to take an iOS screen movie](misc/take_a_movie.md)\n\n### Presentation\n\n- [TouchVisualizer Demo movie #potatotips // Speaker Deck](https://speakerdeck.com/morizotter/touchvisualizer-demo-movie-number-potatotips) @potatotips May 13 2015\n\n## Contributing\n\nPlease file issues or submit pull requests for anything you’d like to see! We're waiting! :)\n\n## Licensing\n\nTouchVisualizer is released under the MIT license. Go read the LICENSE file for more information.\n\n#### Miscellaneous\n\nThere is a similar _touch visualization_ library called [COSTouchVisualizer](https://github.com/conopsys/COSTouchVisualizer), which is written in Objective-C. [COSTouchVisualizer](https://github.com/conopsys/COSTouchVisualizer) supports earlier versions of iOS and is more mature. If TouchVisualizer isn't enough for you, try that!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorizotter%2FTouchVisualizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorizotter%2FTouchVisualizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorizotter%2FTouchVisualizer/lists"}