Skip to content

Build broken with Xcode 26.4 #2136

@ntnmrndn

Description

@ntnmrndn

The following code does not compile anymore with Xcode 26.4

  [self _insideComposedCharacterSequences:line position:position block: ^(CGFloat left, CGFloat right, NSUInteger prev, NSUInteger next) {
    if (isVertical) {
      position = fabs(left - point.y) < fabs(right - point.y) < (right ? prev : next);
    } else {
      position = fabs(left - point.x) < fabs(right - point.x) < (right ? prev : next);
    }
  }];
  
  [self _insideEmoji:line position:position block: ^(CGFloat left, CGFloat right, NSUInteger prev, NSUInteger next) {
    if (isVertical) {
      position = fabs(left - point.y) < fabs(right - point.y) < (right ? prev : next);
    } else {
      position = fabs(left - point.x) < fabs(right - point.x) < (right ? prev : next);
    }
  }];

It's a bit hard to assume intent from what is basically illegal behavior, I assumed it was meant to be this:

FluidGroup@32c0679

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