CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

SiriRemoteView 0.0.1

SiriRemoteView 0.0.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by David Cordero.



  • By
  • David Cordero

SiriRemoteView

Simple View representing a Siri Remote device

Description

SiriRemoteView is a subclass of UIView, which allow representing on the screen a Siri Remote Device on different status.

Customizable properties:

  • lineColor: Color used to draw the shape line
  • lineWidth: Width of the line
  • hightlightColor: Color of the highlighted button
  • highlightedButton: Optional, if present a Siri Remote key is highlighted

Requirements

  • tvOS 9.0+
  • Xcode 8.2

Usage

All you need is to create an instance of SiriRemoteView and add it on the screen:

let siriRemote = SiriRemoteView()
siriRemote.backgroundColor = .clear
siriRemote.lineColor = .black
siriRemote.hightlightColor = .black
siriRemote.highlightedButton = .menu

view.addSubview(siriRemote)