mbogh / NibDesignable

Elegant way of enabling IBDesignable on your nib-based views
MIT License
341 stars 75 forks source link

Update NibDesignable.swift #17

Open semireg opened 9 years ago

semireg commented 9 years ago

Useful for NibDesignable subclasses that rely on the frame/bounds of their subviews being accurate at runtime. For example, using: subview.layer.cornerRadius = subview.frame.size.height / 2.0. This doesn't work correctly without this addition.