CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

AOR 1.5.0

AOR 1.5.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Mar 2019
SPMSupports SPM

Maintained by airin.



AOR 1.5.0

  • By
  • Airin

AOR

Version Swift 5.0 Platforms iOS Xcode 10.2

screen_shot

Wrapper of NSAttributedString and Text Kit. written in Swift.

Exsample

Basics

basics

Multiple Attributes

multiple

Adding Attributes

adding

Adding Attributes (Custom Operator)

adding_operator

Paragraph

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.