Swiftpack.co -  Package - orff/OpenClockStandard
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
orff/OpenClockStandard
an open clock standard for clock designs. For use on multiple software and hardware projects.
.package(url: "https://github.com/orff/OpenClockStandard.git", from: "0.9.3")

OpenClockStandard

an open clock standard for clock designs. For use on multiple software and hardware projects and maybe someday one of these.

Format is supported in the clock editing application clockology for iOS & MacOS to make the designs portable to other projects. Other uses might be for widgets, dashboards, etc.

Layout

0,0 is the center of the layout positive Y ( vertical position ) is down

Layers

The layout is determined by a list of "layers" of items that make up the overall design.

Current layer types supported are:

  • Time: labels to show dates and times
  • Icons: icons used to designate types of information on the face
  • Hands: items that rotate automatically based on the time unit they are set to

Check out the JSON in json folder

Examples

This layout is used for example JSON in the /json folder. It uses all the supported layer types and has options added for each layer to store the properties.

Example Image

GitHub

link
Stars: 3
Last commit: 3 weeks ago

Release Notes

fixed bug with init
4 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco