Daylight

January 6, 2017 ยท View on GitHub

Daylight

A beautiful app that will let you know how much sun you have today.

Running the project

  • Open Project.xcodeproj and run

What's interesting about this project?

Uses a JavaScript library for the sun calculation

Shares the same sun calculation library as the web app. It uses JavaScriptCore to load suncalc.js, you can find the library here: https://github.com/mourner/suncalc. The bridge that converts JavaScript to Swift can be found in SunCalc.swift.

Contents

  1. 1Running the project
  2. 2What's interesting about this project?
  3. 2.1Uses a JavaScript library for the sun calculation