mnlcpc / Unsplash-It-Sketch

A plugin to quickly include great looking image from Unsplash.com in your Sketch projects.
421 stars 23 forks source link

Bugfix Sketch Version 40 #18

Closed pedrofigueras closed 7 years ago

pedrofigueras commented 8 years ago

In this new Sketch update, setPatternImage() has been deprecated.

The solution is easy, we have to change the line 50, fill.setPatternImage( imageData ), for fill.setImage([[MSImageData alloc] initWithImage: imageData convertColorSpace: false]);

For the moment, works on the version v40 and higher. This is a fast solution to work with this fantastic plugin.

fhuel commented 7 years ago

Close 'caused solved. Thank you @pedrofigueras and sorry for the absurd delay... completely missed this one 😅