Skip to content

Commit 529204d

Browse files
committed
Separate colors in README
1 parent d1073bf commit 529204d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,16 @@ UIColor.greenColor().foregroundAttribute(
4747
### Attributes
4848
The provided attribute functions take the value of the attribute as the first value, and a variadic number of `AttributedStringConvertible` values afterwards. For composition in other functions, versions with a single `[AttributedStringConvertible]` parameter are also provided for all functions.
4949

50-
#### Framework Types
51-
The framework types extended with attribute functions are:
50+
#### Colors
51+
`NSColor` and `UIColor` are extended with these attribute functions:
52+
53+
- `foregroundAttribute`, which maps to `NSForegroundColorAttributeName`.
54+
- `backgroundAttribute`, which maps to `NSBackgroundColorAttributeName`.
55+
- `underlineAttribute`, which maps to `NSUnderlineColorAttributeName`.
56+
57+
#### Other Framework Types
58+
These additional framework types are extended with attribute functions:
5259

53-
- `NSColor`/`UIColor`: `foregroundAttribute`, which maps to `NSForegroundColorAttributeName`; `backgroundAttribute`, which maps to `NSBackgroundColorAttributeName`; and `underlineAttribute`, which maps to `NSUnderlineColorAttributeName`.
5460
- `NSFont`/`UIFont`: `attribute`, which maps to `NSFontAttributeName`.
5561
- `NSTextAttachment`: `attribute`, which maps to `NSAttachmentAttributeName`.
5662
- `NSParagraphStyle`: `attribute`, which maps to `NSParagraphStyleAttributeName`.

0 commit comments

Comments
 (0)