@@ -23,12 +23,12 @@ open class MenuItemView: UIView {
2323 addSubview ( customView)
2424 }
2525 }
26- open internal( set) var selected : Bool = false {
26+ open internal( set) var isSelected : Bool = false {
2727 didSet {
2828 if case . roundRect = menuOptions. focusMode {
2929 backgroundColor = UIColor . clear
3030 } else {
31- backgroundColor = selected ? menuOptions. selectedBackgroundColor : menuOptions. backgroundColor
31+ backgroundColor = isSelected ? menuOptions. selectedBackgroundColor : menuOptions. backgroundColor
3232 }
3333
3434 switch menuItemOptions. displayMode {
@@ -46,7 +46,7 @@ open class MenuItemView: UIView {
4646 widthConstraint. constant = calculateLabelSize ( titleLabel, maxWidth: maxWindowSize) . width
4747 descriptionWidthConstraint. constant = calculateLabelSize ( descriptionLabel, maxWidth: maxWindowSize) . width
4848 case let . image( image, selectedImage) :
49- menuImageView. image = selected ? ( selectedImage ?? image) : image
49+ menuImageView. image = isSelected ? ( selectedImage ?? image) : image
5050 case . custom: break
5151 }
5252 }
@@ -167,8 +167,8 @@ open class MenuItemView: UIView {
167167 }
168168
169169 fileprivate func updateLabel( _ label: UILabel , text: MenuItemText ) {
170- label. textColor = selected ? text. selectedColor : text. color
171- label. font = selected ? text. selectedFont : text. font
170+ label. textColor = isSelected ? text. selectedColor : text. color
171+ label. font = isSelected ? text. selectedFont : text. font
172172 }
173173
174174 fileprivate func setupImageView( _ image: UIImage ) {
0 commit comments