Skip to content

Instantly share code, notes, and snippets.

View ejbills's full-sized avatar

ejbills

View GitHub Profile
@crusat
crusat / ContentView.swift
Last active July 20, 2023 06:18
Changable themes in SwiftUI
import SwiftUI
struct Theme: Hashable {
var colorPrimary: Color = Color.primary
var name: String? = nil
var publicName: String = "System"
}
var themes: [Theme] = [
Theme(colorPrimary: Color.primary, name: nil, publicName: "System"),