Using Size Classes in IBInspectable properties Using Size Classes in IBInspectable properties ios ios

Using Size Classes in IBInspectable properties


I'm afraid there is no option for IBInspectable properties yet, but you definitely can respond to size class changes via UITraitEnvironment protocol and UIContentContainer protocol that already implemented by UIView and UIViewController (see WWDC 2014, Building Adaptive Apps with UIKit to see more about trait collections and trait environment). The font property seems get handled by Xcode just like the constraints or installed.