Skip to content

Commit bfc4a70

Browse files
committed
Added foregroundColor and cornerRadius
1 parent c6e55c8 commit bfc4a70

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
public struct SomeStyle: Codable {
2-
public var backgroundColor: SomeColor?
32
public var isHidden: Bool
3+
public var cornerRadius: Int
4+
5+
public var foregroundColor: SomeColor?
6+
public var backgroundColor: SomeColor?
47

58
public init(
6-
backgroundColor: SomeColor? = nil,
7-
isHidden: Bool = false
9+
isHidden: Bool = false,
10+
cornerRadius: Int = 0,
11+
foregroundColor: SomeColor? = nil,
12+
backgroundColor: SomeColor? = nil
813
) {
9-
self.backgroundColor = backgroundColor
1014
self.isHidden = isHidden
15+
self.cornerRadius = cornerRadius
16+
self.foregroundColor = foregroundColor
17+
self.backgroundColor = backgroundColor
1118
}
1219
}

0 commit comments

Comments
 (0)