Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • 1
    FYI this didn't work for me until I moved the color1.setFill() right below the first line in the method UIGraphicsBeginImageContextWithOptions(self.size, false, self.scale). Commented Jun 25, 2015 at 6:33
  • @Aaron Updated based on your comment. Thanks. Commented Jun 26, 2015 at 0:40
  • 7
    @CeceXX use CGBlendMode.Normal instead Commented Jul 24, 2015 at 20:31
  • 2
    You are awesome, however you might need to change it to Swift 3 Commented Feb 25, 2017 at 23:03
  • 1
    @SimpiMind Provided Swift 4 instead. Commented Apr 27, 2018 at 1:28