diff options
Diffstat (limited to 'platform/ios/test/MGLMapViewScaleBarTests.m')
-rw-r--r-- | platform/ios/test/MGLMapViewScaleBarTests.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/test/MGLMapViewScaleBarTests.m b/platform/ios/test/MGLMapViewScaleBarTests.m index 11d1187263..50864beb4d 100644 --- a/platform/ios/test/MGLMapViewScaleBarTests.m +++ b/platform/ios/test/MGLMapViewScaleBarTests.m @@ -35,7 +35,7 @@ XCTAssertFalse(scaleBar.hidden); // Scale bar should not be visible at default zoom (~z0), but it should be ready. - XCTAssertFalse(CGRectIsEmpty(scaleBar.frame)); + XCTAssertFalse(CGSizeEqualToSize(scaleBar.intrinsicContentSize, CGSizeZero)); XCTAssertEqual(scaleBar.alpha, 0); self.mapView.zoomLevel = 15; @@ -49,7 +49,7 @@ XCTAssertFalse(scaleBar.hidden); // Directly setting `.hidden` after the map has finished initializing will not update the scale bar. - XCTAssertTrue(CGRectIsEmpty(scaleBar.frame)); + XCTAssertTrue(CGSizeEqualToSize(scaleBar.intrinsicContentSize, CGSizeZero)); // ... but triggering any camera event will update it. self.mapView.zoomLevel = 1; |