title: How do I pass values into a UIView initializer from a XIB?
body: <p>I have made a custom UIView XIB file with some outlets. I want to be able to load it programmatically from other places in my code. I am using autolayout in the xib. My problem is that I need to initialize it with a parameter value to satisfy a delegate method. I am not sure how to pass the parameter during initialization. I also don't really understand the whole init(frame:) vs init(coder:) and how a convenience init would work here. Any advice? </p>
  
  <p>Background: currently the entire view is programmatic in Obj-C and I am porting it to XIB with swift. </p>