diff --git a/MVMCoreUI/Atomic/Atoms/Views/Tilet.swift b/MVMCoreUI/Atomic/Atoms/Views/Tilet.swift index 59886edf..c8b4e58a 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/Tilet.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/Tilet.swift @@ -31,15 +31,17 @@ open class Tilet: VDS.Tilet, VDSMoleculeViewProtocol { open func updateView(_ size: CGFloat) {} public func viewModelDidUpdate() { - surface = viewModel.surface + containerBackgroundColor = viewModel.containerBackgroundColor + containerPadding = viewModel.containerPadding + aspectRatio = viewModel.aspectRatio + width = viewModel.width + textWidth = viewModel.textWidth + textPercentage = viewModel.textPercentage titleModel = viewModel.title subTitleModel = viewModel.subTitle badgeModel = viewModel.badge descriptiveIconModel = viewModel.descriptiveIcon directionalIconModel = viewModel.directionalIcon - width = viewModel.width - textWidth = viewModel.textWidth - textPercentage = viewModel.textPercentage } //since this is a class func, we can't reference it directly diff --git a/MVMCoreUI/Atomic/Atoms/Views/TiletModel.swift b/MVMCoreUI/Atomic/Atoms/Views/TiletModel.swift index 6dd10735..f0d37272 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/TiletModel.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/TiletModel.swift @@ -16,7 +16,9 @@ open class TiletModel: MoleculeModelProtocol { //-------------------------------------------------- public static var identifier: String = "tilet" public var backgroundColor: Color? - public var surface: Surface = .light + public var containerBackgroundColor: TileContainer.ContainerBackgroundColor = .black + public var containerPadding: TileContainer.ContainerPadding = .padding4X + public var aspectRatio: TileContainer.ContainerScalingType = .none public var badge: TiletBadgeModel? public var title: TiletTitleModel? public var subTitle: TiletSubTitleModel?