Skip to content

Commit bc10fd3

Browse files
committed
Add (semi-depreciation) warning about colors parser in playground page
1 parent 5ffbdfd commit bc10fd3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SwiftGen.playground/Pages/Colors-Demo.xcplaygroundpage/Contents.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
//: * [Demo for `yaml` parser](YAML-Demo)
1212

1313
//: #### Example of code generated by `colors` parser with "literals-swift4" template
14+
//: - Note: The `colors` parsers is primarily aimed to parse Android `colors.xml` files and text files.
15+
//: In most cases, you should prefer defining your colors in asset catalogs – as those support multiple variants for light/dark mode, P3 colorspace, and more – and use the `xcassets` parser instead to generate constants for those colors.
1416

1517
#if os(OSX)
1618
import AppKit

0 commit comments

Comments
 (0)