Skip to content

Remove Width Limit#304

Open
tjdrhs90 wants to merge 1 commit intocbpowell:masterfrom
tjdrhs90:master
Open

Remove Width Limit#304
tjdrhs90 wants to merge 1 commit intocbpowell:masterfrom
tjdrhs90:master

Conversation

@tjdrhs90
Copy link
Copy Markdown

@tjdrhs90 tjdrhs90 commented Mar 5, 2026

Problem

Labels with long text were being truncated with "..." due to
hardcoded width limits applied to all platforms:

  • tvOS: 16384.0
  • iOS: 5461.0 (based on iPhone 6S Plus)

These limits cause incorrect truncation when the label's content
exceeds the hardcoded maximum width.

Solution

Removed the platform-specific width sanitization block entirely,
allowing expectedLabelSize to reflect the true content width
without artificial limits.

Changes

  • Removed #if os(tvOS) / #else / #endif width cap block
    in MarqueeLabel.swift

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant