CPLabel 0.1.6

CPLabel 0.1.6

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2018
SPMSupports SPM

Maintained by HariKrishna.



CPLabel 0.1.6

  • By
  • Hari Krishna

CPLabel

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

Requirements

  • ARC
  • iOS8

Installation

CPLabel is available through CocoaPods.

For latest release in cocoapods

## for swift 2.3 use:
pod 'CPLabel', '~> 0.1.4'

## for swift 3.0 use:
pod 'CPLabel', '~> 0.1.5'

## for swift 4.0 use:
pod 'CPLabel', '~> 0.1.6'

Usage

storyboard:

  • Drag UITextView and change the Custom Class Name to CPLabel in Identity Inspector
  • import the module [import CPLabel] in the class where we use CPLabel.
  • give theOutlet from storyboard

Example

import CPLabel

class ViewController: UIViewController {
    @IBOutlet weak var textLabel: CPLabel?
    override func viewDidLoad() {
        super.viewDidLoad()
        
        
        self.textLabel?.text = "\n\n\nHello World 1234567890 [email protected] "
    }
}

Feature

  • Use it like UiLable with Extra Features Like:

  • Copy the label text

  • recognize Pnone numbers, emailIDs, lookups etc..

  • long press selected text to give options like lookUp, email, send message, add to contact, copy and call..

Author

Hari Krishna, [email protected]

License

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