UIView-Borders-Swift
UIView-Borders-Swift copied to clipboard
Fails on rotations
Currently, if the screen is rotated/auto-oriented, this will throw off the borders, and they won't be the correct size anymore.
I noticed the issue too, and it is easily demonstrated using the CALayer backed borders and resizing the target UIView.
It appears UIView backed borders work fine for rotations or resizing.
@aaronn is there a simple technique to move/recreate CALayer-backed borders?
Not as far as I know.