Skip to content

Instantly share code, notes, and snippets.

View chih98's full-sized avatar
🍎
Photos

Marko chih98

🍎
Photos
View GitHub Profile
@RomanEsin
RomanEsin / ControllerAnimatable.swift
Last active June 28, 2020 09:34
Animate Game Controller light. This little code snippet will allow you to animate the light of the controller when using GameController API.
import Foundation
import GameController
protocol ControllerAnimatable: class {
var controller: GCController { get }
}
extension ControllerAnimatable {
/// Animates controller light color to a specified color of `GCColor` type.
/// - Parameters: