Releases: michaelloistl/ContextLabel
Releases · michaelloistl/ContextLabel
1.5.0 (2018-11-27)
This release adds full support for Swift 4.2 thanks to @teameh
Breaking Changes
didCopy: (String?) -> Void
, text value is now optional.contextLabel(_ sender: ContextLabel, didCopy text: String?)
, text value is now optional.
1.4.0
Breaking Changes
- Remove textAttachment delegates
func contextLabel(_ sender: ContextLabel, colorForTextAttachment textAttachment: NSTextAttachment) -> UIColor
func contextLabel(_ sender: ContextLabel, prefixForTextAttachment textAttachment: NSTextAttachment) -> String
func contextLabel(_ sender: ContextLabel, suffixForTextAttachment textAttachment: NSTextAttachment) -> String
- Remove textAttachment closures
var textAttachmentColor: (NSTextAttachment) -> UIColor
var textAttachmentPrefix: (NSTextAttachment) -> String
var textAttachmentSuffix: (NSTextAttachment) -> String
Enhancements
- Add link type .phoneNumber
1.2.0 Release notes (2017-02-11)
Breaking Changes
didTouch: (TouchResult) -> Void
is now called through out the touch cycle. TouchResult.linkresult is nil when touch on label but not on link.
Enhancements
- Add optional object to TextLink struct.
Bugfixes
- Fix issue where entire text would show in text color of hashtag when first character #.