migueldeicaza / SwiftGodot

New Godot bindings for Swift
https://migueldeicaza.github.io/SwiftGodotDocs/tutorials/swiftgodot-tutorials/
MIT License
1.06k stars 65 forks source link

Restructure VariantRepresentable conformances #394

Closed tishin closed 6 months ago

tishin commented 6 months ago

Fixes #392. Forces VariantRepresentable conformants to provide their bounding types and values:

This should resolve any possible issues related to VariantRepresentable abstractions not accounting for ContentTypeStoring

migueldeicaza commented 6 months ago

This is beautiful, much better than the manual band-aid I applied.