An assortment of enhancements to AppKit to support modern app development. Addresses deficiencies in Auto Layout support, layer-backed views, and shadows.
Requires at least Swift 4.1. Tested on macOS 10.13. MIT license.
An NSTextView
subclass that implements intrinsicContentSize
so that the text view can participate in layout outside of a scroll view.
An AutoLayoutTextView
subclass that acts like a label. Specifically, it is non-editable, does not draw a background by default, allows vibrancy, etc.
A layer-backed view with additional APIs for setting background color, border width, border color, and corner radius. Use if you do not need to do custom drawing. Supports animations.
A container view that draws a rectangular shadow underneath its content view in a performant manner.