Skip to content

Releases: zacwest/ZSWTappableLabel

Add Swift Package Manager support

12 Aug 02:40
53ab6fc
Compare
Choose a tag to compare

This version only adds Swift Package Manager support.

Fix an iOS 12 regression

21 Apr 00:10
Compare
Choose a tag to compare
  • Fixes a regression in 3.3 which caused a crash on iOS 12. Turns out that availability flag for lineBreakStrategy only works on iOS 13+!

Fix a couple bugs

02 Apr 21:44
Compare
Choose a tag to compare
  • Fixes tappability of regions relocated to a new line to avoid single-word last lines by UILabel. This requires compiling using Xcode 12, but works backwards-compatibly.
  • Fixes accessibility elements sometimes exposing more than 1 element per tappable span.

Fix accessibility activation in some cases

17 Apr 20:53
Compare
Choose a tag to compare
  • Fixes handling accessibility element activation that spans multiple lines.

Fix accessibility elements, add accessibilityLabel override

03 May 18:58
Compare
Choose a tag to compare
  • Adds accessibilityDelegate method to override accessibilityLabel of constituent elements.
  • Fixes accessibility elements not resetting when text changed.

Improved accessibility, 3D Touch support

24 Apr 07:19
Compare
Choose a tag to compare
  • Updates touch handling, improving the long-press experience and adding support for 3D Touch.
  • Introduces an accessibility delegate, to provide actions for links within the label.
  • Adds the ability to get attributes at a point, particularly for use with 3D Touch.
  • Updated examples for Xcode 10.2 and Swift 5 (the pod itself did not need updates).
  • Fixes long press delegate call not being invoked unless there was a foreground or background highlight state.
  • Fixes not handling adjustsFontForContentSizeCategory. Note that you do need to specify a NSFontAttributeName attribute for this to work, even on vanilla UILabel, when you are setting attributedText.
  • Now requires iOS 10 or later, specifically for -[UIAccessibilityElement accessibilityFrameInContainerSpace].

Xcode 9 support

16 Oct 22:14
Compare
Choose a tag to compare

Updated to support Xcode 9 and Swift 4.

Small bug fix

12 May 21:33
Compare
Choose a tag to compare
  • Fixes some cases where the last line in a label, when sized to fit, would not be tappable on iOS 10.

Long-press support

20 Dec 22:56
Compare
Choose a tag to compare
  • Long press support: set a longPressDelegate (like tapDelegate) and be notified when the user long-presses.

Swift and Interface Builder happiness

06 Dec 03:08
Compare
Choose a tag to compare
  • Adds annotations for nullability and generics to ease Swift import.
  • Fixes a couple Interface Builder issues:
    • Flag the delegate as an IBOutlet so it can be assigned.
    • Fix text being cleared/unset if only set via the IB editor.
  • Fixes text alignments other than left set on the label rather than via NSParagraphStyle.
  • Fixes VoiceOver element positions when placed inside a UIScrollView.