I'm trying to figure out the code to add a menu to a button like what is found at the 14:10 mark within the "Design for iPad" video - https://developer.apple.com/wwdc20/10206. They don't review it but I want to be able to launch a view based on a menu like that above. Any suggestions?
How to add a menu to a button with Swift UI?
In UIKit there's a new initializer for UIBarButtonItem: https://developer.apple.com/documentation/uikit/uibarbuttonitem/3600776-init?changes=latest_minor
However, I couldn't find anything in SwiftUI. Could you please file a feedback? https://feedbackassistant.apple.com
However, I couldn't find anything in SwiftUI. Could you please file a feedback? https://feedbackassistant.apple.com
@Apple Staff, I think I did it correctly, my feedback request is FB7793165. Thank you!