Skip to content

Truncated “More” link in Korean when lineBreakStrategy = .hangulWordPriority is enabled #97

@4dmoonlight

Description

@4dmoonlight

Issue:

When using Korean (ko) localization, and applying an NSAttributedString with NSParagraphStyle.lineBreakStrategy = .hangulWordPriority, the “More” link (e.g. "더 보기") at the end of the collapsed text does not render fully. Only the first part ("더") is displayed, and the rest ("보기") is cut off.

This issue seems specific to the hangulWordPriority line breaking strategy, which attempts to avoid breaking compound Hangul words inappropriately. However, in this context, it appears to interfere with the collapsed label logic, miscalculating available space for the link.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions