Latest 1.5.0
Homepage https://github.com/xxxAIRINxxx/AOR
License MIT
Platforms ios 10.0, requires ARC
Authors

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.

Latest podspec

{
    "name": "AOR",
    "version": "1.5.0",
    "summary": "Wrapper of NSAttributedString and Text Kit. written in Swift.",
    "homepage": "https://github.com/xxxAIRINxxx/AOR",
    "license": "MIT",
    "authors": {
        "Airin": "[email protected]"
    },
    "source": {
        "git": "https://github.com/xxxAIRINxxx/AOR.git",
        "tag": "1.5.0"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "Sources/*.swift"
}

Pin It on Pinterest

Share This