{"id":15293677,"url":"https://github.com/ahmetkgunay/drawpathview","last_synced_at":"2025-04-13T14:07:49.476Z","repository":{"id":56908736,"uuid":"48101483","full_name":"ahmetkgunay/DrawPathView","owner":"ahmetkgunay","description":"Drawable View with any colors you want to fill and can be erased last path or all paths anytime","archived":false,"fork":false,"pushed_at":"2017-11-01T16:22:13.000Z","size":5887,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T14:07:44.318Z","etag":null,"topics":["drawable","drawing","fill","swift4"],"latest_commit_sha":null,"homepage":null,"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/ahmetkgunay.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-12-16T09:45:43.000Z","updated_at":"2025-02-26T21:29:16.000Z","dependencies_parsed_at":"2022-08-20T19:50:30.050Z","dependency_job_id":null,"html_url":"https://github.com/ahmetkgunay/DrawPathView","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetkgunay%2FDrawPathView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetkgunay%2FDrawPathView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetkgunay%2FDrawPathView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetkgunay%2FDrawPathView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmetkgunay","download_url":"https://codeload.github.com/ahmetkgunay/DrawPathView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248724635,"owners_count":21151561,"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":["drawable","drawing","fill","swift4"],"created_at":"2024-09-30T16:50:29.495Z","updated_at":"2025-04-13T14:07:49.457Z","avatar_url":"https://github.com/ahmetkgunay.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DrawPathView\n[![Version](https://img.shields.io/cocoapods/v/DrawPathView.svg?style=flat)](http://cocoapods.org/pods/DrawPathView)\n[![License](https://img.shields.io/cocoapods/l/DrawPathView.svg?style=flat)](http://cocoapods.org/pods/DrawPathView)\n[![Platform](https://img.shields.io/cocoapods/p/DrawPathView.svg?style=flat)](http://cocoapods.org/pods/DrawPathView)\n\nDrawable View with any colors you want to fill and can be erased last path or all paths anytime\n\n![Anim](https://github.com/ahmetkgunay/DrawPathView/blob/master/anim.gif)\n\n## Usage\n\nUsage is simple, you can just add as a subview DrawPathView which is inheritted from UIView to any Custom view.\n\n```swift\n\n    lazy var drawView : DrawPathView = {\n        let dv = DrawPathView(frame: self.view.bounds)\n        dv.lineWidth = 10.0\n        dv.delegate = self\n        return dv\n    }()\n    \n    override func viewDidLoad() {\n        super.viewDidLoad()\n        view.addSubview(drawView)\n    }\n```\n\nUser also can delete paths as last drawn path or all paths at the same time.\n\n```swift\ninternal func eraseLast() {\n        drawView.clearLast()\n    } \n    \ninternal func eraseAll() {\n\t\tdrawView.clearAll()\n\t}\n```\n#### Delegates\n\nDrawPathView has also two delegate methods :\n\n- viewDrawStartedDrawing \t: Calls when user started drawing\n- viewDrawEndedDrawing \t\t: Calls when user ended drawing\n\n\n```swift\n\n// MARK: - DrawPathView Delegate -\n\n    func viewDrawStartedDrawing() {\n        print(\"Started Drawing\")\n    }\n    \n    func viewDrawEndedDrawing() {\n        print(\"Ended Drawing\")\n    }\n\n```\n\n## Requirements\n\n\n## Installation\n\nDrawPathView is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"DrawPathView\"\n```\n\n## Author\n\nAhmet Kazım Günay, ahmetkgunay@gmail.com\n\n## License\n\nDrawPathView is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetkgunay%2Fdrawpathview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmetkgunay%2Fdrawpathview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetkgunay%2Fdrawpathview/lists"}