Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View bscothern's full-sized avatar

Braden Scothern bscothern

View GitHub Profile
@bscothern
bscothern / DerivingIdentifiable.swift
Last active April 13, 2023 06:32
DerivingIdentifiable Experiments
import ComposableArchitecture
@_spi(Reflection) import CasePaths
public protocol DerivingIdentifiable: Hashable, Identifiable where ID == AnyHashable {}
@usableFromInline
struct MergeHashes: Hashable {
@usableFromInline
var first: any Hashable
////////////////////////////////////
// Main bundle finding logic
import Foundation
public protocol BundleFinder: AnyObject {
static var packageName: String { get }
static var moduleName: String { get }
static var packageModule: Bundle { get }
}