This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Swift toolchain version 5.0 | |
// Running macOS version 12.0 | |
// Created on 7/24/21. | |
// | |
// Author: Kieran Brown | |
// | |
import SwiftUI | |
// MARK: -Component- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Swift toolchain version 5.0 | |
// Running macOS version 12.0 | |
// Created on 6/24/21. | |
// | |
// Author: Kieran Brown | |
// | |
import SwiftUI | |
struct CollapsibleGridLines: View { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Swift toolchain version 5.0 | |
// Running macOS version 12.0 | |
// Created on 6/24/21. | |
// | |
// Author: Kieran Brown | |
// | |
import SwiftUI | |
fileprivate func makeDroplets(count: Int = 10, xRange: Range<Int> = 20..<350, yRange: Range<Int>) -> [CGPoint] { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Swift toolchain version 5.0 | |
// Running macOS version 10.15 | |
// Created on 11/1/20. | |
// | |
// Author: Kieran Brown | |
// | |
import SwiftUI | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Greek { | |
static var alpha = "α" | |
static var beta = "β" | |
static var gamma = "γ" | |
static var delta = "δ" | |
static var epsilon = "ε" | |
static var zeta = "ζ" | |
static var eta = "η" | |
static var theta = "θ" | |
static var iota = "ι" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import CoreGraphics | |
/// #SVGPath | |
/// A class that can take any svg path string and convert it to the | |
/// equivalent CGMutablePath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
struct RationalNumber { | |
let numerator: Int | |
let denominator: Int | |
// todo: fix this so that infinities are handled properly | |
var decimal: Double { | |
denominator != 0 ? Double(numerator)/Double(denominator) : .infinity | |
} |
NewerOlder