An NSView/UIView subclass to display status icons with Core Animation, written in Swift
SpinningProgressIndicator is based on YRKSpinningProgressIndicatorLayer by Kelan Champagne
Usage
- Add StatusView.swift and SpinningProgressIndicatorLayer.swift to your project
- Set the class of the view to StatusView
- The view is supposed to be square (aspect ratio of 1:1)
Properties
- status : .none, .processing, .failed, .caution and .success
- enabled : Bool true or false - is the view enabled
- inverted : Bool true or false - display the symbols (except the spinning indicator) normal or inverted
The properties inverted
and enabled
are also settable in Interface Builder.
The properties inverted
, enabled
and status
can be use with Cocoa Bindings (macOS only).
Sample Images
Normal
Inverted
System Requirements
macOS 10.9 Mavericks or higher iOS 7 and higher