Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions Sources/MarqueeLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2009,14 +2009,6 @@ fileprivate extension UILabel {
// Calculate the expected size
var expectedLabelSize = self.sizeThatFits(maximumLabelSize)

#if os(tvOS)
// Sanitize width to 16384.0 (largest width a UILabel will draw on tvOS)
expectedLabelSize.width = min(expectedLabelSize.width, 16384.0)
#else
// Sanitize width to 5461.0 (largest width a UILabel will draw on an iPhone 6S Plus)
expectedLabelSize.width = min(expectedLabelSize.width, 5461.0)
#endif

// Adjust to own height (make text baseline match normal label)
expectedLabelSize.height = bounds.size.height
return expectedLabelSize
Expand Down