Skip to content

An assortment of enhancements to AppKit to support modern app development.

License

Notifications You must be signed in to change notification settings

fumoboy007/ModernAppKit

Folders and files

NameName
Last commit message
Last commit date
Nov 27, 2020
Nov 27, 2020
Nov 27, 2020
Nov 27, 2020
Nov 27, 2020
Nov 27, 2020
Nov 27, 2020
Nov 27, 2020

Repository files navigation

ModernAppKit

An assortment of enhancements to AppKit to support modern app development. Addresses deficiencies in Auto Layout support, layer-backed views, and shadows.

Requires Swift 5.3+. Tested on macOS 11. MIT license.

AutoLayoutTextView

An NSTextView subclass that implements intrinsicContentSize so that the text view can participate in layout outside of a scroll view.

Label

An AutoLayoutTextView subclass that acts like a label. Specifically, it is non-editable, does not draw a background by default, allows vibrancy, etc.

LayerView

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.

ShadowView

A container view that draws a rectangular shadow underneath its content view in a performant manner.