Skip to content

Instantly share code, notes, and snippets.

View mrgrauel's full-sized avatar

Andreas Osberghaus mrgrauel

View GitHub Profile
@mrgrauel
mrgrauel / Identifier.swift
Created January 9, 2021 07:42
Type-Safe Identifier in Swift
//
// Identifier.swift
//
// Created by Andreas Osberghaus on 09.01.21.
//
import Foundation
public protocol Identifiable {
associatedtype RawIdentifier: Codable & Hashable = String

Keybase proof

I hereby claim:

  • I am mrgrauel on github.
  • I am angrauel (https://keybase.io/angrauel) on keybase.
  • I have a public key whose fingerprint is 825F 2456 5B90 E485 2172 5162 F506 65CE 4FA8 0926

To claim this, I am signing this object: