DEV Community

Discussion on: Adding an NSTableView to a SwiftUI View

Collapse
 
gabeklavans profile image
Gabriel Klavans

I'd also love an example project! I'm learning to build a MacOS app and it's tough to learn aspects of NSTableView concurrently with SwiftUI concepts...

Thread Thread
 
hugh_jeremy profile image
Hugh Jeremy

Yeah NSTableView definitely requires a totally different mindset than SwiftUI. I'd recommend building some stuff in AppKit to get used to the "old" way of doing things. It's so common to need to drop back down into AppKit, and NSViewRepresentable becomes very important. Another example is AuthenticationServices - To add a "Sign in with Apple" button you're back in AppKit land writing @objc interface implementations!