OnelinerKit 1.0.2

OnelinerKit 1.0.2

Maintained by Marcus Kida.



OnelinerKit

Twitter: @Kidmar License TravisCI

Create text based screensavers for macOS.

Banner

Getting Started

To get started just add OnelinerKit.framework as a dependency to your ScreenSaver project, inherit from OnelinerView and override func fetchOneline e.g.:

class DeveloperExcusesView: OnelinerView {
	override func fetchOneline(_ completion: (String) -> Void) {
		completion("Just this one line, no moreā€¦")
	}
}

The screensaver will display whatever is invoked as the String argument inside the completion closure. The fetchOneline method will fetched whenever the screensaver thinks it's necessary.

If you're keen to see a reference implementation, just head over to DeveloperExcuses.

License

MIT

Created by

Marcus Kida