         }
     }
     
+    /// The button for the selected item. This is the one that you see when the menu is closed.
     var mainButton: UIButton {
         get {
             return buttonFor(_selectedIndex)!;

    // MARK: - Class: Item
    
    public class Item {
        public var title: String = "";
        public var icon: UIImage?;
        public var value: AnyObject!;
        public var iconInsets: UIEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0);
        
        init(value:AnyObject, title: String = "", icon: UIImage? = nil) {

    private var _selectedIndex = 0;
    private let tagOffset = 10;
    
    /// The entries of the menu. Setting this will reinitialize the menu.
    public var items: [Item] {
        get {return _items}
        set {
