Skip to content

Instantly share code, notes, and snippets.

View danielsaidi's full-sized avatar

Daniel Saidi danielsaidi

View GitHub Profile
@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