I'm working on a multi-platform app. I started with a macOS target so I already had functioning buttons using focused values in menus by the time I started working on the iOS target. But in iOS, the buttons that have focus values in them are not working. I narrowed the issue down to the buttons wrapped in the Menu { }
view.
My workaround has been to swap out focused values for environment values using a platform check #if os(macOS) ... #endif
but I was just wondering if this is expected behaviour?
I've googled for days and can't find any answers.
I setup a simple demo on GitHub . The plus in the toolbar works but the same button in the menu doesn't.