Battling through SwiftUI errors

Week 381 was posted by Charanjit Chana on 2025-02-08.

As I move onto the development of my second SwiftUI app, I find that prototyping layouts is a dream but battling against errors it can through when plugging in data sources has been a nightmare.

I'm at the point we're I've actually restarted development of my new app twice to take different approaches and now I am sitting on a more harmonious codebase so it was probably worth the effort. Create with Swift had a great article on designing for app states and just half an hour mapping the app on graph paper has given me a far more solid foundation so I highly recommend reading the article if only for the section on designing for different stats.

Maybe I just lack experience, but errors in SwiftUI are only useful half the time for me. It sometimes seems inconsistent too, but I'm getting there and battling through it. When Google's results haven't thrown up a definitive, or well explained, answer, ChatGPT has been a good companion but I am trying to reign in my trust and reliance on it.

Watch this space, I am hopefully not too far away from launching app number 2 the app store and then I'll be moving on to number 3!


Tags: development, swiftui


Tweet WhatsApp Keep Upvote Digg Tumblr Pin Blogger LinkedIn Skype LiveJournal Like