From ae97c2cc80b824c6a03d46c2fc8f5824c2b7c41e Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 20 Dec 2022 12:33:29 -0600 Subject: [PATCH] added height Signed-off-by: Matt Bruce --- VDS/Components/TileContainer/TileContainer.swift | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/VDS/Components/TileContainer/TileContainer.swift b/VDS/Components/TileContainer/TileContainer.swift index afdbe27c..d2956b7b 100644 --- a/VDS/Components/TileContainer/TileContainer.swift +++ b/VDS/Components/TileContainer/TileContainer.swift @@ -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() } }