News for hackers. Stuff that matters.
Re:Apple Fooled All Mac Catalyst Developers by jitl on Friday March 17, 2023 @07:14AM (#35195499)
As a hobby Mac developer, SwiftUI is amazing and makes it so much faster for me compared to AppKit directly. But maybe you are trying too much to share views without specializing them for each platform? Apple does some layout for you but not enough. You’ll need to have a bunch of Mac specific code but you can get quite good results. The button looks like a Mac button… but it won’t feel right as a full-width row like you’d have on iOS.
Re:Apple Fooled All Mac Catalyst Developers by lawgimenez on Friday March 17, 2023 @08:20AM (#35196097)
Yes, I agree SwiftUI is amazing and looking forward to not having to deal with AppKit anymore. I was just using the default buttons and textfields without much customization but still awkward to look on macOS.