updated model changes in tilelet

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-05-14 09:01:04 -05:00
parent b31ff5c961
commit 16a4bb28ac

View File

@ -532,6 +532,7 @@ open class Tilelet: TileContainerBase<Tilelet.Padding> {
var showIconContainerView = false
if let descriptiveIconModel {
descriptiveIcon.name = descriptiveIconModel.name
descriptiveIcon.color = descriptiveIconModel.color
descriptiveIcon.size = descriptiveIconModel.size
descriptiveIcon.surface = backgroundColorSurface
descriptiveIcon.accessibilityLabel = descriptiveIconModel.accessibleText
@ -539,9 +540,11 @@ open class Tilelet: TileContainerBase<Tilelet.Padding> {
}
if let directionalIconModel {
directionalIcon.name = directionalIconModel.iconType.iconName
directionalIcon.color = directionalIconModel.color
directionalIcon.size = directionalIconModel.size
directionalIcon.surface = backgroundColorSurface
directionalIcon.accessibilityLabel = "Right arrow"
directionalIcon.accessibilityLabel = directionalIconModel.accessibleText
showIconContainerView = true
}