Skip to content

An NSView subclass to display status icons with Core Animation, written in Swift

License

Notifications You must be signed in to change notification settings

carabina/StatusView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StatusView

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

failed normal caution normal success normal processing

Inverted

failed inverted caution inverted success inverted



System Requirements

macOS 10.9 Mavericks or higher iOS 7 and higher

About

An NSView subclass to display status icons with Core Animation, written in Swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages