adding border width
This commit is contained in:
parent
80b9f985b1
commit
2f6fa19233
@ -45,6 +45,9 @@ public class Facade: Codable {
|
||||
public var disabledTextColor_inverted: Color?
|
||||
public var disabledBorderColor_inverted: Color?
|
||||
|
||||
public var borderWidth: CGFloat?
|
||||
public var borderWidth_inverted: CGFloat?
|
||||
|
||||
//--------------------------------------------------
|
||||
// MARK: - Initializer
|
||||
//--------------------------------------------------
|
||||
@ -63,7 +66,9 @@ public class Facade: Codable {
|
||||
enabledBorderColor_inverted: Color? = nil,
|
||||
disabledFillColor_inverted: Color? = nil,
|
||||
disabledTextColor_inverted: Color? = nil,
|
||||
disabledBorderColor_inverted: Color? = nil) {
|
||||
disabledBorderColor_inverted: Color? = nil,
|
||||
borderWidth: CGFloat? = nil,
|
||||
borderWidth_inverted: CGFloat? = nil) {
|
||||
|
||||
self.isInverted = isInverted
|
||||
self.backgroundColor_standard = backgroundColor_standard
|
||||
@ -80,6 +85,8 @@ public class Facade: Codable {
|
||||
self.disabledFillColor_inverted = disabledFillColor_inverted
|
||||
self.disabledTextColor_inverted = disabledTextColor_inverted
|
||||
self.disabledBorderColor_inverted = disabledBorderColor_inverted
|
||||
self.borderWidth = borderWidth
|
||||
self.borderWidth_inverted = borderWidth_inverted
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
@ -90,6 +97,10 @@ public class Facade: Codable {
|
||||
return (isInverted ? backgroundColor_inverted : backgroundColor_standard)?.uiColor
|
||||
}
|
||||
|
||||
public func getBorderWidth() -> CGFloat? {
|
||||
return isInverted ? borderWidth_inverted : borderWidth
|
||||
}
|
||||
|
||||
public func enabled_fillColor() -> UIColor? {
|
||||
return (isInverted ? enabledFillColor_inverted : enabledFillColor)?.uiColor
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user