@@ -4,6 +4,7 @@ public struct StyleProps: Decodable {
44 // ViewStyle
55 public var color : ColorValue ? // alias for foregroundColor
66 public var accentColor : ColorValue ?
7+ public var tint : ColorValue ?
78 public var tintColor : ColorValue ?
89 public var foregroundColor : ColorValue ?
910 public var backgroundColor : ColorValue ?
@@ -42,7 +43,7 @@ public struct StyleProps: Decodable {
4243 public var textAlign : TextAlignment ?
4344
4445 enum CodingKeys : String , CodingKey {
45- case color, accentColor, tintColor, backgroundColor, preferredColorScheme, foregroundColor, width, minWidth, maxWidth, height, minHeight, maxHeight, position, top, left, bottom, right, padding, paddingHorizontal, paddingVertical, paddingLeft, paddingRight, paddingTop, paddingBottom, borderColor, borderWidth, borderRadius, cornerRadius, fontWeight, fontSize, font, fontFamily, textAlign
46+ case color, accentColor, tint , tintColor, backgroundColor, preferredColorScheme, foregroundColor, width, minWidth, maxWidth, height, minHeight, maxHeight, position, top, left, bottom, right, padding, paddingHorizontal, paddingVertical, paddingLeft, paddingRight, paddingTop, paddingBottom, borderColor, borderWidth, borderRadius, cornerRadius, fontWeight, fontSize, font, fontFamily, textAlign
4647 }
4748
4849 public init ( from decoder: Decoder ) throws {
@@ -51,6 +52,7 @@ public struct StyleProps: Decodable {
5152 // ViewStyle
5253 color = try container. decodeIfPresent ( ColorValue . self, forKey: . color) // alias for foregroundColor
5354 accentColor = try container. decodeIfPresent ( ColorValue . self, forKey: . accentColor)
55+ tint = try container. decodeIfPresent ( ColorValue . self, forKey: . tint)
5456 tintColor = try container. decodeIfPresent ( ColorValue . self, forKey: . tintColor)
5557 foregroundColor = try container. decodeIfPresent ( ColorValue . self, forKey: . foregroundColor)
5658 backgroundColor = try container. decodeIfPresent ( ColorValue . self, forKey: . backgroundColor)
0 commit comments