fixed enums
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
1242a10d41
commit
2223945509
@ -16,7 +16,7 @@ class TileContainerViewController: BaseViewController {
|
||||
lazy var backgroundColorPickerSelectorView = {
|
||||
PickerSelectorView(title: "white",
|
||||
picker: self.picker,
|
||||
items: TileContainer.ContainerBackgroundColor.allCases)
|
||||
items: TileContainer.BackgroundColor.allCases)
|
||||
}()
|
||||
|
||||
lazy var imageFallbackColorPickerSelectorView = {
|
||||
@ -26,13 +26,13 @@ class TileContainerViewController: BaseViewController {
|
||||
lazy var paddingPickerSelectorView = {
|
||||
PickerSelectorView(title: "16",
|
||||
picker: self.picker,
|
||||
items: TileContainer.ContainerPadding.allCases)
|
||||
items: TileContainer.Padding.allCases)
|
||||
}()
|
||||
|
||||
lazy var scalingTypePickerSelectorView = {
|
||||
PickerSelectorView(title: "white",
|
||||
picker: self.picker,
|
||||
items: TileContainer.ContainerScalingType.allCases)
|
||||
items: TileContainer.AspectRatio.allCases)
|
||||
}()
|
||||
|
||||
var clickableSwitch = Toggle()
|
||||
@ -51,7 +51,7 @@ class TileContainerViewController: BaseViewController {
|
||||
super.viewDidLoad()
|
||||
addContentTopView(view: .makeWrapper(for: tileContainer))
|
||||
tileContainer.width = 150
|
||||
tileContainer.containerBackgroundColor = .black
|
||||
tileContainer.color = .black
|
||||
setupForm()
|
||||
setupPicker()
|
||||
setupModel()
|
||||
@ -135,8 +135,8 @@ class TileContainerViewController: BaseViewController {
|
||||
func setupModel() {
|
||||
//setup UI
|
||||
surfacePickerSelectorView.text = tileContainer.surface.rawValue
|
||||
backgroundColorPickerSelectorView.text = tileContainer.containerBackgroundColor.rawValue
|
||||
paddingPickerSelectorView.text = tileContainer.containerPadding.rawValue
|
||||
backgroundColorPickerSelectorView.text = tileContainer.color.rawValue
|
||||
paddingPickerSelectorView.text = tileContainer.padding.rawValue
|
||||
scalingTypePickerSelectorView.text = tileContainer.aspectRatio.rawValue
|
||||
widthTextField.text = tileContainer.width != nil ? "\(tileContainer.width!)" : ""
|
||||
heightTextField.text = tileContainer.height != nil ? "\(tileContainer.height!)" : ""
|
||||
@ -150,7 +150,7 @@ class TileContainerViewController: BaseViewController {
|
||||
}
|
||||
|
||||
backgroundColorPickerSelectorView.onPickerDidSelect = { [weak self] item in
|
||||
self?.tileContainer.containerBackgroundColor = item
|
||||
self?.tileContainer.color = item
|
||||
}
|
||||
|
||||
scalingTypePickerSelectorView.onPickerDidSelect = { [weak self] item in
|
||||
@ -158,7 +158,7 @@ class TileContainerViewController: BaseViewController {
|
||||
}
|
||||
|
||||
paddingPickerSelectorView.onPickerDidSelect = { [weak self] item in
|
||||
self?.tileContainer.containerPadding = item
|
||||
self?.tileContainer.padding = item
|
||||
}
|
||||
|
||||
imageFallbackColorPickerSelectorView.onPickerDidSelect = { [weak self] item in
|
||||
|
||||
Loading…
Reference in New Issue
Block a user