Skip to content

Commit bfb0abf

Browse files
committed
Add kind-of depracation notice to SSYVectorImages
1 parent cb6d725 commit bfb0abf

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

SSYVectorImages.h

+9-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,15 @@ typedef enum SSYVectorImageStyles_enum SSYVectorImageStyle ;
9393
and inset parameters. It's a todo. UPDATE: Actually I will never DO this
9494
TODO, because…
9595
96-
This class should not be used for new designs deployed to macOS 10.15 or iOS
97-
13 or later. Use Apple's SF Symbols instead.
96+
This class should maybe not be initially used for new designs deployed to
97+
macOS 10.15 or iOS 13 or later. Consider using Apple's SF Symbols instead.
98+
Unfortunately it is a lot more complicated. For example, the code to just
99+
draw a triangle in this class is about 700 characters. The .svg file to
100+
draw a triangle compatible with SF Symbols is about 27,000 characters, and
101+
you are probably going to need an SVG editor app. I tried this and found
102+
another issue – you need to actually copy your symbols 26 times to make the
103+
27 images. But you also get nice rounded corners, 27 different variations,
104+
guides for text. Pick your poison.
98105
*/
99106
+ (NSImage*)imageStyle:(SSYVectorImageStyle)style
100107
wength:(CGFloat)wength

0 commit comments

Comments
 (0)