Attributed aims to be a drop in replacement to the current version of the NSAttributedString API.
The NSAttributedString interface has a few shortcomings. If you donʼt know the key and type of value needed to set a certain attribute, you have to spend time checking documentation. Another concern is safety: passing a dictionary of type [String: Any] to the constructor of NSAttributedString is a potential crash at runtime waiting to happen.
Attributed provides developers a nicer alternative by extending the current NSAttributedString interface with a fluent, strongly typed, and easy to use API.
Features:
- Create NSAttributedString instances with a strongly typed, simple, and fluid interface
- Combine NSAttributedStrings with +
- Partially apply Attributes to parts of an NSAttributedString by providing a Range
