{"id":2160,"url":"https://github.com/andreamazz/UIView-draggable","last_synced_at":"2025-08-02T23:32:08.875Z","repository":{"id":14979434,"uuid":"17704566","full_name":"andreamazz/UIView-draggable","owner":"andreamazz","description":"UIView category that adds dragging capabilities","archived":false,"fork":false,"pushed_at":"2017-12-02T03:30:30.000Z","size":2974,"stargazers_count":436,"open_issues_count":8,"forks_count":67,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-11-30T11:49:55.319Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"quilljs/quill","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreamazz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-03-13T09:28:48.000Z","updated_at":"2024-03-21T13:58:06.000Z","dependencies_parsed_at":"2022-08-20T09:31:00.321Z","dependency_job_id":null,"html_url":"https://github.com/andreamazz/UIView-draggable","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreamazz%2FUIView-draggable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreamazz%2FUIView-draggable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreamazz%2FUIView-draggable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreamazz%2FUIView-draggable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreamazz","download_url":"https://codeload.github.com/andreamazz/UIView-draggable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503140,"owners_count":17930519,"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:06.220Z","updated_at":"2024-12-06T17:30:48.818Z","avatar_url":"https://github.com/andreamazz.png","language":"Objective-C","funding_links":["https://www.paypal.me/andreamazzini"],"categories":["UI"],"sub_categories":["Other free courses","Font","Other Testing"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"420\" height=\"240\" src=\"assets/logo.png\"/\u003e\n\u003c/p\u003e\n\n[![Build Status](https://travis-ci.org/cevitcejbo/UIView-draggable.svg)](https://travis-ci.org/cevitcejbo/UIView-draggable)\n[![Coverage Status](https://coveralls.io/repos/cevitcejbo/UIView-draggable/badge.svg)](https://coveralls.io/r/cevitcejbo/UIView-draggable)\n[![CocoaPods](https://cocoapod-badges.herokuapp.com/v/UIView+draggable/badge.png)](http://cocoapods.org/?q=summary%3Auiview%20name%3Adraggable%2A)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\nUIView category that adds dragging capabilities.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href='https://appetize.io/app/rey013220c4b9pex34kg1qaf84' alt='Live demo'\u003e\n    \u003cimg width=\"50\" height=\"60\" src=\"assets/demo.png\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Screenshot\n![UIView+draggable](https://raw.githubusercontent.com/andreamazz/UIView-draggable/master/assets/screenshot.gif)\n\n## Setup with CocoaPods\n* Add ```pod 'UIView+draggable'``` to your Podfile\n* Run ```pod install```\n* Run ```open App.xcworkspace```\n\n## Setup with Carthage\n```\ngithub \"andreamazz/UIView-draggable\"\n```\n\n#### Objective-C\n\nImport ```UIView+draggable.h``` in your controller's header file\n\n#### Swift\n\nIf you are using `use_frameworks!` in your Podfile, use this import:\n```swift\nimport UIView_draggable\n```\n\n## Usage\nCall `enableDragging` on a UIView instance\n\n#### Objective-C\n\n```objc\n// Enable dragging\n[self.view enableDragging];\n```\n\n#### Swift\n\n```swift\nview.enableDragging()\n```\n\n## Options\nThe movement area can be restricted to a given rect:\n\n```swift\nview.cagingArea = CGRectMake(0, 0, 200, 200)\n```\n\nThe movement can be restricted over one coordinate:\n\n```swift\nview.shouldMoveAlongX = true\nview.shouldMoveAlongY = true\n```\n\nThe area where the dragging action starts can be configured:\n\n```swift\nview.handle = CGRectMake(0, 0, 20, 20)\n```\n\n# Author\n[Andrea Mazzini](https://twitter.com/theandreamazz). I'm available for freelance work, feel free to contact me.\n\nWant to support the development of [these free libraries](https://cocoapods.org/owners/734)? Buy me a coffee ☕️ via [Paypal](https://www.paypal.me/andreamazzini).  \n\n# Contributors\nThanks to [everyone](https://github.com/andreamazz/UIView-draggable/graphs/contributors) kind enough to submit a pull request.\n\n# MIT License\n\tThe MIT License (MIT)\n\n\tCopyright (c) 2017 Andrea Mazzini\n\n\tPermission is hereby granted, free of charge, to any person obtaining a copy of\n\tthis software and associated documentation files (the \"Software\"), to deal in\n\tthe Software without restriction, including without limitation the rights to\n\tuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n\tthe Software, and to permit persons to whom the Software is furnished to do so,\n\tsubject to the following conditions:\n\n\tThe above copyright notice and this permission notice shall be included in all\n\tcopies or substantial portions of the Software.\n\n\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\tIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n\tFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n\tCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n\tIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n\tCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreamazz%2FUIView-draggable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreamazz%2FUIView-draggable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreamazz%2FUIView-draggable/lists"}