https://github.com/netsells/nshyperlabelswift
https://github.com/netsells/nshyperlabelswift
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/netsells/nshyperlabelswift
- Owner: netsells
- License: mit
- Created: 2016-07-20T10:49:00.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-09-11T13:59:00.000Z (over 4 years ago)
- Last Synced: 2025-03-02T23:46:16.945Z (2 months ago)
- Language: Shell
- Size: 58.6 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NSHyperLabelSwift
[](https://travis-ci.org/Jack Colley/NSHyperLabelSwift)
[](http://cocoapods.org/pods/NSHyperLabelSwift)
[](http://cocoapods.org/pods/NSHyperLabelSwift)
[](http://cocoapods.org/pods/NSHyperLabelSwift)## 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
```swift
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
## InstallationNSHyperLabelSwift is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "NSHyperLabelSwift"
```## Roadmap for next version
- [ ] Unit Tests
- [ ] Thorough Documentation
- [ ] Better syntax for default attributes## Author
Jack Colley, [email protected]
## License
NSHyperLabelSwift is available under the MIT license. See the LICENSE file for more info.