luvmex / Sketch-Guides

Add Guides to edges and midpoints at once.
85 stars 7 forks source link

Make the plugin compatible with Sketch 99 #11

Open rodionovd opened 8 months ago

rodionovd commented 8 months ago

Made a few changes to make it work on Sketch 99 and the upcoming 100 (currently in beta):

  1. MSLayer.absoluteRect is no longer available, but could be re-implemented via MSLayer.convertRect:toCoordinateSpace:.
  2. NSRulerData methods around adding/removing guides were renamed internally.

Resolves #10

instanttim commented 8 months ago

I just pulled these into my fork as well, but note that the version and compatibility data in the manifest wasn't updated.

-  "version": "2.5.2",
+  "version": "2.5.3",

-  "compatibleVersion": "42",
+  "compatibleVersion": "99.5",