1

I have a Custom view that is a subClass of UIView . I want to show its properties on storyBoard Inspector Panel So that it can be edited directly from StoryBoard in future . An Example

class CustomView : UIView {
  // This Property should be editable via StoryBoard
  var Color : UIColor = UIColor().greenColor()

}

1 Answer 1

2

This is how to do it:

http://nshipster.com/ibinspectable-ibdesignable/

class CustomView : UIView {
  @IBInspectable // Add this line
  var Color : UIColor = UIColor().greenColor()
}
Sign up to request clarification or add additional context in comments.

1 Comment

Wow thats it? So Cool Man!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.