Skip to content

Latest commit

 

History

History
18 lines (9 loc) · 525 Bytes

README.md

File metadata and controls

18 lines (9 loc) · 525 Bytes

MKBOSXCloseButton

About

An NSButton subclass that looks just like the Yosemite+ native window close button, including the hover and press states. Made entirely programatically.

alt text

Installation

Installation can be done via cocoapods.

pod 'MKBOSXCloseButton'

Usage

To use, drag a new button onto your view in IB ('Square' style seems to work best). Make it a subclass of MKBCloseButton. Untick 'Bordered' and tick 'Transparent' in the inspector.