AOR
Wrapper of NSAttributedString and Text Kit. written in Swift.
Exsample
Basics
Multiple Attributes
Adding Attributes
Adding Attributes (Custom Operator)
Paragraph
Text Kit Support
Line Count
AOR("any....").lineCount(self.textView.size) // -> Int
Line of Rect
AOR("any....").lineRects(self.textView.size) // -> [CGRect]
Line of Range
AOR("any....").lineRanges(self.textView.size) // -> [NSRange]
Line of String
AOR("any....").lineStrings(self.textView.size) // -> [String]
AOR("any....").lineAttributedStrings(self.textView.size) // -> [NSAttributedString]
Requirements
- Xcode 10+
OS | Swift | |
---|---|---|
v1.1.0 | iOS 9+ | 3.0 |
v1.2.x | iOS 9+ | 3.2 |
v1.3.x | iOS 9+ | 4.0 |
v1.4.x | iOS 9+ | 4.2 |
v1.5.x | iOS 10+ | 5.0 |
Installation
CocoaPods
AOR is available through CocoaPods. To install it, simply add the following line to your Podfile:
use_frameworks!
pod "AOR"
Carthage
To integrate AOR into your Xcode project using Carthage, specify it in your Cartfile:
github "xxxAIRINxxx/AOR"
License
MIT license. See the LICENSE file for more info.