added height

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-12-20 12:33:29 -06:00
parent a340598861
commit ae97c2cc80

View File

@ -86,7 +86,18 @@ open class TileContainer: Control {
}
}
public var height: CGFloat? { didSet{ didChange() } }
private var _height: CGFloat?
public var height: CGFloat? {
get { return _height }
set {
if let newValue, newValue > 44 {
_height = newValue
} else {
_height = nil
}
didChange()
}
}
public var showBorder: Bool = false { didSet{ didChange() } }