title: Swift @IBDesignable - @IBInspectable multiple variables
body: <p>I am trying to create a custom class for <code>UILabel</code> so I can see the result from the Storyboard. I need to change the text attributes in order to create an outline label.</p>
  
  <p>With the code I have so far I can manage to do this however I can only add one variable. </p>
  
  <p>If I had multiple <code>var</code> I get the following errors.</p>
  
  <pre><code>&gt; 'var' declarations with multiple variables cannot have explicit
  &gt; getters/setters 'var' cannot appear nested inside another 'var' or
  &gt; 'let' pattern Getter/setter can only be defined for a single variable
  </code></pre>
  
  <p>How can I use multiple variables?
  CODE:</p>
  
  <pre><code>import UIKit
  
  @IBDesignable
  class CustomUILabel: UILabel {
      @IBInspectable var outlineWidth: CGFloat = 1.0, var outlineColor = UIColor.whiteColor() {
          didSet {
  
  
                  let strokeTextAttributes = [
                      NSStrokeColorAttributeName : outlineColor,
                      NSStrokeWidthAttributeName : -1 * outlineWidth,
                      ]
  
                  self.attributedText = NSAttributedString(string: self.text ?? "", attributes: strokeTextAttributes)
  
          }
      }
  
  
  
  }
  </code></pre>