I ended up being able to get rid of the error. By creating the menu in UIKit and wrapping it to SwiftUI, the warning and visual error went away. Still not an ideal fix though.
Topic:
UI Frameworks
SubTopic:
SwiftUI