refactored naming convention
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
2ea6e9fb43
commit
7e589328fd
@ -87,7 +87,7 @@ open class TileContainer: Control {
|
||||
|
||||
public var containerPadding: ContainerPadding = .padding4X { didSet{ didChange() } }
|
||||
|
||||
public var aspectRatio: ContainerScalingType = .ratio1x1 { didSet{ didChange() } }
|
||||
public var containerAspectRatio: ContainerScalingType = .ratio1x1 { didSet{ didChange() } }
|
||||
|
||||
public var imageFallbackColor: Surface = .light { didSet{ didChange() } }
|
||||
|
||||
@ -220,7 +220,7 @@ open class TileContainer: Control {
|
||||
private func ratioSize(for width: CGFloat) -> CGSize {
|
||||
var height: CGFloat = width
|
||||
|
||||
switch aspectRatio {
|
||||
switch containerAspectRatio {
|
||||
case .ratio1x1:
|
||||
break;
|
||||
case .ratio3x4:
|
||||
@ -270,7 +270,7 @@ open class TileContainer: Control {
|
||||
containerBottomConstraint?.constant = -containerPadding.value
|
||||
containerTrailingConstraint?.constant = -containerPadding.value
|
||||
|
||||
if let width, aspectRatio == .none && height == nil{
|
||||
if let width, containerAspectRatio == .none && height == nil{
|
||||
widthConstraint?.constant = width
|
||||
widthConstraint?.isActive = true
|
||||
heightConstraint?.isActive = false
|
||||
|
||||
@ -209,7 +209,7 @@ open class Tilet: TileContainer {
|
||||
open override func setup() {
|
||||
super.setup()
|
||||
width = 100
|
||||
aspectRatio = .none
|
||||
containerAspectRatio = .none
|
||||
containerBackgroundColor = .black
|
||||
let view = UIView().with {
|
||||
$0.translatesAutoresizingMaskIntoConstraints = false
|
||||
@ -254,7 +254,7 @@ open class Tilet: TileContainer {
|
||||
|
||||
public override func reset() {
|
||||
super.reset()
|
||||
aspectRatio = .none
|
||||
containerAspectRatio = .none
|
||||
surface = .light
|
||||
containerBackgroundColor = .black
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user