Earlier quoted context omitted.
I’m with you, however mac os remain the best dekstop OS and iOS remain the best mobile one, even after all those years. So, they must be doing something right..
I agree, in my experience, MacOS is one of the most reliable operating systems I've used in terms of lack of crashes or spurrious bugs; the most common bug I see is my mouse pointer dissapearing, which is fixed by opening the tasks view.
Why I quit using SwiftUI
51–60 of 257 posts
Re: Why I quit using SwiftUI
#52SwiftUI is a big opportunity that Apple's not investing enough in, IMHO. It's good tech, and the reactive approach is excellent for many typical view-based needs, but at the same time the docs are terribly lacking at how to handle any kind of edge cases. Success to me looks like steering clear of SwiftUI for now, and advocating for Apple to hire documentation editors/leaders who can 1) create SwiftUI documentation of…
> but at the same time the docs are terribly lacking at how to handle any kind of edge cases. I agree that Apple’s documentation needs help (this year’s improvements are a nice step) but can we really expect them to provide extensive documentation for handling edge cases (you’re telling me UIKit docs offer that)?
There obviously is a trade off with how much you can/should expect, but "you cannot expect 9/10" is not a valid reply to "it currently is 3/10".
Re: Why I quit using SwiftUI
#53Earlier quoted context omitted.
Tying the SwiftUI version to the iOS version is seriously asinine. In the Android world Compose is a regular library so devs can pick the version. That's partly why there has been much more adoption of Compose even though it was released years later than SwiftUI.
I wonder what is the technical justification for it too, if any. I mean, sure - you can save space by making it a dynamic library that is shipped with the OS but considering how immature it is, shipping a specific version of it with the app should be an option IMHO.
Re: Why I quit using SwiftUI
#54What surprises me the most is that Apple didn't open source it even many years since unveiling has passed. It doesn't look to me that they have any risks here. The library could be used only on Apple platforms. It will let users submit fix PRs, and make debugging code (by framework users) much easier.
Re: Why I quit using SwiftUI
#55Earlier quoted context omitted.
Then why use it anywhere? I have never fully bought into this notion that the components should rebuild themselves in this kind of stateless manner. I think this like an intellectual obsession with functional programming mapped onto the UI Tree. I can't fathom why it's 'better'. The reactive aspects of the middle tier of the program - that's progress. But the reactive components, I'm not sure about that.
>Then why use it anywhere? To write code quicker, and make it easier to maintain. If it's a moderately complicated UI, then I could code it up much faster in React (my guess is around 10x). IMO, React isn't about functional programming, it's just a good DSL for writing UI.
It makes the easy things easier. A common problem for these sorts of tools. It is help with the hard things that we need.
Edit - I have experience with SwiftUI not React.
Re: Why I quit using SwiftUI
#56Earlier quoted context omitted.
There is no evidence to suggest that Apple are deprecating AppKit and UIKit
Supertankers turn slowly, but if the captain tells you the ship will turn, you better believe it, even if you don’t see the ship turning yet. Having said that, even though Apple indicates it will turn, it still may change its mind halfway through.
What Apple says at their circus show is not the same weight as the captain of a ship telling you the ship's course.
Re: Why I quit using SwiftUI
#57Earlier quoted context omitted.
> but at the same time the docs are terribly lacking at how to handle any kind of edge cases. I agree that Apple’s documentation needs help (this year’s improvements are a nice step) but can we really expect them to provide extensive documentation for handling edge cases (you’re telling me UIKit docs offer that)?
That sounds very different from what was written? The complaint was about "lacking ... any kind of" yet you write about "extensive documentation". There obviously is a trade off with how much you can/should expect, but "you cannot expect 9/10" is not a valid reply to "it currently is 3/10".
Re: Why I quit using SwiftUI
#58I'm building an IDE in (mostly) SwiftUI, and have been using it since release, so I feel like I've worked with it more than most people. A couple observations: - SwiftUI is really complex It's going to take you at least a year to get used to the declarative way it works, and be able to make UIs without struggling to figure out how to shuffle data around. If you look at SwiftUI examples/code, most of the complexity is…
Re: Why I quit using SwiftUI
#59If the bugs are bad enough I can always do something custom in UIKit via UIViewRepresentable.
Re: Why I quit using SwiftUI
#60The entire view shouldn’t be redrawn but certain views only (not the entire tree) maybe look into prevent entire view from being redrawn itself (React does this too and you can prevent redraw without utilizing useMemo by understanding it’s internals)
The tricky part is knowing what is immutable, because standard JVM collections are not.