Skip to content

Commit a6624db

Browse files
committed
Added height and width
1 parent 2c67bc3 commit a6624db

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/ScreenData/Objects/SomeStyle.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,26 @@ public struct SomeStyle: Codable, Hashable {
55
public var foregroundColor: SomeColor?
66
public var backgroundColor: SomeColor?
77

8+
public var width: Int?
9+
public var height: Int?
10+
811
public var padding: Int
912

1013
public init(
1114
isHidden: Bool = false,
1215
cornerRadius: Int = 0,
1316
foregroundColor: SomeColor? = nil,
1417
backgroundColor: SomeColor? = nil,
18+
width: Int? = nil,
19+
height: Int? = nil,
1520
padding: Int = 0
1621
) {
1722
self.isHidden = isHidden
1823
self.cornerRadius = cornerRadius
1924
self.foregroundColor = foregroundColor
2025
self.backgroundColor = backgroundColor
26+
self.width = width
27+
self.height = height
2128
self.padding = padding
2229
}
2330
}

0 commit comments

Comments
 (0)