Skip to content

netsells/NSHyperLabelSwift

Repository files navigation

NSHyperLabelSwift

[![CI Status](http://img.shields.io/travis/Jack Colley/NSHyperLabelSwift.svg?style=flat)](https://travis-ci.org/Jack Colley/NSHyperLabelSwift) Version License Platform

Description

NSHyperLabel is a small utility that enables you to add hyperlinks to a UILabel. You can also specify as many or as little attributes for the links.

A Netsells Project

Example

testLabel.text = "Netsells is a leading digital agency"
testLabel.setLinkForSubstring("Netsells", attributes: testLabel.linkAttributeDefault, url: URL(string: "http://netsells.co.uk")!)

Requirements

iOS 8.0 or greater

Installation

NSHyperLabelSwift is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "NSHyperLabelSwift"

Roadmap for next version

  • Unit Tests
  • Thorough Documentation
  • Better syntax for default attributes

Author

Jack Colley, jack.colley@netsells.co.uk

License

NSHyperLabelSwift is available under the MIT license. See the LICENSE file for more info.