Skip to content

Instantly share code, notes, and snippets.

View danielsaidi's full-sized avatar

Daniel Saidi danielsaidi

View GitHub Profile
@danielsaidi
danielsaidi / GoogleSheet.swift
Last active October 15, 2024 09:54
This gist contains a GoogleSheet implementation for Swift
import Foundation
struct GoogleSheet {
/// Fetch CSV parsed data from a certain sheet.
///
/// - Parameters:
/// - id: The unique sheet ID.
/// - name: The name of the sheet to parse, by default the first.
static func csvData(
@danielsaidi
danielsaidi / sample.swift
Created May 3, 2024 20:55
Swift Strict Concurrency - Before & After
// MARK: - BEFORE STRICT CONCURRENCY
// This was all the code in `DeckShuffleAnimation` before I made it support strict concurrency
public class DeckShuffleAnimation: ObservableObject {
public init(
maxDegrees: Double = 6,
maxOffsetX: Double = 6,
maxOffsetY: Double = 6