== Why is this an issue?

Some global constants can be replaced by struct scoped constants which are preferred.


This rules raises an issue when any of the following substitutions can be made:


||Legacy Constant||Preferred replacement||

|``++CGRectInfinite++``|``++CGRect.infinite++``|

|``++CGPointZero++``|``++CGPoint.zero++``|

|``++CGRectZero++``|``++CGRect.zero++``|

|``++CGSizeZero++``|``++CGSize.zero++``|

|``++NSZeroPoint++``|``++NSPoint.zero++``|

|``++NSZeroRect++``|``++NSRect.zero++``|

|``++NSZeroSize++``|``++NSSize.zero++``|

|``++CGRectNull++``|``++CGRect.null++``|

|``++CGFloat(M_PI)++``|``++CGFloat.pi++``|

|``++Float(M_PI)++``|``++Float.pi++``|


ifdef::env-github,rspecator-view[]

'''
== Implementation Specification
(visible only on this page)

=== Message

Replace this 'xxxx' by 'yyyy'


=== Highlighting

The constant to be replaced


endif::env-github,rspecator-view[]
