UITextview not grabbing text in swift 4.1

Everything worked fine in Swift 3 but I upgrade to Swift 4 yesterday and now some things are broken.

I have the app building but can't get text out of my UITextView.

It is declared:

private var add = UITextView();

Then in a function of viewDidLoad:

add = UITextView(frame: CGRect(x: 10, y: height, width: self.view.bounds.width - 20, height: 126 - height));
    add.font = UIFont.systemFont(ofSize: 16);
    add.autocorrectionType = .no;
    add.backgroundColor = UIColor.clear;
    add.textColor = UIColor.white;
    add.delegate = self;

    add.layer.borderWidth = 1;
    add.layer.borderColor = UIColor.white.cgColor;
    add.layer.cornerRadius = 5;

Then I try to get the text out of it and the debugger says it is add (String) and is empty.

        if (add.text == "")
            let alertsubmit = UIAlertController(title: "Invalid Add", message: "Activities cannot be blank.", preferredStyle: UIAlertControllerStyle.alert);

            alertsubmit.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.default, handler: nil));

            present(alertsubmit, animated: true, completion: nil);
            let uid = UUID().uuidString;
            let date = Date();
            // Gets here but next code is blank and saves a blank to core data
            let addText = add.text!;

            if (save(saves to core data)
                add.text = "";

How do I fix this? Thanks.