Popularity
0.7
Stable
Activity
0.0
Stable
7
3
4

Description

PLMenuBar is a customized menubar for tvOS, simple and easy to use.

Requirement - XCode 7.3

Support - Support desc detail view - Support combo detail view - Magic

Code Quality Rank: L4
Programming language: Swift
License: MIT License
Tags: Apple TV     UI     Menu    
Latest version: v0.0.1

PLMenuBar alternatives and similar libraries

Based on the "Apple TV" category.
Alternatively, view PLMenuBar alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of PLMenuBar or a related project?

Add another 'Apple TV' Library

README

PLMenuBar

PLMenuBar is a customized menubar for tvOS, simple and easy to use.

Preview

preview

Requirement

  • XCode 7.3

Support

  • Support desc detail view
  • Support combo detail view
  • Magic

Delegate

@objc public protocol PLMenuBarDelegate: NSObjectProtocol {

    func numberOfItemsInMenubar() -> Int;

    func menuBar(menuBar: PLMenuBarView, titleForItemAtIndex index: Int) -> String;

    optional func menuBar(menuBar: PLMenuBarView, detailItemForItemAtIndex index: Int) -> PLMenuDetailItem;

    optional func menuBar(menuBar: PLMenuBarView, didSelectItemAtIndex index: Int);

    optional func menuBar(menuBar: PLMenuBarView, didSelectDetailAtRow row: Int, Section section: Int, forItemAtIndex index: Int);

}

Usage

self.menuDetailItems = [
    PLMenuDetailDescItem(title: "TabBarItem with Desc", text: "Hello, World"),
    PLMenuDetailItem(title: "TabBarItem with Nothing"),
    PLMenuDetailComboItem(title: "TabBarItem with Combo", items: [
        PLMenuComboSection(title: "Section1", items: ["option1", "option2"], preferredIndex: 1),
        PLMenuComboSection(title: "Section2", items: ["option1", "option2"], preferredIndex: 0)
    ])
];

self.menuBar = PLMenuBarView();

self.menuBar.delegate = self;

self.view.addSubview(menuBar);