{"id":3074,"url":"https://github.com/xai3/Gecco","last_synced_at":"2025-08-06T16:31:55.354Z","repository":{"id":56912629,"uuid":"296003627","full_name":"xai3/Gecco","owner":"xai3","description":"Simply highlight items for your tutorial walkthrough, written in Swift","archived":false,"fork":true,"pushed_at":"2020-09-16T10:52:19.000Z","size":774,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-26T13:42:31.072Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"bannzai/Gecco","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xai3.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":"2020-09-16T10:46:49.000Z","updated_at":"2024-03-20T21:49:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/xai3/Gecco","commit_stats":null,"previous_names":["yukiasai/Gecco","yukiasai/gecco"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xai3%2FGecco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xai3%2FGecco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xai3%2FGecco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xai3%2FGecco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xai3","download_url":"https://codeload.github.com/xai3/Gecco/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227668723,"owners_count":17801513,"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:30.645Z","updated_at":"2024-12-09T16:31:14.359Z","avatar_url":"https://github.com/xai3.png","language":"Swift","funding_links":[],"categories":["Walkthrough / Intro / Tutorial","Libs"],"sub_categories":["Web View","UI"],"readme":"# Gecco\n\n## Note\n\n⚠️⚠️ yukiasai/Gecco was transferred to [bannzai/Gecco](https://github.com/bannzai/Gecco). This repository is forked. ⚠️⚠️\n\n## Overview\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%2Fxai3%2FGecco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxai3%2FGecco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxai3%2FGecco/lists"}