title: UIImageView outlet nil in custom UIView with xib
body: <p>I've created a custom <code>UIView</code> with multiple IBOutlets including a UIImageView, and three <code>UILabel</code>s. Despite setting the image value in the awakeFromNib() function, I'm still getting a nil value for the outlet when attempting to set it. The <code>UIView</code> was constructed using a custom xib file.</p>
  
  <p>I put the set operation in <code>awakeFromNib()</code> so as to assure the outlets had been initialized prior to setting them, yet this failed to help. I'm not sure if it's an issue with the xib file as I've only ever used custom xibs when making a custom table cell, so perhaps the issue is rooted there?</p>
  
  <pre><code>class VotingCard: UIView {
      @IBOutlet weak var proPicImg: UIImageView!
      @IBOutlet weak var nameLabel: UILabel!
      @IBOutlet weak var hometownLabel: UILabel!
      @IBOutlet weak var ratingLabel: UILabel!
  
      var proPic = UIImage()
      var name = ""
      var hometown = ""
      var rating = 0.0
  
      init(pic: UIImage, rush: Rush) {
          proPic = pic
          name = rush.fullName
          hometown = rush.homeTown
          rating = rush.compositeRating
          super.init(frame: CGRect(x: 0, y: 0, width: 250, height: 300))
      }
  
      override func awakeFromNib() {
          proPicImg.image = proPic
          nameLabel.text = name
          hometownLabel.text = hometown
          ratingLabel.text = "\(rating)"
      }
  
      required init?(coder aDecoder: NSCoder) {
          super.init(coder: aDecoder)
      }
  }
  </code></pre>
  
  <p>I should view a simple card with the profile image and respective data visible, yet instead it crashes.</p>