Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mgriebling/swiftmathdemo

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.
https://github.com/mgriebling/swiftmathdemo

demos iosmath swift swiftmath swiftmathdemo swiftui

Last synced: about 2 months ago
JSON representation

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.

Awesome Lists containing this project

README

        

# SwiftMathDemo

`SwiftMathDemo` demonstrates the use of [SwiftMath](https://github.com/mgriebling/SwiftMath.git) 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.
Simplified setting fonts in the MathView and the demo.

To use `SwiftMath` in your own code, just add the following package path to
XCode: https://github.com/mgriebling/SwiftMath.git

## Examples
Here are screenshots of an iPad, iPhone, and Mac running the demo:

![iPad Screenshot](images/lightiPad.png#gh-light-mode-only)
![iPad Screenshot](images/darkiPad.jpeg#gh-dark-mode-only)

![iPhone Screenshot](images/darkiPhone.png#gh-dark-mode-only)
![iPhone Screenshot](images/lightiPhone.jpeg#gh-light-mode-only)

![Quadratic Formula](images/darkiMac.png#gh-dark-mode-only)
![Quadratic Formula](images/lightiMac.png#gh-light-mode-only)