Latest 0.0.1
Homepage https://github.com/dcordero/SiriRemoteView
License MIT
Platforms tvos 9.0
Authors

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

SiriRemoteView

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

Latest podspec

{
    "name": "SiriRemoteView",
    "authors": {
        "David Cordero": "[email protected]"
    },
    "version": "0.0.1",
    "license": "MIT",
    "summary": "Simple view representing a Siri Remote device",
    "homepage": "https://github.com/dcordero/SiriRemoteView",
    "source": {
        "git": "https://github.com/dcordero/SiriRemoteView.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "tvos": "9.0"
    },
    "source_files": "SiriRemoteView/Sources/*.swift",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This