Tiny Moon – Swift library to calculate the moon phase

Introducing Tiny Moon Swift Package, a small and efficient Swift library that calculates the moon phase for any given date, functioning offline and compatible with iOS and MacOS. Simply add the package to your Xcode project, import it, and pass in the desired Date and TimeZone to get moon phase information. The library offers two options: Moon, prioritizing major moon phases, and ExactMoon, providing exact values for a specific date and time. The moon phase is represented by properties like illuminated fraction and emoji. Check out the built demos for MacOS and iOS apps using Tiny Moon. Special thanks to suncalc and John Walker for their contributions to understanding moon phase calculations.

https://github.com/mannylopez/TinyMoon

To top