Thanks for the response @OOPer.
I'm struggling to figure out how to incorporate generics with how I've created my objects, enums inside enums. Would it still work in my case?
I tried this.
swift
struct MenuButtonT: Menu: View {
}
But it's giving me the following error.
Type 'T' constrained to non-protocol, non-class type 'Menu'
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: