added layoutsubviews to call setNeedsUpdate

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-03-01 10:14:05 -06:00
parent 283c3c410f
commit 1cce539222
2 changed files with 9 additions and 0 deletions

View File

@ -132,4 +132,8 @@ open class Control: UIControl, ViewProtocol, UserInfoable, Clickable {
return true
}
open override func layoutSubviews() {
super.layoutSubviews()
setNeedsUpdate()
}
}

View File

@ -86,4 +86,9 @@ open class View: UIView, ViewProtocol, UserInfoable {
isEnabled = true
}
open override func layoutSubviews() {
super.layoutSubviews()
setNeedsUpdate()
}
}