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

Attributes 0.0.16

Attributes 0.0.16

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jan 2018
SwiftSwift Version 4
SPMSupports SPM

Maintained by Kwanghoon Choi.



Attributes 0.0.16

  • By
  • Kwanghoon Choi

Attributes

NSAttributedString utility wrapper library

Getting Started

Using

let hello: NSAttributedString = "Hello".attributes.with(attributes: .foreground(.red) + .background(.yellow))
let hello2: NSAttributedString = "Hello".attributes.foreground(.red).background(.yellow)
let hello3: NSAttributedString = "Hello".attributes.foreground(.red).background(.black)
let hello4: NSAttributedString = "Hello".attributes.font(.systemFont(ofSize: 18, weight: .medium))
let hello5: NSAttributedString = "Hello".attributes.strikethrough(.styleSingle)

Installing

Cocoapods

target 'MyApp' do
	pod 'Attributes'
end

Then run a pod install inside your terminal, or from CocoaPods.app.

Authors

  • Kwanghoon Choi - individual - rollmind

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

  • Hat tip to anyone who's code was used
  • Inspiration
  • etc