Post

Replies

Boosts

Views

Activity

Comment on Multiple Types on a Struct Property
This seems to work, but I'm noticing two things: XCode complains when I don't add as! T to the end of my constructor for the SuperStruct and I can't make a static property in an extension using it, which is making it hard to craft some example SuperStructs attached to the struct extension. I'm not opposed to other workarounds but I'm fairly green with Swift so I'm not sure what the best practices are for this
Jun ’23