Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Replace use of CGRect origin/size with minX/maxX/etc. #82

Open
vicng opened this issue Apr 21, 2016 · 0 comments
Open

Replace use of CGRect origin/size with minX/maxX/etc. #82

vicng opened this issue Apr 21, 2016 · 0 comments

Comments

@vicng
Copy link
Contributor

vicng commented Apr 21, 2016

For simplicity/readability, we should use the Swift extensions for accessing properties of CGRect's, instead of using their raw form.

eg.
view.frame.minX instead of view.frame.origin.x
view.frame.maxX instead of view.frame.origin.x + view.frame.size.width
view.frame.width instead of view.frame.size.width

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant