Reduce the code using a method
<p>Hello there I'm doing the Udacity nanodegree, I'm working with textFields, but I need to reduce the code using a method that takes UITextField as parameter.
I actually I don't know what the method could be, and I don't have any idea how to reduce the code.
I will let you the code that and hope you can help me</p>

<pre><code>let memeTextAttributes = [
    NSStrokeColorAttributeName : UIColor.blackColor(), NSForegroundColorAttributeName : UIColor.blueColor(), NSFontAttributeName : UIFont(name: "HelveticaNeue-CondensedBlack", size: 40)!, NSStrokeWidthAttributeName : -1.0]

override func viewDidLoad() {
    super.viewDidLoad()

    topText.defaultTextAttributes = memeTextAttributes
    bottomText.defaultTextAttributes = memeTextAttributes
    topText.textAlignment = NSTextAlignment.Center
    bottomText.textAlignment = NSTextAlignment.Center
    shareButton.enabled = false
</code></pre>