title: 'CGPointMake' is unavailable in swift
body: <p>I have a Gradient class which I am trying to convert to Swift 3 but I get the following error</p>
  
  <blockquote>
    <p>'CGPointMake' is unavailable in swift</p>
  </blockquote>
  
  <p>for </p>
  
  <pre><code>func configureGradientView() {
  
      let color1 = topColor ?? self.tintColor as UIColor
      let color2 = bottomColor ?? UIColor.black as UIColor
      let colors: Array &lt;AnyObject&gt; = [ color1.cgColor, color2.cgColor ]
      let layer = self.layer as! CAGradientLayer
  
      layer.colors = colors
      layer.startPoint = CGPointMake(startX, startY)
      layer.endPoint = CGPointMake(endX, endY)
  }
  </code></pre>
  
  <p>Can anyone help me out with what I can use instead of <code>CGPointMake</code> </p>
  
  <p>Here's the full class; </p>
  
  <pre><code>@IBDesignable public class XGradientView: UIView {
  
  @IBInspectable public var topColor: UIColor? {
      didSet {
          configureGradientView()
      }
  }
  @IBInspectable public var bottomColor: UIColor? {
      didSet {
          configureGradientView()
      }
  }
  @IBInspectable var startX: CGFloat = 0.0 {
      didSet{
          configureGradientView()
      }
  }
  @IBInspectable var startY: CGFloat = 1.0 {
      didSet{
          configureGradientView()
      }
  }
  @IBInspectable var endX: CGFloat = 0.0 {
      didSet{
          configureGradientView()
      }
  }
  @IBInspectable var endY: CGFloat = 0.0 {
      didSet{
          configureGradientView()
      }
  }
  
  public class func layeredClass() -&gt; AnyClass {
      return CAGradientLayer.self
  }
  
  public required init(coder aDecoder: NSCoder) {
      super.init(coder: aDecoder)!
      configureGradientView()
  }
  
  override init(frame: CGRect) {
      super.init(frame: frame)
      configureGradientView()
  }
  
  public override func tintColorDidChange() {
      super.tintColorDidChange()
      configureGradientView()
  }
  
  func configureGradientView() {
  
      let color1 = topColor ?? self.tintColor as UIColor
      let color2 = bottomColor ?? UIColor.black as UIColor
      let colors: Array &lt;AnyObject&gt; = [ color1.cgColor, color2.cgColor ]
      let layer = self.layer as! CAGradientLayer
  
      layer.colors = colors
      layer.startPoint = CGPointMake(startX, startY)
      layer.endPoint = CGPointMake(endX, endY)
  }
  }
  </code></pre>