Skip to content

Instantly share code, notes, and snippets.

View victorpimentel's full-sized avatar

Víctor Pimentel victorpimentel

View GitHub Profile
@victorpimentel
victorpimentel / AnimatedChart.swift
Last active June 20, 2022 21:57 — forked from robb/AnimatedChart.swift
Extract point to a different chart
import Charts
import SwiftUI
struct Sample: Identifiable {
var x: Double
var y: Double
var id: some Hashable { x }
}
@victorpimentel
victorpimentel / Observer.swift
Last active October 3, 2015 13:01 — forked from diegosanchezr/Observer.swift
Observers swift
import Foundation
public protocol Observable : class {
typealias ObserverType
func addObserver(observer : ObserverType)
func removeObserver(observer : ObserverType)
}
let observersAssociatedKey = "observersKey"