Skip to content

dcordero/SiriRemoteView

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

SiriRemoteView

Simple View representing a Siri Remote device to provide a more visual context to hint views.

Description

SiriRemoteView is a subclass of UIView, which allows representing a Siri Remote Device and its actions.

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)

Installation

Cocoapods

To integrate SiriRemoteView into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :tvos, '9.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'SiriRemoteView', '~> 0.0.1'
end

About

Simple View representing a Siri Remote device

Resources

License

Stars

Watchers

Forks

Packages

No packages published