mbogh / NibDesignable

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

Update NibDesignable.swift #17

Open semireg opened 8 years ago

semireg commented 8 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.