MyStyledView

BSD License
Objective-C
macOS

1 image

Author

Description

A generic styled view class for rendering simple graphics on the desktop. Styling is exposed through properties on the view. It has support for a fill color and gradient, with the gradient composited on top, and individual properties for top and bottom edges, as well as highlights. The left and right edges have gradient properties instead of colors. It also supports drawing inner shadows thanks to Sean Patrick-O’Brien and his awesome bezier path category. And I recently added support for stretchable background images exposed through a leftCapWidth and topCapHeight property.

Tags