An elegant way to deal with attributed string in swift. It's convenient to create attributed string by .cute
, whatever from String
, NSString
, NSAttributedString
or NSMutableAttributedString
. It's so amazing that almost all methods support chaining
. I create this project just because I met Typeset serveral days ago. But I found it's so hard to use by swift. So I made this. Thanks Typeset by Draveness.
Swift 3.0 & iOS 8+
- add
pod 'CuteAttribute'
to your Podfile. - Run
pod install
ORpod update
. import CuteAttribute
- Add CuteAttribute to your Cartfile. e.g.,
github "qiuncheng/CuteAttribute"
- Run
carthage update --platform ios
- Follow the rest of the standard Carthage installation instructions to add CuteAttribute to your project.
import CuteAttribute
- Download the full file.
- Drag the CuteAttribute folder to your project.
- Documented.
- Example.
- Test.
- More convenience.
Typeset : Deal with AttributedString efficiently in Objective-C
.
Under MIT License