Skip to content

Commit

Permalink
Make properties of TextRepresentableEnvironment public
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolay Buldkov committed Aug 14, 2023
1 parent 809d966 commit 51ce063
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions Sources/Orbit/Support/Text/TextRepresentable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,30 @@ public protocol TextRepresentable {

/// Environment values required for proper formatting of concatenated Orbit text components.
public struct TextRepresentableEnvironment {
let iconColor: Color?
let iconSize: CGFloat?
let textAccentColor: Color?
let textColor: Color?
let textFontWeight: Font.Weight?
let textSize: CGFloat?
let sizeCategory: ContentSizeCategory

public let iconColor: Color?
public let iconSize: CGFloat?
public let textAccentColor: Color?
public let textColor: Color?
public let textFontWeight: Font.Weight?
public let textSize: CGFloat?
public let sizeCategory: ContentSizeCategory

public init(
iconColor: Color?,
iconSize: CGFloat?,
textAccentColor: Color?,
textColor: Color?,
textFontWeight: Font.Weight?,
textSize: CGFloat?,
sizeCategory: ContentSizeCategory
) {
self.iconColor = iconColor
self.iconSize = iconSize
self.textAccentColor = textAccentColor
self.textColor = textColor
self.textFontWeight = textFontWeight
self.textSize = textSize
self.sizeCategory = sizeCategory
}
}

0 comments on commit 51ce063

Please sign in to comment.