refactored enums/models
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
a2fd68be15
commit
e1729d234e
@ -31,8 +31,8 @@ open class Tilet: VDS.Tilet, VDSMoleculeViewProtocol {
|
|||||||
open func updateView(_ size: CGFloat) {}
|
open func updateView(_ size: CGFloat) {}
|
||||||
|
|
||||||
public func viewModelDidUpdate() {
|
public func viewModelDidUpdate() {
|
||||||
containerBackgroundColor = viewModel.containerBackgroundColor
|
color = viewModel.color
|
||||||
containerPadding = viewModel.containerPadding
|
padding = viewModel.padding
|
||||||
aspectRatio = viewModel.aspectRatio
|
aspectRatio = viewModel.aspectRatio
|
||||||
width = viewModel.width
|
width = viewModel.width
|
||||||
textWidth = viewModel.textWidth
|
textWidth = viewModel.textWidth
|
||||||
|
|||||||
@ -16,9 +16,9 @@ open class TiletModel: MoleculeModelProtocol {
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
public static var identifier: String = "tilet"
|
public static var identifier: String = "tilet"
|
||||||
public var backgroundColor: Color?
|
public var backgroundColor: Color?
|
||||||
public var containerBackgroundColor: TileContainer.ContainerBackgroundColor = .black
|
public var color: TileContainer.BackgroundColor = .black
|
||||||
public var containerPadding: TileContainer.ContainerPadding = .padding4X
|
public var padding: TileContainer.Padding = .padding4X
|
||||||
public var aspectRatio: TileContainer.ContainerScalingType = .none
|
public var aspectRatio: TileContainer.AspectRatio = .none
|
||||||
public var badge: TiletBadgeModel?
|
public var badge: TiletBadgeModel?
|
||||||
public var title: TiletTitleModel?
|
public var title: TiletTitleModel?
|
||||||
public var subTitle: TiletSubTitleModel?
|
public var subTitle: TiletSubTitleModel?
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user