Skip to content

Releases: michaelloistl/ContextLabel

1.5.0 (2018-11-27)

27 Nov 14:35
Compare
Choose a tag to compare

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

27 Feb 12:20
Compare
Choose a tag to compare

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)

11 Feb 15:59
Compare
Choose a tag to compare

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 #.

0.3.1

17 Mar 05:36
Compare
Choose a tag to compare
  • Change TextLink to support the recognition of multiple occurrences #12