SunKit Versions Save

SunKit is a Swift library which uses math and trigonometry to compute several information about the Sun.

2.8.0

4 months ago
  • Sun is now a struct: users can no longer use Sun as a reference type. However, immutability is not enforced and functions like setDate and setLocation are now defined as mutating.

  • Sun initializer now accepts a Date parameter (defaults to Date()).

  • Sun now conforms to Identifiable, Equatable, Hashable, and Sendable protocols.

  • Utilities such as Angle, DMS, EclipticCoordinates, EquatorialCoordinates, HMS, and HorizonCoordinates now conform to Equatable, Hashable, Sendable, and Codable protocols.

2.7.0

10 months ago
  • Solar Midnight
  • Ecliptic and Equatorial coordinates

2.6.5

1 year ago

If sunrise or morning twilight events: blue hour start/end, astronomical start/end, nautical start/end are below 1 AM, they will take back to 00:00 because irrelevant.

2.6.4

1 year ago

2.6.3

1 year ago

Minor changes to isNight variable. isAlwaysLight is now isAlwaysDay.

2.6.2

1 year ago

Fixed typos

2.6.1

1 year ago

2.5.0

1 year ago

Removed 'useSameTimeZone' dependency.

2.4.6

1 year ago

2.3.6

1 year ago