I am trying to translate my objective C code to Swift and I have this working in Objective C. I would like to run a method called "doneEnteringText" when the user hits return on the keyboard that appears from tapping on a certain text field. Here is the objective C code which works perfectly:

```
    [_nameTextField addTarget:self action:@selector(doneEnteringText) forControlEvents:UIControlEventEditingDidEndOnExit];

```

Here is my swift translation:

```
nameTextField.addTarget(self, action: doneEnteringText(), forControlEvents: UIControlEvents.EditingDidEndOnExit)

```

When I try to compile the Swift code, I get an error saying that I "cannot invoke addTarget with an argument of list type....
Any idea why? Any help would be awesome!