What is FocusTvButton?

FocusTvButton allows the customization of UIButtons in tvOS, adding extra properties to customize layout attributes which are not customizable on UIButtons out of the box.

Custom properties:

  • Focused background color
  • Unfocused background color
  • Selected background color
  • Corner radius
  • Scale factor when focused
  • Shadow radius when focused
  • Shadow opacity when focused
  • Shadow color
  • Shadow offset when focused
  • Duration of the focus animation
  • Title color when focuses/unfocused

Two color, linear gradient properties:

  • Focused background end color
  • Unfocused background end color
  • Selected background end color
  • gradient start & end points

A simple two color, linear gradient can be configured by setting either “background end” color properties. If neither “background end” color properties are set then FocusTvButton will use a solid background color by default.

Overview

  • Pricing: Free
  • Resource Link: https://github.com/dcordero/FocusTvButton
  • Resource Maker: David Cordero
  • Mobile Platform Destination: iOS Apps
  • Mobile Platform Support: Native iOS
  • Programming Languages: Swift
  • CocoaPods: FocusTvButton
  • Carthage: dcordero/FocusTvButton