I am taking a reference to a VC in app delegate and using a UIColorPickerController extension with the following code, I'm setting this VC as a delegate to the picker. I need to take these lengthy steps because there is no reference to the picker that a UIColorWell displays!
This way, I can set the background color of the VC while the user selects different colors from picker, one after another. This is the give a live effect or color change.
However, I dont see this happening. The delegate is not being called.
Any help?
import Foundation
import UIKit
extension UIColorPickerViewController{
open override func viewDidLoad() {
super.viewDidLoad()
let appDelegate = UIApplication.shared.delegate as! AppDelegate
delegate = appDelegate.addOrEditVC
}
}```