How to pass a string value from a class to another on the same viewcontroller (Swift) : I have created a viewcontroller which consists of two classes. These are displayed below:

    import UIKit
    class ViewController: UIViewController {
       var colour:String?
       override func viewDidLoad() {
        super.viewDidLoad()
       }
    }
    class TestView: UIView {
       
    }

my question is how can I pass the colour variable to the TestView class.