   required init?(coder: NSCoder) {
     super.init(coder: coder)
     configure()
+  }
+  
+  override var selected: Bool {
+    didSet {
+      updateSelectedState()
+    }
   }
   
   private func configure() {

    ])
  }
  
  override func setPagingItem(pagingItem: PagingItem, theme: PagingTheme) {
    let calendarItem = pagingItem as! CalendarItem
    
    dateLabel.text = DateFormatters.dateFormatter.stringFromDate(calendarItem.date)
    weekdayLabel.text = DateFormatters.weekdayFormatter.stringFromDate(calendarItem.date)
    
    if selected {
      dateLabel.textColor = theme.selectedTextColor
      weekdayLabel.textColor = theme.selectedTextColor

import Parchment

class CalendarPagingCell: PagingCell {
  
  private var theme: PagingTheme?
  
  lazy var dateLabel: UILabel = {
    let dateLabel = UILabel(frame: .zero)
