mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 05:40:32 +05:30
16 lines
348 B
Swift
16 lines
348 B
Swift
|
import SwiftUI
|
||
|
|
||
|
extension ShapeStyle where Self == Color {
|
||
|
static var debug: Color {
|
||
|
#if DEBUG
|
||
|
return Color(
|
||
|
red: .random(in: 0 ... 1),
|
||
|
green: .random(in: 0 ... 1),
|
||
|
blue: .random(in: 0 ... 1)
|
||
|
)
|
||
|
#else
|
||
|
return Color(.clear)
|
||
|
#endif
|
||
|
}
|
||
|
}
|