Skip to content

Commit

Permalink
Reset to default font resize settings when scrolling will happen
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpowell committed Jun 16, 2021
1 parent 4923823 commit b2bfdd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/MarqueeLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,10 @@ open class MarqueeLabel: UILabel, CAAnimationDelegate {

// Label DOES need to scroll

// Reset font scaling to off for scrolling
sublabel.adjustsFontSizeToFitWidth = false
sublabel.minimumScaleFactor = 0.0

// Spacing between primary and second sublabel must be at least equal to leadingBuffer, and at least equal to the fadeLength
let minTrailing = max(max(leadingBuffer, trailingBuffer), fadeLength)

Expand Down

0 comments on commit b2bfdd6

Please sign in to comment.