@@ -35,8 +35,8 @@ typealias DynamicSchemeValue<T> = (DynamicScheme) -> T
35
35
/// `DynamicScheme` and returns a value. This ensures ultimate flexibility, any
36
36
/// desired behavior of a color for any design system, but it usually
37
37
/// unnecessary. See the default constructor for more information.
38
- class DynamicColor {
39
- let name : String
38
+ public class DynamicColor {
39
+ public let name : String
40
40
let palette : DynamicSchemeValue < TonalPalette >
41
41
let tone : DynamicSchemeValue < Double >
42
42
let isBackground : Bool
@@ -107,7 +107,7 @@ class DynamicColor {
107
107
/// - Parameter scheme: Defines the conditions of the user interface, for example,
108
108
/// whether or not it is dark mode or light mode, and what the desired contrast level is.
109
109
/// - Returns: The color as an integer (ARGB).
110
- func getArgb( _ scheme: DynamicScheme ) -> Int {
110
+ public func getArgb( _ scheme: DynamicScheme ) -> Int {
111
111
return getHct ( scheme) . toInt ( )
112
112
}
113
113
@@ -116,7 +116,7 @@ class DynamicColor {
116
116
/// contrast level is.
117
117
/// - Returns: a color, expressed in the HCT color space, that this
118
118
/// `DynamicColor` is under the conditions in `scheme`.
119
- func getHct( _ scheme: DynamicScheme ) -> Hct {
119
+ public func getHct( _ scheme: DynamicScheme ) -> Hct {
120
120
if let cachedAnswer = _hctCache [ scheme] {
121
121
return cachedAnswer
122
122
}
0 commit comments