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 Charts | |
import SwiftUI | |
struct Sample: Identifiable { | |
var x: Double | |
var y: Double | |
var id: some Hashable { x } | |
} |
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 | |
public protocol Observable : class { | |
typealias ObserverType | |
func addObserver(observer : ObserverType) | |
func removeObserver(observer : ObserverType) | |
} | |
let observersAssociatedKey = "observersKey" |