bannzai/Gecco
소개
Swift로 작성된 튜토리얼 워크스루용 항목 강조 표시 도구입니다.
학습 및 교육측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- 0
- in 1 month
- 0
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalGecco
Simply highlight items for your tutorial walkthrough, written in Swift
Gecco means Moonlight in Japanese.

Usage
Basic
Basically instantiate a SpotlightViewController and present via UIViewController.present(_:animated:completion) and call SpotlightViewController.spotlight.appear(_:)` with SpotlightType.
import Gecco
class ViewController: UIViewController {
func showSpotlight() {
let spotlightViewController = SpotlightViewController()
present(spotlightViewController, animated: true, completion: nil)
spotlightViewController.spotlightView.appear(Spotlight.Oval(center: view.center, diameter: 100))
}
}
Supported SpotlightType
Gecco provide some SpotlightType as default implemantation.
Oval
Oval displays a perfect circle.
spotlightViewController.spotlightView.appear(Spotlight.Oval(center: view.center, diameter: 100))

Rect
Rect is a rectangle drawn by specifying the width and height.
spotlightViewController.spotlightView.appear(Spotlight.Rect(center: view.center, size: CGSize(width: 200, height: 100)))

RoundedRect
RoundedRect is a rectangle with corner radius.
spotlightViewController.spotlightView.appear(Spotlight.RoundedRect(center: view.center, size: CGSize(width: 200, height: 100), cornerRadius: 8))

Advanced
Gecco publish some delegate methods for hook each events about SpotlightViewController and SpotlightView. If you want to write adavanced feature, you can write to define SpotlightViewControllerDelegate or SpotlightViewDelegate. See SpotlightViewControllerDelegate and SpotlightViewDelegate.
For example
// Hook events for SpotlightViewControllerDelegate
spotlightViewController.delegate = self
// Hook events for SpotlightViewDelegate
spotlightViewController.spotlightView.delegate = self
Example
Please refer to GeccoExample.
Installation
CocoaPods
pod 'Gecco'
Carthage
github "yukiasai/Gecco"
License
Gecco is released under the MIT license. See LICENSE for details.
관련 프로젝트 살펴보기
불러오는 중…