Skip to content

Instantly share code, notes, and snippets.

View Midbin's full-sized avatar

Niklas Ausborn Midbin

View GitHub Profile
@Midbin
Midbin / ContentView.swift
Last active May 19, 2025 08:38
A big and long but performant scrolling Swift Chart
import SwiftUI
import Charts
import GameplayKit
let gaussianRandoms = GKGaussianDistribution(lowestValue: 0, highestValue: 20)
func date(year: Int, month: Int, day: Int = 1) -> Date {
Calendar.current.date(from: DateComponents(year: year, month: month, day: day)) ?? Date()
}