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

import Parchment

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

    ])
  }
  
  private func updateSelectedState() {
    guard let theme = theme else { return }
    if selected {
      dateLabel.textColor = theme.selectedTextColor
      weekdayLabel.textColor = theme.selectedTextColor
