title: Struggling to show data in a label between custom classes and the view controller
body: <p>This is in my viewController</p>
  
  <pre><code>import UIKit
  import SnapKit
  
  class ViewController: UIViewController {
  
  
  
  var numberInCircleView: NumberInCircleView!
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
  }
  
  override func viewWillAppear(_ animated: Bool) {
      super.viewWillAppear(animated)
  
      self.setupViews()
  }
  
  func setupViews() {
  
      self.numberInCircleView = NumberInCircleView(frame: .zero)
      self.view.addSubview(self.numberInCircleView)
      self.numberInCircleView.snp.makeConstraints { (make) in
  
          make.leading.equalTo(20)
          make.bottom.equalTo(-40)
          make.width.equalTo(60)
          make.height.equalTo(60)
      }
      self.numberInCircleView.numberLabel = 5
  }
  
  }
  </code></pre>
  
  <p>The following is in my custom class.</p>
  
  <pre><code>import Foundation
  import UIKit
  
  class NumberInCircleView: UIView {
  
  
  
   var numberLabel: UILabel!
  
  
  
  
  override init(frame: CGRect) {
      super.init(frame: frame)
  
      self.setupViews()
  }
  
  required init?(coder aDecoder: NSCoder) {
      super.init(coder: aDecoder)
  
      self.setupViews()
  }
  
  
  func setupViews() {
  
  
      self.numberLabel = UILabel(frame: .zero)
      self.addSubview(self.numberLabel)
      self.numberLabel.snp.makeConstraints { (make) in
          make.edges.equalToSuperview()
      }
  
      self.layer.cornerRadius = 30
      self.backgroundColor = UIColor.red
      self.layer.borderWidth = 1
      self.layer.borderColor = UIColor.black.cgColor
      self.numberLabel.text = ""
      self.numberLabel.textAlignment = .center
      self.numberLabel.textColor = UIColor.white
      self.numberLabel.adjustsFontSizeToFitWidth = true
      self.numberLabel.minimumScaleFactor = 0.5
  }
  </code></pre>
  
  <p>This line in my ViewController</p>
  
  <pre><code>    self.numberInCircleView.numberLabel = 5
  </code></pre>
  
  <p>Should set the label as 5. I'm not sure how I call between views to do this? Could you please advise? Some online tutorials that offer me more info on this would be much appreciated too.</p>