Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit a914e3c

Browse files
committed
Change visibleSizeRange to return a range with 0 location and length
1 parent e3801cf commit a914e3c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

AsyncDisplayKit/TextKit/ASTextKitRenderer.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ - (NSRange)firstVisibleRange
272272
return visibleRanges[0];
273273
}
274274

275-
return NSMakeRange(NSNotFound, 0);
275+
return NSMakeRange(0, 0);
276276
}
277277

278278
@end

AsyncDisplayKitTests/ASTextKitTruncationTests.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ - (void)testHandleZeroSizeConstrainedSize
152152
avoidTailTruncationSet:nil];
153153
XCTAssertNoThrow([tailTruncater truncate]);
154154
XCTAssert(tailTruncater.visibleRanges.size() == 0);
155-
NSEqualRanges(NSMakeRange(NSNotFound, 0), tailTruncater.firstVisibleRange);
155+
NSEqualRanges(NSMakeRange(0, 0), tailTruncater.firstVisibleRange);
156156
}
157157

158158
- (void)testHandleZeroHeightConstrainedSize

0 commit comments

Comments
 (0)