Mac framework to bridge AppKit and Core Animation-based UI frameworks
Velvet is a UI bridging framework for Mac OS X, built to allow AppKit to interoperate with layer-based UIs. In particular, Velvet allows the use of normal Cocoa views and functionality in conjunction with frameworks like TwUI and Chameleon.
VELView
), and provides some basic view classes, including:
VELControl
, a control class supporting block-based actionsVELImageView
, a simple image view with an easy-to-use API for stretchable imagesVELLabel
, a text label supporting formatting and sub-pixel antialiasingVELNSView
VELView
instance, including VELNSView
UIGestureRecognizer
) that work with any bridged view classAdditionally, most of the above features are unit tested, to validate the typical use cases and detect any future breakage.
See also our fork of TwUI, which integrates Velvet and adds view classes to bridge into and out of TwUI.
All dependencies can be retrieved by running git submodule update --init --recursive
from the top level of the repository.
Velvet is released under a modified version of the 3-clause BSD license. See the LICENSE file for more information.