-
Couldn't load subscription status.
- Fork 0
legacy_nsgeometry_functions
Ian Applebaum edited this page Jun 13, 2020
·
1 revision
Struct extension properties and methods are preferred over legacy functions
- Identifier: legacy_nsgeometry_functions
- Enabled by default: Enabled
- Supports autocorrection: Yes
- Kind: idiomatic
- Analyzer rule: No
- Minimum Swift compiler version: 3.0.0
- Default configuration: warning
rect.widthrect.heightrect.minXrect.midXrect.maxXrect.minYrect.midYrect.maxYrect.isEmptyrect.integralrect.insetBy(dx: 5.0, dy: -7.0)rect.offsetBy(dx: 5.0, dy: -7.0)rect1.union(rect2)rect1.intersect(rect2)rect1.contains(rect2)rect.contains(point)rect1.intersects(rect2)↓NSWidth(rect)↓NSHeight(rect)↓NSMinX(rect)↓NSMidX(rect)↓NSMaxX(rect)↓NSMinY(rect)↓NSMidY(rect)↓NSMaxY(rect)↓NSEqualRects(rect1, rect2)↓NSEqualSizes(size1, size2)↓NSEqualPoints(point1, point2)↓NSEdgeInsetsEqual(insets2, insets2)↓NSIsEmptyRect(rect)↓NSIntegralRect(rect)↓NSInsetRect(rect, 10, 5)↓NSOffsetRect(rect, -2, 8.3)↓NSUnionRect(rect1, rect2)↓NSIntersectionRect(rect1, rect2)↓NSContainsRect(rect1, rect2)↓NSPointInRect(rect, point)↓NSIntersectsRect(rect1, rect2)