         CGContextStrokePath(context)
     }
 
+    private func createButton(#type: ReaderModeBarButtonType, action: Selector) -> UIButton {
+        let button = UIButton()
+        addSubview(button)
+        button.setImage(type.image, forState: .Normal)
+        button.addTarget(self, action: action, forControlEvents: .TouchUpInside)
+        return button
+    }
+
     func SELtappedReadStatusButton(sender: UIButton!) {
         delegate?.readerModeBar(self, didSelectButton: unread ? .MarkAsRead : .MarkAsUnread)
     }


enum ReaderModeBarButtonType {
    case MarkAsRead, MarkAsUnread, Settings, AddToReadingList, RemoveFromReadingList
}

protocol ReaderModeBarViewDelegate {


    var unread: Bool = true {
        didSet {
            let buttonType: ReaderModeBarButtonType = unread ? .MarkAsRead : .MarkAsUnread
            readStatusButton.setImage(buttonType.image, forState: UIControlState.Normal)
        }
    }

    var added: Bool = false {
        didSet {
            let buttonType: ReaderModeBarButtonType = added ? .RemoveFromReadingList : .AddToReadingList
            listStatusButton.setImage(buttonType.image, forState: UIControlState.Normal)
        }
    }
}
