Latest | 0.1.2 |
---|---|
Homepage | https://github.com/asyschenko/TouchHandlerLabel |
License | MIT |
Platforms | ios 8.0 |
Authors |
Usage
let label = TouchHandlerLabel()
let simpleTextHandler = SimpleTextTouchHandler(text: "text") { (_, str) in
print("Simple text:", str)
}
label.text = "Test text"
simpleTextHandler.normalColor = UIColor.red
simpleTextHandler.selectedColor = UIColor.red.withAlphaComponent(0.5)
label.add(touchHandler: simpleTextHandler)
More examples you can find in TouchHandlerLabelExample
CocoaPods
pod 'TouchHandlerLabel'
Latest podspec
{ "name": "TouchHandlerLabel", "version": "0.1.2", "homepage": "https://github.com/asyschenko/TouchHandlerLabel", "summary": "Extended UILabel for touch handling text like URL, email e.t.c", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "Aleksandr Syschenko": "[email protected]" }, "platforms": { "ios": "8.0" }, "source": { "git": "https://github.com/asyschenko/TouchHandlerLabel.git", "tag": "0.1.2" }, "source_files": "TouchHandlerLabel/*.{swift}", "swift_version": "4.2" }
Sat, 09 Feb 2019 11:35:11 +0000