I'm running XCode 8.1 and can not get my IBInspectable attributes appearing in Xcode. Any known issues with XCode 8.1 (swift 3) in this area? Or any issues with what I'm trying to do here?
Steps:
- Create a simple IOS app
- Created the following "customControl" class
- In the app storyboard, drag a UIView onto the storyboard, and then change the class type of the "customControl"
- I note XCode going through the "refresh views" stage, however no items get added to the "user defined runtime attributes" area?
Code:
import UIKit
@IBDesignable
class customControl : UIView {
@IBInspectable
var customAttribute: UIColor = UIColor.blue
}