Password with "Apple" flavor has a fixed length
This commit is contained in:
parent
fe4ea4e79c
commit
c93a63d8cc
3 changed files with 18 additions and 5 deletions
|
|
@ -58,6 +58,13 @@ class SliderTableViewCell: ContentTableViewCell {
|
|||
slider.maximumValue = Float(maximumValue)
|
||||
slider.value = Float(defaultValue)
|
||||
valueLabel.text = String(defaultValue)
|
||||
|
||||
// "not editable"
|
||||
if minimumValue == maximumValue {
|
||||
titleLabel.textColor = UIColor.gray
|
||||
valueLabel.textColor = UIColor.gray
|
||||
slider.isUserInteractionEnabled = false
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue