fixed bug in app when swapping back and forth between sizes

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-09-08 15:46:34 -05:00
parent bf4ab9ab1c
commit 0dae2d36cb
2 changed files with 3 additions and 4 deletions

View File

@ -162,15 +162,14 @@ extension Tabs {
labelBottomConstraint?.constant = -otherSpace
//label properties
label.textStyle = textStyle
label.text = text
label.surface = surface
label.textStyle = textStyle
label.textAlignment = textAlignment.value
label.textColorConfiguration = textColorConfiguration.eraseToAnyColorable()
setNeedsLayout()
layoutIfNeeded()
}
}
/// Used to update any Accessibility properties.
open override func updateAccessibility() {

View File

@ -111,7 +111,7 @@ open class Tabs: View {
open var selectedIndex: Int = 0 { didSet { setNeedsUpdate() } }
/// Determines the size of the Tabs TextStyle
open var size: Size = .medium { didSet { setNeedsUpdate() } }
open var size: Size = .medium { didSet { updateTabItems() } }
/// When true, Tabs will be sticky to top of page, when orientation is vertical.
open var sticky: Bool = false { didSet { setNeedsUpdate() } }