Skip to content

Commit b561e32

Browse files
committed
make textColor optional
1 parent 760cf9c commit b561e32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/UIComponent/Components/View/Text.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public struct TextRenderNode: RenderNode {
209209
/// - numberOfLines: The maximum number of lines to use for rendering.
210210
/// - lineBreakMode: The technique to use for wrapping and truncating the text.
211211
/// - size: The calculated size of the rendered text.
212-
public init(content: TextContent, textColor: UIColor?, numberOfLines: Int, lineBreakMode: NSLineBreakMode, size: CGSize) {
212+
public init(content: TextContent, textColor: UIColor? = nil, numberOfLines: Int, lineBreakMode: NSLineBreakMode, size: CGSize) {
213213
self.content = content
214214
self.textColor = textColor
215215
self.numberOfLines = numberOfLines

0 commit comments

Comments
 (0)