News for hackers. Stuff that matters.
Re:9 years of Apple text editor solo dev by jshier on Friday January 05, 2024 @11:01AM (#38880487)
Yeah, you really need to combine SwiftUI with a dedicated architecture like PointFree's Swift Composable Architecture. It solves your state and navigation problems while adding dependency and testing solutions as well.

Apple's stubborn and bizarrely proud insistence on not providing the full solution here is very annoying.

Re:9 years of Apple text editor solo dev by bsaul on Friday January 05, 2024 @12:56PM (#38882164)
just had a look at Composable Architecture, and it looks like swiftUI being the equivalent of react, they faced the same problem and someone developed a redux in swift. Am i correct ?
Re:9 years of Apple text editor solo dev by jshier on Friday January 05, 2024 @01:02PM (#38882274)
Kind of, but without the reactive UI bits, since SwiftUI already provides that (they provide a way to publish state into the older frameworks as well). It's heavily inspired by Elm and React but doesn't match 1:1 with either.