Skip to content
/ AOR Public
forked from xxxAIRINxxx/AOR

Wrapper of NSAttributedString and Text Kit. written in Swift.

License

Notifications You must be signed in to change notification settings

spnkr/AOR

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Wrapper of NSAttributedString and Text Kit. written in Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 96.1%
  • Ruby 2.0%
  • Objective-C 1.9%