A drop-in replacement for UILabel, which automatically adds a scrolling marquee effect when the label's text does not fit inside the specified frame
Note that MarqueeLabel probably still supports older iOS versions than 12.0, but you might have do some manually import the library instead of using Cocoapods (or do some trickery with your own project Podfile).
Full Changelog: https://github.com/cbpowell/MarqueeLabel/compare/4.4.0...4.5.0
triggerScrollStart
wouldn't override a holdScrolling
condition (PR #289)textCoordForFramePoint
function, which converts a point in a MarqueeLabel's frame coordinate system to a point in the scrolling label's coordinate system. It could be useful for determining the word or character under a user tap point, as now demonstrated in the demo project here. (thanks to @LucaGaspa for the feature request!)animationPosition
property that describes the position of the scroll animation (can be queried while the animation is in-progress). (thanks to @alexandre-odet for the suggestion!)labelReturnedToHome()
function was not being called in some cases, particularly if the scroll animation was interrupted by a frame resize (thanks to @alexandre-odet for helping to bring it to my attention!)forcedScrolling
property to trigger the scrolling animation, even if the label text is shorter than the specified frame. Note - there may be weird edge cases when using this! (thanks @hariseldon78 for PR #148….merged after 5 years!)adjustsFontSizeToWidth
and minimumScaleFactor
and avoid scrolling by shrinking the font size instead. (down to the scale you specify!). See the Special Note here. Thanks @vladkorotnev!