File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Sources/SparrowKit/UIKit/Extensions Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -32,21 +32,23 @@ public extension UIColor {
3232 - parameter light: Color for light interface style.
3333 - parameter dark: Color for dark interface style.
3434 */
35- #if !os(watchOS) && !os(tvOS)
35+ #if !os(watchOS)
3636 convenience init ( light: UIColor , dark: UIColor ) {
3737 if #available( iOS 13 . 0 , tvOS 13 . 0 , * ) {
3838 self . init ( dynamicProvider: { $0. userInterfaceStyle == . dark ? dark : light } )
3939 } else {
4040 self . init ( cgColor: light. cgColor)
4141 }
4242 }
43+ #endif
4344
4445 /**
4546 SparrowKit: Create color for interface levels.
4647
4748 - parameter baseInterfaceLevel: Color for basic interface level.
4849 - parameter elevatedInterfaceLevel: Color for elevated interface level.
4950 */
51+ #if !os(watchOS) && !os(tvOS)
5052 convenience init ( baseInterfaceLevel: UIColor , elevatedInterfaceLevel: UIColor ) {
5153 if #available( iOS 13 . 0 , tvOS 13 . 0 , * ) {
5254 self . init { traitCollection in
You can’t perform that action at this time.
0 commit comments