{"id":15031244,"url":"https://github.com/bannzai/gecco","last_synced_at":"2025-05-14T08:08:22.212Z","repository":{"id":47422025,"uuid":"49713852","full_name":"bannzai/Gecco","owner":"bannzai","description":"Simply highlight items for your tutorial walkthrough, written in Swift","archived":false,"fork":false,"pushed_at":"2024-12-22T04:17:09.000Z","size":785,"stargazers_count":1891,"open_issues_count":2,"forks_count":167,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-05-14T08:08:15.219Z","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/bannzai.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-15T10:57:06.000Z","updated_at":"2025-05-05T07:20:00.000Z","dependencies_parsed_at":"2025-01-05T06:02:05.873Z","dependency_job_id":null,"html_url":"https://github.com/bannzai/Gecco","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannzai%2FGecco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannzai%2FGecco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannzai%2FGecco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannzai%2FGecco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bannzai","download_url":"https://codeload.github.com/bannzai/Gecco/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101558,"owners_count":22014908,"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-09-24T20:15:15.016Z","updated_at":"2025-05-14T08:08:17.203Z","avatar_url":"https://github.com/bannzai.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gecco\n\n[![Pod Version](http://img.shields.io/cocoapods/v/Gecco.svg?style=flat)](http://cocoadocs.org/docsets/Gecco/)\n[![Pod Platform](http://img.shields.io/cocoapods/p/Gecco.svg?style=flat)](http://cocoadocs.org/docsets/Gecco/)\n[![Pod License](http://img.shields.io/cocoapods/l/Gecco.svg?style=flat)](http://opensource.org/licenses/MIT)\n\nSimply highlight items for your tutorial walkthrough, written in Swift\n\nGecco means Moonlight in Japanese.\n\n![Demo](https://cloud.githubusercontent.com/assets/6880730/12470510/2d1cb602-c038-11e5-8095-a2a0d77f99db.gif)\n\n## Usage\n\n### Basic\n\nBasically instantiate a SpotlightViewController and present via `UIViewController.present(_:animated:completion) and call `SpotlightViewController.spotlight.appear(_:)` with SpotlightType.\n\n``` swift\nimport Gecco\n\nclass ViewController: UIViewController {\n  func showSpotlight() {\n    let spotlightViewController = SpotlightViewController()\n    present(spotlightViewController, animated: true, completion: nil)\n    spotlightViewController.spotlightView.appear(Spotlight.Oval(center: view.center, diameter: 100))\n  }\n}\n```\n\n#### Supported SpotlightType\nGecco provide some SpotlightType as default implemantation.\n\n\u003cdetails\u003e \u003csummary\u003e Oval \u003c/summary\u003e\n\n`Oval` displays a perfect circle.\n```swift\nspotlightViewController.spotlightView.appear(Spotlight.Oval(center: view.center, diameter: 100))\n```\n\n\u003cimg width=\"320px\" src=\"https://user-images.githubusercontent.com/10897361/93325274-0601a800-f852-11ea-813b-9583be0f4335.png\" /\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e \u003csummary\u003e Rect \u003c/summary\u003e\n\n`Rect` is a rectangle drawn by specifying the width and height.\n```swift\nspotlightViewController.spotlightView.appear(Spotlight.Rect(center: view.center, size: CGSize(width: 200, height: 100)))\n```\n\n\u003cimg width=\"320px\" src=\"https://user-images.githubusercontent.com/10897361/93325566-790b1e80-f852-11ea-85a6-5fed5204a56d.png\" /\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e \u003csummary\u003e RoundedRect \u003c/summary\u003e\n\n`RoundedRect` is a rectangle with corner radius.\n```swift\nspotlightViewController.spotlightView.appear(Spotlight.RoundedRect(center: view.center, size: CGSize(width: 200, height: 100), cornerRadius: 8))\n```\n\n\u003cimg width=\"320px\" src=\"https://user-images.githubusercontent.com/10897361/93325669-9b04a100-f852-11ea-9afa-b9fac06ba0b2.png\" /\u003e\n\n\u003c/details\u003e\n\n### Advanced\n**Gecco** publish some delegate methods for hook each events about SpotlightViewController and SpotlightView.\nIf you want to write adavanced feature, you can write to define SpotlightViewControllerDelegate or SpotlightViewDelegate.\nSee [SpotlightViewControllerDelegate](https://github.com/yukiasai/Gecco/blob/9791f0c050572f43d54a7f13dc081a165d99e9f3/Classes/SpotlightViewController.swift#L11) and [SpotlightViewDelegate](https://github.com/yukiasai/Gecco/blob/9791f0c050572f43d54a7f13dc081a165d99e9f3/Classes/SpotlightView.swift#L11).\n\nFor example\n```swift\n// Hook events for SpotlightViewControllerDelegate\nspotlightViewController.delegate = self\n\n// Hook events for SpotlightViewDelegate\nspotlightViewController.spotlightView.delegate = self\n```\n\n### Example\nPlease refer to [GeccoExample](https://github.com/yukiasai/Gecco/tree/master/GeccoExample).\n\n## Installation\n\n#### CocoaPods\n\n```\npod 'Gecco'\n```\n#### Carthage\n\n```\ngithub \"yukiasai/Gecco\"\n```\n\n## License\nGecco is released under the MIT license. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbannzai%2Fgecco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbannzai%2Fgecco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbannzai%2Fgecco/lists"}