Lists everyone who has contributed to Delta in some way besides the core team, as well as what they contributed. Moves Grant Gliner and Chris Rittenhouse to Contributors from main Credits.
46 lines
899 B
Swift
46 lines
899 B
Swift
//
|
|
// Contributor.swift
|
|
// Delta
|
|
//
|
|
// Created by Riley Testut on 2/3/23.
|
|
// Copyright © 2023 Riley Testut. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
struct Contributor: Identifiable, Decodable
|
|
{
|
|
var name: String
|
|
|
|
var id: String {
|
|
// Use names as identifiers for now.
|
|
return self.name
|
|
}
|
|
|
|
var url: URL? {
|
|
guard let link = self.link, let url = URL(string: link) else { return nil }
|
|
return url
|
|
}
|
|
private var link: String?
|
|
|
|
var linkName: String?
|
|
|
|
var contributions: [Contribution]
|
|
}
|
|
|
|
struct Contribution: Identifiable, Decodable
|
|
{
|
|
var name: String
|
|
|
|
var id: String {
|
|
// Use names as identifiers for now.
|
|
return self.name
|
|
}
|
|
|
|
var url: URL? {
|
|
guard let link = self.link, let url = URL(string: link) else { return nil }
|
|
return url
|
|
}
|
|
private var link: String?
|
|
}
|