In this SwiftUI tutorial, I’ll demonstrate that how to use Context Menu / popup menu, how to add multiple buttons in it. You're going to get a sneak preview of exactly how Swift UI works as we build a demo project step by step.
SwiftUI gives us the ContextMenu modifier for creating popup menus in our apps. In iOS this is usually triggered using 3D Touch, but it works just the same as a right-click on macOS – it’s a flexible API.
I'm following and learning from Apple’s own SwiftUI tutorials and I highly recommend that you give them a read as well (You'll be able to download the demo project from there):
🔗 https://developer.apple.com/tutorials...
I'll be publish more SwiftUI content and tutorials in the coming days so make sure you're subscribed my channel and you won’t miss a beat:
🔗 https://www.youtube.com/channel/UCVRW....
I published SwiftUI content on my stackOverFlow so make sure you are follow me.
🔗 https://stackoverflow.com/users/89075...
SwiftUI is a new declarative Native UI framework to build user interfaces for apps across all of Apple’s platforms including iOS, iPadOS, MacOS, TvOS and WatchOS.
I’m super excited about SwiftUI because it addresses the biggest concern I had with teaching programmatic UIs to beginners: that they would get lost and get discouraged.
SwiftUI is both intuitive and easy to grasp and it offers the maintainability and flexibility of a UI built with code. I’m going to start adopting it into my beginner material and I think you guys are going to really like it!
#swiftui #wwdc #theakbarkhancode