Swift set height get height!

When making a somewhat complicated iOS app you may need to change the width or height of a UIView. At times we also need to set a new value for the x position or the y position.

I created some methods to add functionality to class UIView.  I have wanted this extension for so long, but Apple have failed to deliver.



Easy? Yeh! See the extension below.




Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s