Do you want to use custom #SwiftUI environment values, but find the boilerplate code too complicated? I've played around with Swift and came up with a way to reduce the amount of code needed to create custom types. Just plain Swift - no macros needed.
https://danielsaidi.com/blog/2024/04/14/create-custom-environment-types-in-swiftui-with-less-code