We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6e55c8 commit bfc4a70Copy full SHA for bfc4a70
Sources/ScreenData/Objects/SomeStyle.swift
@@ -1,12 +1,19 @@
1
public struct SomeStyle: Codable {
2
- public var backgroundColor: SomeColor?
3
public var isHidden: Bool
+ public var cornerRadius: Int
4
+
5
+ public var foregroundColor: SomeColor?
6
+ public var backgroundColor: SomeColor?
7
8
public init(
- backgroundColor: SomeColor? = nil,
- isHidden: Bool = false
9
+ isHidden: Bool = false,
10
+ cornerRadius: Int = 0,
11
+ foregroundColor: SomeColor? = nil,
12
+ backgroundColor: SomeColor? = nil
13
) {
- self.backgroundColor = backgroundColor
14
self.isHidden = isHidden
15
+ self.cornerRadius = cornerRadius
16
+ self.foregroundColor = foregroundColor
17
+ self.backgroundColor = backgroundColor
18
}
19
0 commit comments