CuteAttribute

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.

CuteAttribute

Support

Swift 3.0 & iOS 8+

Installation

CocoaPods

  • add it to your Podfile.
pod 'CuteAttribute'
Ruby
  • Then run the command.
pod install
Shell
  • Import the header file in your project.
import CuteAttribute
Swift

Carthage

  • Add CuteAttribute to your Cartfile.
github "qiuncheng/CuteAttribute"
Ruby
  • Run the command
carthage update --platform ios
Shell
import CuteAttribute
Swift

Manually

  • Download the full file.
  • Drag the CuteAttribute folder to your project.

TODO

  • [x] Documented.
  • [x] Example.
  • [ ] Test.
  • [ ] More convenience.

GitHub

Latest commit to the undefined branch on unknown
Download as zip