DEV Community

Discussion on: Calstats, My first iOS/Mac app is out!

Collapse
 
andypiper profile image
Andy Piper

Interesting app, I just tried it out on my iPad :-)

I’m guessing you’re using SwiftUI to go cross-platform, did you find any challenges in making the app Mac-friendly? (I’m going to try it there too when I get back to my laptop)

Collapse
 
matthijsewoud profile image
⚡️

I could write a whole post about those challenges, to be honest, haha. You're correct -- I've used mostly SwiftUI to get a neat shared codebase. The most challenges came form dealing with multiple windows, and giving them different content. The way SwiftUI wants you to do multiple windows doesn't let you do some things very easily, like giving them IDs and doing commands based on which window is active. I had to resort back to AppKit for those NSWindows.