I have an extension that creates UIPickerView with following code
extension FirstVC {
    func createPicker() -> UIPickerView {
        let customPicker = UIPickerView(frame: CGRect(x: 0, y: 0, width: 400, height: 216))
        customPicker.backgroundColor = .white
        return customPicker
    }
}
And I have a stored property that is initialized via a closure in my view controller
private var proxyPeoplePicker: UIPickerView {
   return createPicker()
}
I also have 5 more picker view and to prevent duplication I am trying to use below above stored property but it is not working, when I try to get information inside, it always returns me its initial value. What could be the reason of it and how can I prevent code duplication with these picker views?