Skip to content

Commit a9f6883

Browse files
committed
Update the unit test to gate iOS 26
1 parent fa01846 commit a9f6883

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

TORoundedButtonExampleTests/TORoundedButtonExampleTests.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ - (void)testDefaultValues
2626
XCTAssertEqual(button.tappedTintColorBrightnessOffset, -0.15f);
2727
XCTAssertEqual(button.tappedButtonScale, 0.97f);
2828

29+
#ifdef __IPHONE_26_0
2930
if (@available(iOS 26.0, *)) {
3031
XCTAssertNotNil(button.cornerConfiguration);
3132
} else {
3233
XCTAssertEqual(button.cornerRadius, 12.0f);
3334
}
35+
#else
36+
XCTAssertEqual(button.cornerRadius, 12.0f);
37+
#endif
3438
}
3539

3640
- (void)testButtonInteraction

0 commit comments

Comments
 (0)