SwiftMathDemo
demonstrates the use of SwiftMath using SwiftUI.
The same code runs on Macs, iPhones, and iPads. Code is entirely written in Swift.
The MathView.swift
file provides a SwiftMath
interface to SwiftUI.
To use SwiftMath
in your own code, just add the following package path to XCode: https://github.com/mgriebling/SwiftMath.git
Here are screenshots of an iPad, iPhone, and Mac running the demo: