You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specifically, we should convert the following operator overloads into methods to improve clarity around what their function is and what type they will return:
-(CGPoint, CGPoint) should be converted to CGPoint.offset(to:)
+(CGPoint, UIOffset) should be converted to CGPoint.offset(by:)
+(CGRect, UIOffset) should be converted to CGRect.offset(by:)
The text was updated successfully, but these errors were encountered:
-(CGPoint, CGPoint) would actually be directly converted to CGPoint.offset(from:), but I think CGPoint.offset(to:) reads better. We could also potentially have both versions available.
Specifically, we should convert the following operator overloads into methods to improve clarity around what their function is and what type they will return:
-(CGPoint, CGPoint)
should be converted toCGPoint.offset(to:)
+(CGPoint, UIOffset)
should be converted toCGPoint.offset(by:)
+(CGRect, UIOffset)
should be converted toCGRect.offset(by:)
The text was updated successfully, but these errors were encountered: