title: UIPickerView setter in Swift
body: <p>I am trying to write a setter method for UIPickerView which will be created from my IBOutLet. In Objective C it was pretty straight forward but in Swift it has changed a bit. The setter method never gets executed.</p>
  
  <p>My Current implementation in swift: </p>
  
  <pre><code>class PickerController: NSObject, UIPickerViewDataSource, UIPickerViewDelegate {
  
  @IBOutlet var pickerView: UIPickerView!
  
  var _pickerView: UIPickerView! {
  
      get {
          return self._pickerView
      }
      set {
          self.pickerView = _pickerView
          self.pickerView.delegate = self
          self.pickerView.dataSource = self
          self.pickerView.reloadAllComponents()
      }
  }
  </code></pre>
  
  <p>But if I do in Objective C following method can be declared on the outlet.</p>
  
  <pre><code>- (void)setPickerView:(UIPickerView *)pickerView {
     _pickerView = pickerView;
     _pickerView.delegate = self;
     _pickerView.dataSource = self;
     [_pickerView reloadAllComponents];
  }
  </code></pre>
  
  <p>How can I achieve the setter method in Swift ? </p>