From 92d65f0d5e8b1ec0bf4363799cfe9556948462cc Mon Sep 17 00:00:00 2001 From: Lukas Lipka Date: Tue, 5 Jul 2022 15:28:21 +0200 Subject: [PATCH] Make dynamic color initializers public. --- Sources/Color/Color+Dynamic.swift | 2 +- Sources/Color/UIColor+Dynamic.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Color/Color+Dynamic.swift b/Sources/Color/Color+Dynamic.swift index c30784b..2366d7a 100644 --- a/Sources/Color/Color+Dynamic.swift +++ b/Sources/Color/Color+Dynamic.swift @@ -1,7 +1,7 @@ import SwiftUI @available(iOS 14.0, *) -extension Color { +public extension Color { init( light lightColor: @escaping @autoclosure () -> Color, dark darkColor: @escaping @autoclosure () -> Color diff --git a/Sources/Color/UIColor+Dynamic.swift b/Sources/Color/UIColor+Dynamic.swift index 3d633f3..8e5872d 100644 --- a/Sources/Color/UIColor+Dynamic.swift +++ b/Sources/Color/UIColor+Dynamic.swift @@ -1,7 +1,7 @@ import UIKit @available(iOS 13.0, *) -extension UIColor { +public extension UIColor { convenience init( light lightColor: @escaping @autoclosure () -> UIColor, dark darkColor: @escaping @autoclosure () -> UIColor