21 comments

  • rayiner8 hours ago
    The problem with complex systems is that you can be dead long before you realize you&#x27;re dead. Things can continue to seem &quot;pretty good&quot; for a long time just from the inertia of past good decisions and built-up infrastructure. You see some fraying or cracks but everything looks fundamentally sound, until it isn&#x27;t.<p>Apple&#x27;s inability to deploy a new UI framework that&#x27;s better than the previous one is troubling. This is the company that shifted from Toolbox to Carbon to Cocoa and each step was better than the last. Could Apple build MacOS X and Cocoa today if they didn&#x27;t already exist? Microsoft&#x27;s two decades of failure to ship a true successor to Win32 suggests that Microsoft (at least, the operating system side of the company) died a long time ago. I wonder if we&#x27;ll say the same thing about Apple 10 years hence.
    • steve19777 hours ago
      I think the problem with SwiftUI in a way was (or is) that Cocoa was so good. And, at least IMHO, it didn&#x27;t need replacing, just improving.<p>But I feel like Apple wanted to appeal to young web devs and tried to offer something more similar to what these are used to.
      • monster_truck7 hours ago
        Totally agreed. I kind of figured things were going to get shitty when the guy who made autolayout got hounded on so hard that he left.<p>I sure hope they can figure out a way through. Whatever it is, SwiftUI isn&#x27;t it.
        • rudedogg7 hours ago
          &gt; Whatever it is, SwiftUI isn&#x27;t it.<p>I think this opinion is heavily shared by Swift developers now, but the messaging every WWDC is always &quot;Swift and SwiftUI is <i>the</i> best way to build apps for Apple Platforms&quot;, etc.. If you have to keep telling everyone what they don&#x27;t believe is true, it&#x27;s a sign there&#x27;s a problem.<p>It feels like someone with a lot of organizational power is disconnected from the pulse of the community. SwiftUI is undeniably clean in a lot of ways, it presents beautifully and fits on slides well, but that matters less and less, and this all wasn&#x27;t really working out even before LLMs disrupted things.
          • steve19776 hours ago
            Well the problem now is Apple would need to admit they made a mistake. And Apple does not make mistakes.
      • refulgentis7 hours ago
        It’s a seductive idea, but it displaces who is responsible for the poor framework development onto <i>users</i> of the framework.<p>It’s easy to say they were just trying to be trendy and thus the real flaw was the trend is bad and the fault of worse devs than us (the young web devs mentioned)<p>The thing that obviates that is the trendy stuff <i>works</i>, yet, SwiftUI doesn’t.<p>(source: I wrote ObjC&#x2F;Cocoa as early as 2006, and switched to Flutter as my primary dev kit some years ago: it simply doesn’t have the performance issues mentioned.)
    • dosisking48 minutes ago
      &gt; Could Apple build MacOS X and Cocoa today if they didn&#x27;t already exist?<p>Apple got rid of all the NeXT people long ago, with Tim Cook stabbing Scott Forstall in the back, so the answer is No.
    • mpweiher6 hours ago
      Not just complex. Also &quot;successful for other reasons&quot;. And of course the RDF is particularly strong in Apple&#x27;s case. And these are interlinked as well: they were successful in the past not just despite ignoring feedback&#x2F;outside advice, but often because of it.
    • skydhash7 hours ago
      I think the main issue is the functional approach. Having a functional approach to state can be quite elegant, but ultimately the computer does not do functional. You have to implement a lot of plumbing to have stuff that is a bit performance (clojure), or just add a veneer of functional over what is essentially a normal state machine (emacs).<p>React works well, because it&#x27;s only an abstraction over the real DOM. React only handles your app state. But the DOM mechanism is still very performant and very much imperative. But I don&#x27;t think something like React would work well in a mobile app, because the UI tree is often very simple on iOS and macOS.
      • mpweiher7 hours ago
        Not just does the computer not do functional.<p>UI is also very much not functional, and in fact the lack of progress in UI the last 30-40 years can largely be traced to trying to create UI with procedural&#x2F;functional programming languages, an instance of linguistic-architectural mismatch.<p>Further reading:<p><i>Programs = Data + Algorithms + Architecture: Consequences for Interactive Software Engineering</i> -- Stéphane Chatty.<p><a href="https:&#x2F;&#x2F;link.springer.com&#x2F;chapter&#x2F;10.1007&#x2F;978-3-540-92698-6_22" rel="nofollow">https:&#x2F;&#x2F;link.springer.com&#x2F;chapter&#x2F;10.1007&#x2F;978-3-540-92698-6_...</a><p><i>Can Programmers Escape the Gentle Tyranny of call&#x2F;return?</i><p><a href="https:&#x2F;&#x2F;2020.programming-conference.org&#x2F;details&#x2F;salon-2020-papers&#x2F;5&#x2F;Can-Programmers-Escape-the-Gentle-Tyranny-of-call-return-" rel="nofollow">https:&#x2F;&#x2F;2020.programming-conference.org&#x2F;details&#x2F;salon-2020-p...</a><p><i>UIs Are Not Pure Functions of the Model - React.js and Cocoa Side by Side</i><p><a href="https:&#x2F;&#x2F;blog.metaobject.com&#x2F;2018&#x2F;12&#x2F;uis-are-not-pure-functions-of-model.html" rel="nofollow">https:&#x2F;&#x2F;blog.metaobject.com&#x2F;2018&#x2F;12&#x2F;uis-are-not-pure-functio...</a><p><i>Beyond Procedure Calls as Component Glue: Connectors Deserve Metaclass Status</i><p><a href="https:&#x2F;&#x2F;2024.splashcon.org&#x2F;details&#x2F;splash-2024-Onward-papers&#x2F;9&#x2F;Beyond-Procedure-Calls-as-Component-Glue-Connectors-Deserve-Metaclass-Status" rel="nofollow">https:&#x2F;&#x2F;2024.splashcon.org&#x2F;details&#x2F;splash-2024-Onward-papers...</a>
        • cloogshicer6 hours ago
          Thanks for those links! Some of it was great reading.<p>What is your thesis then? What <i>is</i> UI?
      • torginus6 hours ago
        Imo the biggest issue with this functional model (at least in React), is that it handles things like virtualization, async, etc. poorly. Which is kinda ironic, because in a true functional language, it&#x27;d be feasible to provide &#x27;a world model&#x27; - that is act as if the entire state is always available, and let the engine decide when to evaluate pieces of code - without any effort from the part of the programmer.<p>Unfortunately when complex state transitions, async, and virtualization enters the discussion, the <i>magic</i> of React breaks, and you have to deal with all that, and also deal with how React&#x27;s engine handles things under the hood.
      • dgellow7 hours ago
        Hmm, but React doesn’t own or manage the app state. And react native has been used for pretty complex applications
      • poly2it7 hours ago
        Functional doesn&#x27;t mean stateless. I&#x27;d argue functional programming is superior for representing state in user interfaces. For a success implementation, see Jane Street&#x27;s Bonsai:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;janestreet&#x2F;bonsai" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;janestreet&#x2F;bonsai</a>
        • rudedogg7 hours ago
          &gt; functional programming is superior for representing state in user interfaces<p>It&#x27;s always going to be slower than using something imperative. Trying to process the entire world&#x27;s state for the sake of purity can feel elegant but it isn&#x27;t free. And the complexity that gets added to make things performant is worse than just accepting that UIs are going to require you to jump around the tree and modify state.<p>Every time I go through the trouble of understanding the latest web technique (React, Elm, Signals (the newest solution), etc.) to deal with state management and the DOM, I end up walking away disappointed. There&#x27;s nothing new in them that you can use to improve what we&#x27;ve been doing for ages in native GUI toolkits.<p>And to jump back to the original topic, yes, Cocoa was pretty decent, and SwiftUI while nice in many ways tries to Reactify native macOS development and made it worse. And it made Swift incredibly more complex and worse in hindsight.
          • kodebach7 hours ago
            The goal of the reactive&#x2F;declarative approach was never to be more performant than imperative code. The goal is to more easily build UI that is performant enough and <i>functions correctly</i>. With imperative UI code it is incredibly easy to forget an edge case in your update logic.
            • mpweiher6 hours ago
              Not if you actually do MVC, so solved around 50 years ago.<p>1. The UI tells the model to change.<p>2. The model does the change and possible related changes.<p>3. The model <i>notifies</i> the UI that something has changed.<p>4. The UI updates itself from the model.<p>Alas almost nobody does MVC, despite calling what they do MVC.
              • asa4003 minutes ago
                Funny, this almost reads like a description of how Elm works.
              • LoganDark15 minutes ago
                Are you saying the UI always updates its entire self whenever anything changes in the model?
        • mpweiher7 hours ago
          Not sure how you define &quot;success&quot; here. Is Bonsai used much outside of Jane Street?
        • skydhash7 hours ago
          &gt; Functional doesn&#x27;t mean stateless.<p>I didn&#x27;t say that.<p>User interfaces representation are mostly trees. And with functional programming you basically have Tree2 = f(Tree1). Until f is done you can&#x27;t do anything really. React has a lot of escape hatches to improve performance, but they are escape hatches, not an endorsement of the architecture.<p>With imperative programming (and OOP), you only have that single `Tree`, which you update at will. Less elegant yes, but we have modularization to help us there. What Emacs does is to keep that `Tree` as a single mutable object, but have the code be functional, while the results are imperative.
    • brnt7 hours ago
      I only have to look at the iPhone fucking 17 to know Apple is long gone.
      • graypegg7 hours ago
        Genuinely curious, what’s wrong with it?<p>I’m no huge apple fan, but I didn’t really think the 17 was more than a regular boring spec upgrade, which seems fine all things considered. (Currently on an iPhone fucking 17)
  • sandoze7 hours ago
    This seems to be a popular ‘controversial’ topic. I’ve been using SwiftUI for production applications and games since 2021. I drop down UIKit, Metal, or core animation when needed. But that’s no different than when I was making games in UIKit and would drop down to core animation or glyph renderers written in C etc.<p>Data Flow: The author claims there’s no way to know when things update. Not only does experience help here but there are profile tools that tell you when and where things are updated. This isn’t black magic. Keep Views small, be careful how you hand around data. @environment is super cool but can have a cascade effect. This was greatly improved iOS 17+ and I wouldn’t support anything older than iOS 17.<p>GeometryReader: Occasionally I’ll use this. It’s kind of a necessary evil when dealing with certain view complexity. It can also be a sign that you’re doing something wrong.<p>API Stability and performance: Apple users upgrade. There’s no reason that you should be supporting iOS 17 at this point — even iOS 18 is roughly 2%% of our user base across several apps. I’ve been using SwiftUI without major performance issues but I also don’t early optimize. I profile and fix as needed. One of the early studios I worked for wrote all our games in UIKit as prototypes, when performance tanked we’d switch to the appropriate tools (eg. OpenGL) where it was necessary — like in the core game.<p>I could go on but in the end just use the right tool for the job, if you’re not proficient in SwiftUI or it isn’t going to work for your cross platform project, you have a lot of other alternatives. For me though, it’s been amazing to work with. I stepped away from iOS programming for 3 - 4 years because I was burnt out using storyboards, dealing with massive view controllers, and all the boiler plate it’d take to get a view up and going in UIKit. SwiftUI roped me back in.<p>* Quick addition edit: Cross platform for iOS, iPad, macOS has never been good. I’ve found recent updates have made things better to the point of tolerable and it’s nothing like when we had to post-fix an ~ipad to our Nibs — There has never been a ‘glory days’ of cross platform Apple UI libraries.
  • cosmic_cheese7 hours ago
    I&#x27;m sure many will disagree, but I have doubts that pure declarative-reactive is the &quot;right&quot; shape for an all-purpose native UI framework. In my experience, Kotlin+Compose shares many of the same warts… its main redeeming quality is that it&#x27;s better than Android Framework (most of the time), which is low bar to clear.<p>These frameworks have a number of good ideas but they don&#x27;t necessarily combine in a way that transcends high quality traditional imperative frameworks with declarative-reactive bits sprinkled throughout, at least for more complex apps. SwiftUI and its ilk work best for super simple tabs-and-flat-lists sorts of apps.
    • rumori7 hours ago
      I think open source is the right move here. The great thing about Flutter is you get the declarative UI to build a lot of standard screens easily but you can always drop down to lower levels, inspect the standard components, mix and match with your custom implementation. You can mix UKit and SwiftUI but there’s way more friction due to the closed nature of the SDK.
      • cosmic_cheese7 hours ago
        Perhaps. Certainly source visibility makes life easier as a dev who has to live with these frameworks on a daily basis. That said, I think frameworks should strive to have a wide and deep enough set of widgets that in most cases, devs won&#x27;t <i>need</i> to resort to custom implementations to do what they need to.<p>It also doesn&#x27;t fix problems inherent to declarative UI, like readability breaking down easily and certain things that would be a cinch in an imperative framework being extremely awkward to implement.
      • norbert5157 hours ago
        Fully agree (been an early Flutter adopter!). It&#x27;s always the right too for the right job, declarativness makes a lot of sense for most UIs. UIs are surprisingly more complicated than one might think, there is accessibility&#x2F; theming&#x2F; keyboard traversal etc., just declaring UI and letting the framework figure out the rest has held up pretty well.<p>And because of the open source nature you can always drop down in layers, just a few weeks ago I made a very specific engine optimization, all while the application code on-top can stay declarative!
    • kodebach7 hours ago
      Do you have an example of where &quot;the ideas don&#x27;t combine well&quot;? Or where an imperative approach is truly better?<p>In my experience the solution is often to use the appropriate architecture underneath your UI layer. Basically you build a data structure that represents your UI and always hand this entire structure to the declarative UI layer. Underneath the UI layer, you can still use imperative code to manipulate the data structures. The benefit of the reactive&#x2F;declarative approach is that you don&#x27;t have to think about how changes in the data need to be reflected in the UI. That&#x27;s the framework&#x27;s job.<p>Note: With &quot;data structure&quot; I don&#x27;t mean &quot;build a shadow DOM&quot;. I mean something specialized to your use case.
      • cosmic_cheese6 hours ago
        One example of where I think imperative generally does better is UI that requires substantial setup or customization.<p>In SwiftUI, that means endless chains of modifiers, and in Compose this means monstrous constructors and modifier chains. Both get really ugly and painful to read quickly, and there&#x27;s not a lot that can be done about it apart from breaking everything out into smaller views (which only goes so far). The amount of boilerplate saved isn&#x27;t worth the trade, in my opinion.<p>In an imperative setup, there&#x27;s still a lot of code but there are more options for organization, readability, and overall clarity. One can break things up with comments, break out setup into functions with self-explanatory names (that the IDE can then quick jump to, as a bonus), etc.<p>Yes, it&#x27;s easier to get tripped up with imperative frameworks if one isn&#x27;t thoughtful with managing their data, but much of the time that code only needs to be gotten right once.
  • spacedcowboy7 hours ago
    Apple had a real winner with ObjC and AppKit. Swift is horrendously complicated for the benefits it offers over ObjC, and SwiftUI is a massive step backwards from AppKit.<p>Just MHO, and it’s not going to stop the juggernaut, but there’s just no appeal in moving there for me :( If (when ?) Apple drop ObjC, that’s the day I move to Linux
    • blltprfmnk6 hours ago
      There were a lot of people actively complaining about ObjC in the lead-up to the unveiling of Swift. In fact I recall one prominent blogger in the iOS community begging Apple just a few months earlier to consider replacing it.<p>Unfortunately although Swift seemed promising at first, by the time Swift 3 rolled around a lot of people were actively frustrated and moved on from iOS development. Having actual experienced hands guiding that ship could have led to something great instead of the mess that is there today.
      • kccqzy4 hours ago
        Are you talking about the unveiling of Swift or SwiftUI? My recollection was that some people hated ObjC and wanted a more modern language. Apple gave them Swift. But I don’t recall people hating AppKit (maybe I wasn’t remembering correctly) and SwiftUI was basically Apple following the hipster trend.
        • blltprfmnk4 hours ago
          Just referring to Swift.<p>Agree that SwiftUI was just jumping on a bandwagon and would say that the design of SwiftUI clearly strains the poor language design choices in Swift.
    • frizlab6 hours ago
      Having written actual apps with AppKit, it is horrendously complicated for simple things.<p>Swift is incredibly better than ObjC on so many ways it’s just not comparable. I used it since day one and never looked back. (And I was deep into the ObjC ecosystem, having written very low-level frameworks, and having loved it.) Yeah, first versions of Swift were raw, but now it’s just THE language; I used for <i>everything</i> (obviously Apple soft frontend, but also the web, the backend, etc. Even android dev I would do with Swift though I do not have the occasion for now.)<p>Apple will never drop ObjC support IMHO. But most new frameworks will be Swift-only.<p>SwiftUI is a step backwards from AppKit in the sense that we lose control over what’s possible when using it exclusively. But 1&#x2F; it’s much simpler for doing simple things and 2&#x2F; we can drop down to AppKit when needed. All in all, it’s good that we have it.
    • jshier7 hours ago
      Apple will likely never drop Obj-C, but it&#x27;s been a secondary language for years now. New frameworks are all written in Swift, Obj-C is only used for existing Obj-C codebases.
  • emehex7 hours ago
    I&#x27;ve noticed that developers who started with UIKit really have a hard time working with SwiftUI. I think this is because it&#x27;s not just new syntax, it&#x27;s an entirely different way to think: state is the source of truth, views are ephemeral, and you describe UI instead of managing it.
    • CharlesW6 hours ago
      &gt; <i>I&#x27;ve noticed that developers who started with UIKit really have a hard time working with SwiftUI.</i><p>I think this is true. SwiftUI became &quot;very good&quot; as of iOS 26 (in part because the performance gap mostly evaporated) and continues to get better in iOS 27. Over and over, I see UIKit developers trying to do things &quot;the UIKit way&quot; in SwiftUI, and they&#x27;d rather write TFAs instead of considering that they may need to skill up and learn to write effective and idiomatic SwiftUI.
      • oefrha14 minutes ago
        Now, if only that code you write for iOS 27 can also work on older versions of iOS, instead of having to maintain legacy code for old versions forever…
    • happytoexplain1 hour ago
      I have always treated state as the source of truth in UIKit. Every view gets an equatable state struct, and mutating it triggers an idempotent view update. Self-mutating views (e.g. inputs) back-propagate their state up the view hierarchy.<p>SwiftUI&#x2F;React&#x2F;etc don&#x27;t introduce that pattern, they simply <i>enforce it</i> (and add efficiencies).<p>If a developer isn&#x27;t familiar with the pattern, it&#x27;s not because they are a UIKit dev, it&#x27;s because they are inexperienced.
    • jshier7 hours ago
      Apple has been adding Observable support to UIKit as well, so it&#x27;s easier than ever for state to be the source of truth in UIKit too. Anyone writing more than simple UIKit apps has known that for a long time, it&#x27;s just big a huge pain to actually implement without a lot of custom code or a dependency like RxSwift. If Apple had embraced reactive programming 15 years ago, SwiftUI would be UIKit&#x27;s new layout system, not a whole new API.<p>Personally, SwiftUI makes the 80% so much easier that, even if the remaining 20% requires dropping down to UIKit, it&#x27;s worth it.
    • frizlab6 hours ago
      More or less the same happened with ObjC vs. Swift when it came out, I think.
      • happytoexplain49 minutes ago
        I don&#x27;t know, in my circles Swift was welcomed like a long-awaited friend. We loved ObjC, but none of the advantages ObjC has over Swift are relevant to <i>app dev</i>. Conversely, everybody recognized the beauty of most early Swift features, notably Optionals.
    • archagon6 hours ago
      It’s also not possible to make super bespoke interfaces without going against the grain of the framework: anathema to old school AppKit and UIKit devs.
  • peheje6 hours ago
    Despite all the trends, I still really like HTML for structure, CSS for styling, and JavaScript for logic.<p>The boundaries aren’t perfectly clean, and that’s fine. But the separation gives you a useful way to think: structure this first, style it later, add behaviour where needed.<p>My experience with Compose—though I suspect SwiftUI people will recognise the feeling—is that I have to think about everything, everywhere, all the time.<p>Then we add some MVVM&#x2F;UDF flavour. The &quot;ViewModel&quot; knows nothing about the view, despite usually serving exactly one screen. Add some &quot;MutableStateFlow&quot;s, combine them into &quot;ScreenUiState&quot;, expose it as a &quot;StateFlow&quot;, collect it with lifecycle awareness.<p>Beautifully decoupled. Extremely testable.<p>Then the organisation writes no unit tests and relies entirely on two-hour nightly screen tests.<p>A welcome-page refactor breaks the profile page.<p>“Didn’t you check the nightly build?”<p>No. It runs at night.<p>“Well, that’s your responsibility.”<p>But you broke it.<p>“Yes, but it’s your code.”<p>Then why did we ship it?<p>Fine. Schedule the postmortem with my mother.<p>And I’m not blaming mobile developers here. I’m frontend, backend, full-stack, I think AI engineer now. I have personally helped make simple things complicated across the entire stack.<p>What I like about the web is that one simple screen can be vanilla JavaScript. Another can use Vue. Another can use some specialised spreadsheet component.<p>People react to that with horror: what if components are duplicated, behave or look slightly different?<p>Fair concern. But that is real coupling with visible consequences and trade-offs. Somehow we have started treating coupling as something abstract that only exists inside code, rather than something that should produce an actual benefit when removed.<p>HTML. CSS. JavaScript. Or something close to it.<p>Maybe I’m getting old.
  • happytoexplain7 hours ago
    Autolayout, while flawed like anything else, remains the pinnacle of UI across all platforms.<p>SwiftUI is a laudable attempt to idiot-proof UI, but it sacrifices too much and ultimately fails.
    • frizlab6 hours ago
      I love Auto-Layout so much.
      • sunnybeetroot5 hours ago
        Make 320pt frame layouts great again<p>&#x2F;s
        • frizlab5 hours ago
          That’s the point of Auto-Layout, to be able to be responsive…
          • sunnybeetroot5 hours ago
            I edited the comment with &#x2F;s to make it more obvious that I was joking
  • pupppet6 hours ago
    If you’re just getting AI to build you an iOS app, is there any reason to use SwiftUI over UIKit?
    • dagmx5 hours ago
      Yes because SwiftUI is way more self contained and minimally verbose, it’s a better fit for LLM use than AppKit&#x2F;UIKit
  • emehex7 hours ago
    &gt; real, production-grade UI framework<p>What does this even mean? There are hundreds of thousands of apps in the App Store that are 100% SwiftUI. They are real. And they are very much &quot;production grade&quot;.<p>The only people still complaining about SwiftUI 7 years later are the UIKit holdouts that never took the time to properly learn how to use it.
    • brailsafe6 hours ago
      &gt; There are hundreds of thousands of apps in the App Store that are 100% SwiftUI. They are real. And they are very much &quot;production grade&quot;<p>The first is a statement of quantity, the second is a statement of quality, dubiously supprted by the first.<p>The Mac Settings app still lags between panes years after it was redesigned to look like iOS. I would think that if they had a viable way build a high quality and performant app with even relatively basic UI components (if they cared to do so) they&#x27;d do it for the 1 app that&#x27;s deployed to every mac.<p>SwiftUI does work in certain circumstances, and does work for allowing people to shit out their ideas faster, but it has struggled with the aspects described in the video. Some companies don&#x27;t care either, and turnaround time is paramount, but in this discussion it&#x27;s about quality compared to what came before.
  • sampton7 hours ago
    SwiftUI is gold compared to SwiftData.
    • myko35 minutes ago
      To be fair CoreData was always a footgun as well
    • emehex7 hours ago
      Agreed. SwiftData is terrible for anything more than like 2 &quot;Models&quot;. I have a bunch of apps written with SwiftData and a bunch more with GRDB... I hate touching the SwiftData ones.
  • Razengan8 hours ago
    I fell in love with SwiftUI the day it was announced, but as a solo dev I still haven&#x27;t been able to make a full app with it yet, mostly because of the lack of documentation, and the gaps where you still need to drop down to AppKit&#x2F;UIKit.<p>I went through Visual Basic, .NET, WPF, Cocoa, and other random frameworks all professing to be the promised panacea for UI, but I think SwiftUI+SwiftData is the best environment ever.. IF only it could reach its full potential, i.e. do everything that Apple&#x27;s &quot;legacy&quot; APIs can do.<p>I even tried using SwiftUI for games: <a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;5aTWbft.mp4" rel="nofollow">https:&#x2F;&#x2F;i.imgur.com&#x2F;5aTWbft.mp4</a><p>The biggest&#x2F;worst hurdle in the &quot;modern&quot; dev experience is Apple&#x27;s insistence on a yearly update cycle and the way they advertise those updates: You have to wait for the next WWDC and suffer through videos of uncanny-valley presenters, hoping to catch a glimpse of something that fixes the shit that was bothering you since the last WWDC.<p>3rd-party sites like hackingwithswift.com &amp; swiftwithmajid.com provide invaluable info that Apple&#x27;s own docs should.<p>At least the Swift language has been getting more regular updates since it went open source.<p>There&#x27;s no way I&#x27;d dare to take on a full Apple-platform app project alone on my own, but I&#x27;ve started dabbling in it again thanks to AI: Codex even converted an old app I made in Visual Basic 900 years ago and had it running in SwiftUI within minutes!<p>I&#x27;ve even tried to get AI to sift through the WWDC video transcripts so I won&#x27;t have to waste my mortal lifespan on that.
    • CharlesW5 hours ago
      &gt; <i>There&#x27;s no way I&#x27;d dare to take on a full Apple-platform app project alone on my own, but I&#x27;ve started dabbling in it again thanks to AI: Codex even converted an old app I made in Visual Basic 900 years ago and had it running in SwiftUI within minutes!</i><p>You may like my project <a href="https:&#x2F;&#x2F;charleswiltgen.github.io&#x2F;Axiom&#x2F;" rel="nofollow">https:&#x2F;&#x2F;charleswiltgen.github.io&#x2F;Axiom&#x2F;</a> (FOSS). I was in the same place a year ago, and initially created Axiom as a private skills suite before deciding that it was too helpful not to share.
    • steve19777 hours ago
      &gt; There&#x27;s no way I&#x27;d dare to take on a full Apple-platform app project alone on my own<p>And that&#x27;s really sad, because earlier Mac OS X (and even OPENSTEP to a degree) was an Eldorado for boutique developers, not least due to frameworks like Cocoa and Objective-C (despite all the hate it seems to get).<p>If you knew C, it was not hard to grasp Objective-C (at least it was much easier than say C++ and MFC on the Windows side of things).
      • Razengan7 hours ago
        That&#x27;s actually why I jumped from Windows to Mac in the first place!<p>My first Apple purchase was an iPad I got for my aunt, and I loved how streamlined yet powerful it was so I installed a VM on Windows to dabble in iOS development, and fell in love with the sheer <i>consistency</i> of macOS, iOS and their APIs.<p>This was during the era when Microsoft was still figuring out whether to keep the Start Menu and replace the whole Windows UX with a tablet UI, so it was an easy jump.<p>Almost never looked back, and whenever I do I&#x27;m glad I jumped.<p>Then came Swift and I loved it, but then it took literal years to catch up with everything you could do in Objective-C with the Apple APIs. SwiftUI is having the same problem but for much longer :(
    • zer0x4d7 hours ago
      Yeah I don&#x27;t really understand their insistence on these videos. I don&#x27;t have the time to watch an incredibly hard to watch present babywalk me through the code, hoping I&#x27;d catch one modifier I missed that fixes the issue. Just write some docs for god&#x27;s sake.
      • sunnybeetroot5 hours ago
        They update the docs every year. The videos are for people who want a demonstration instead of reading docs and trying things manually to see the result.
  • the-golden-one7 hours ago
    A similar story to WPF.
    • tonyedgecombe7 hours ago
      WPF was abandoned at birth, it went years without any attention and then was superseded.<p>Apple has at least been consistent on UI frameworks.
      • dgellow7 hours ago
        Sort of superseded. In practice WPF is still very often the best option in the complete mess that is window GUIs
        • masfuerte7 hours ago
          Yeah, I like WPF and I still use it for my own apps. In fact, my own software is the only thing keeping me on Windows now. I really should take a look at Avalonia and port my stuff over to Linux.
    • VCFundedGenYer6 hours ago
      I think you might have meant UWP.<p>WPF is still around and have been spruced up as of late.<p>UWP was the DOA Windows 8&#x2F;8.1&#x2F;10 app format that was super restrictive, strange to develop for, and non-portable. It&#x27;s basically MS&#x27;s equivalent of SwiftUI.
    • Razengan7 hours ago
      WPF was stamped out by lack of dogfooding = inability to inspire confidence, and then Microsoft spazzing out with that clusterfuck that was the Windows 8 &quot;Metro&quot; bullshit.<p>Back when I wanted WPF to succeed, Microsoft was barely using it in any of their own apps.<p>Apple has used SwiftUI in their OS more than MS&#x2F;Windows did, and there&#x27;s quite a few apps on the App Store that -seem- to be made with SwiftUI.
  • slopinthebag44 minutes ago
    Swift is the worst language I’ve ever used. For context I’ve used everything form JavaScript to C<i>++, and Rust is my choice these days.<p>Swift feels impenetrable. So much syntax and features that are “progressively disclosed” (horrible UX paradigm btw) but instead just jump at you, breaking threading semantics, and horrible tooling. It’s also the only language I </i>cant* get AI to perform decently well at, a double con.<p>I hate swift so much.
  • ardit337 hours ago
    SwiftUI it is the type of framework that makes the easy things easier to accomplish but the harder things harder.<p>It is a newbie trap. It is great at producing simple apps, or things that don&#x27;t require intense scrolling, or anything with heavy animations and precise layouts, but when you do something smooth, it is not it. It feels more of a React Native competitor, than a true UIKit replacement.<p>Also, almost everything that Apple has re-wrote with SwiftUI, came out worse as before (Settings, Spotlight, etc), and that doesn&#x27;t help.<p>With AI coding... SwiftUI lost its edge&#x2F;advantage (easy to layout screens), as now you code less of that directly, and might as well just go fo the framework that allows the most flexibility and gives you the best results for your users.<p>Apple really needs to either double down on it, and make it such that it has everything that UIKit has (match both features and performance), or just turn it into another optional framework, just as Interface Builder (.xib files) back in the day of Objective-C.<p>Right now it heavily promotes it as a first class citizen, meanwhile the features are not even parity with UIKit. It is so misleading to newcomers to the platform.<p>Ps. The other upsetting thing about SwiftUI, is that it has hurt the Swift language as well, as the team has had to introduce all kinds of hacks, or obscure features to the language in order to make it work, which made even the Swift language experience worse and more complicated than it should have been.
    • Razengan7 hours ago
      &gt; <i>With AI coding... SwiftUI lost its edge&#x2F;advantage</i><p>On the contrary, I think AI has made it EASIER to approach SwiftUI now, because AI makes up for SwiftUI&#x27;s biggest weaknesses: the many ways of doing everything, Apple&#x27;s wonky documentation and the need to know when to fall back to AppKit&#x2F;UIKit.
      • ardit337 hours ago
        Maybe for you. But SwiftUI promise was to make coding UI easier for the programmer similar to ReactN, but with AI coding that is not necessary anymore, you can go straight to UIKit which is most stable and feature complete.<p>In car terms:<p>UIKit - Manual Transmission - you control everything, but a bit of a chore<p>SwiftUI - Slushbox Auto Transmission - easier to drive, sucks for performance<p>UIKIT+AI Coding - Dual Clutch Transmission - both great performance, and easy to control&#x2F;drive
  • formvoltron8 hours ago
    Is the right way to develop mobile apps flutter? or Kotlin multiplatform plus native UIs?
    • rubymamis8 hours ago
      I know people would dismiss this, but I&#x27;m going to try to make the case for Qt - I&#x27;m currently converting my note-taking app to mobile and it&#x27;s going very well.
      • afidrya8 hours ago
        It&#x27;s licensing is expensive though unless the app is opensource.
        • gen2brain7 hours ago
          I heard this repeated many times. You can create closed-source Qt apps without paying any money. You cannot statically link, though; you must obey the LGPL license; that is all. And yes, you cannot use commercial modules, but that is kinda expected.
      • preg_match7 hours ago
        Yes, Qt is mature and high-quality software. If you’re doing OSS, then Qt is truly a no brainer. The amount of C++ you have to write is truly minimal, and it’s not “raw” C++. There’s a lot of tooling and libraries. You can target web now too, and QML is legitimately good.<p>If KDE can develop a high performance stable desktop, you can design whatever.
      • palata7 hours ago
        I have been involved in two non-trivial Qt mobile apps. Never again.<p>I don&#x27;t know what your experience is, and I mean no offence or anything, but the only people I have seen who were happy with Qt for mobile development were people who had never tried to do it with a modern language, like Kotlin.<p>With Compose Multiplatform and Kotlin Multiplatform, you can write a cross-platform app in a modern language, and that is far better than C++.
    • danscan8 hours ago
      There is no right way :)<p>SwiftUI is good, albeit not without issues, as long as you tolerate them. The same is true for any approach. My most recent app was built in SwiftUI because I have been using React Native in my professional work for so long I wanted a change of scenery.<p>Each approach has its issues, and it all boils down to a matter of preference and which tradeoffs are appropriate for the project.
      • rumori7 hours ago
        I’ve worked on some award winning apps in the past, our experience with SwiftUI is it makes it really easy to develop a basic average looking app. As soon as you need something non-standard, you have to drop down to UIKit and figure out how to play nice between the two, which is often non trivial and hard to estimate. You file radars, which at best will be fixed in the next OS release and rarely back ported if at all. In the end some of the more complicated apps just ditched SwiftUI altogether or applied a myriad of workarounds.
    • palata7 hours ago
      What I like about Kotlin Multiplatform (KMP) vs Flutter is that KMP is not a framework. For instance, I can write a KMP library and a &quot;pure&quot; Android or iOS app can pretend it is a &quot;pure&quot; Android&#x2F;iOS library.<p>That is, pure native apps, can integrate KMP libraries. They cannot integrate Flutter libraries.<p>In other words, if I write a KMP library, I can ship it for multiple platforms and developers can use it in their Flutter project, or in their pure Android&#x2F;Kotlin project, or in their pure iOS project.
    • krzyzanowskim7 hours ago
      Flutter is not the &quot;right way&quot;, due to the nature of Flutter being a lousy reimplementation of a UI frameworks.
    • ducktective7 hours ago
      I wonder what experts think of this other option: going fully native for one platform then vibe-porting it to others.
      • palata7 hours ago
        It&#x27;s never &quot;just working&quot;, you&#x27;ll still have to debug the vibe-ported apps. And you won&#x27;t be good at it if your devs don&#x27;t actually know the target platform.<p>All that to say, I don&#x27;t think that vibe-porting will give you more than cross-platform. With cross-platform, at least your engineers understand the codebase.
    • randyrand7 hours ago
      I developed a complicated app in Flutter and it’s one of the best engineering decisions I made. Flutter is great.
    • frizlab6 hours ago
      Neither.
    • SV_BubbleTime7 hours ago
      Flutter has been a great success for us.
      • rumori7 hours ago
        Same here, but Liquid Glass has been a headache lately. Google really dropped the ball here, but to their credit it almost feels like Liquid Glass was an intentional move by Apple to cause as much friction for cross platform frameworks as possible.
    • livinglist8 hours ago
      Define right, it’s hard to replicate the native UI especially Liquid Glass on iOS because it’s rendering everything using its own rendering engine, making it hard to feel right on iOS. I have also seen a lot of companies move away from flutter to either native or React Native.
      • lowbloodsugar7 hours ago
        Well we all love Liquid Glass. Most loved UX update in iPhone and macOS history. Massive dealbreaker for an app not to look like Liquid Glass. I definitely choose apps based on whether they look like proper Liquid Glass applications instead of the developer taking shortcuts and focusing on working features instead.
        • lelandfe7 hours ago
          You jest but yes, even as I do not love this new update, an application bucking Apple platform standards personally sours me pretty hard on it.
        • livinglist7 hours ago
          Well I’m a heavy Flutter user myself, and the app I built Hacki often gets reviews saying it doesn’t feel native on iOS. I personally don’t have anything against it and I think Flutter has the <i>BEST</i> developer experience compared to other mobile app dev toolkit&#x2F;SDKs.
        • afavour7 hours ago
          I despise Liquid Glass too but for most users there’s a broad feeling of “it fits” vs doesn’t. And apps with Liquid Glass fit today’s iOS.
  • zer0x4d7 hours ago
    SwiftUI was doomed from the beginning. Not only Apple completely blew the implementation, it was actually DoA by a bunch of super bad decisions that ultimately make it incredibly hard to work with and manage, especially on bigger apps.<p>1. It uses the builder pattern for views (familiar to those who used Java) but for some reason they decided to make it so that the order of the modifiers in the builder matters. Each modifier doesn&#x27;t actually modify the main view but it modifies what the modifier before it decided to return. This makes no sense as the modifiers should each be modifying the main view to make everything predictable and easy to debug. I&#x27;m convinced no one (not even senior devs with 5 years of SwiftUI experience) understands how the ordering of modifiers works. It&#x27;s just swap them until it does what you want it to.<p>2. The view lifecycles and code execution path seem random and hidden behind layers of &quot;magic,&quot; making it incredibly difficult for developers to trace and debug issues.<p>3. It is practically impossible to set breakpoints for rendering and view construction, it&#x27;s impossible to really figure out when re-renders happen and what drives them. I&#x27;m convinced SwiftUI apps are incredibly slow not because the SwiftUI implementation itself is slow, it&#x27;s because, even Apple&#x27;s own apps probably do a bunch of unnecessary re-renders and one no one seems to have any idea. This is unfortunately another design issue that can&#x27;t be solved by just making SwiftUI more efficient. It requires simplification and tooling to help developers not footgun themselves.<p>4. Lots of issues start appearing later on in the development cycle because, for simple apps, bad SwiftUI design decisions and footguns have unnoticeable effects, until the apps gets more complex and things start breaking. Fixing these issues sometimes requires rewriting whole features or spending hours debugging.<p>5. There seems to be almost no documentation on Liquid Glass. It&#x27;s laughable that after more than 1 year, Apple has simply refused to document or provide good examples for Liquid Glass, except for maybe couple pages that resemble the brain dump of an engineer that has never passed a writing class in college?<p>6. Stuff seems to be rapidly changing and breaking from version to version. It took days to make my app look and work the same in iOS 27 as it did on iOS 26, even though iOS 27 is supposed to be a minor bug fix release. We don&#x27;t even use anything non-standard and don&#x27;t do any hacks. This defeats the whole purpose of a simple UI framework that can be easily adopted to different platforms (this never used to happen with UIKit).<p>7. View debugger still has no SwiftUI equivalent. It used to make things so much simpler in UIKit when you could just see the view bounds, pick views apart and understand what&#x27;s actually happening. SwiftUI has no equivalent other than `.background(.red)`. Terrible.<p>I don&#x27;t know how Apple can salvage this beyond just undoing some of these terrible design decisions and making it 1. super simple to work with, 2. stop relying on magic, making things more explicit, and 3. providing actual 1:1 UIKit feature parity.
    • jshier7 hours ago
      1. It&#x27;s not really the builder pattern, which, in Java, is what you describe as wanting: mutating a single instance. SwiftUI uses result builders to compute a single generic View from the &quot;DSL&quot;, but you could do the same thing without the custom syntax, it would just be more verbose.<p>2. Documentation issue. The lifecycle is standardized, but Apple is terrible as documenting it all in one place. I found this year&#x27;s &quot;Dive into lazy stacks and scrolling with SwiftUI&quot; WWDC video actually had a pretty good explanation, at least for the lifecycle within lazy containers.<p>3 and 7. Yes, Apple&#x27;s tools suck pretty bad. Preview canvas is also still terrible, despite multiple attempts to improve.<p>4. Not something I&#x27;ve experienced, not sure what you mean.<p>5. Yeah, Apple&#x27;s docs suck.<p>6. Not sure what you mean here either, our stuff looks pretty much the same.
    • palata6 hours ago
      Apple seems to be loved by users, but hated by developers (and for good reasons). They just seem to not give a shit about the developer experience.<p>You mention some examples, I have experience with lower-level stuff: terrible. Poorly documented, and actually not really working well.<p>IMO they should focus on improving the developer experience instead of wasting money on the joke that is Liquid Glass (even users don&#x27;t like it, right?). But anyway, too late for me: I&#x27;m soooo happy that I can develop iOS apps in Kotlin now, and just endure Xcode for building and occasional debugging.
      • mpweiher6 hours ago
        This used to be different. NeXTstep and early MacOS-X were pretty much the finest platforms to develop on.
    • sandoze6 hours ago
      Just a couple points because your opinions aren’t wrong, they’re just your lived experience.<p>2. There’s no magic here. There is poor documentation. The biggest trick — small views, think about what values are going to trigger a refresh. Avoid cascading view refreshes.<p>6. You might have missed a couple big iOS releases (iOS 7 was one to remember) where many of our apps fell over in UIKit. Swift was another ‘DOA’ for YEARS with the same issues you’re making here, each new version broke the old, but here we are in a day and age where it’s the standard.
  • fenestella38 minutes ago
    [flagged]
  • migueldeicaza7 hours ago
    skills issue
    • mpweiher7 hours ago
      <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Poe&#x27;s_law" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Poe&#x27;s_law</a>
      • migueldeicaza7 hours ago
        Let me rephrase, he is not the sharpest knife in the drawer.<p>In my professional medical opinion, he is at high risk of being replaced by a year old low-end Chinese open source LLM.
    • migueldeicaza7 hours ago
      I joked, but reading the post is even more clear - man this poor dude.<p>He is brute forcing his way through life and broadcasting it on YouTube.<p>Dunno man, Xogot is made up of almost half a million lines of code. Of those 727 files use SwiftUI, and 65 use UIKit, 119 use AppKit (I did not count the overlap, so they are not mutually exclusive).<p>Using GeometryReader makes it clear he is living in the past and the fact that he uses printChanges in this year without mentioning the dedicated SwiftUI instrument show a lack of curiosity on the space.
    • lysace7 hours ago
      Somehow you being the GNOME co-creator made me curious about what the GTK&#x2F;GIMP creators (Kimball, Mattis) are up to. CockroachDB, it seems. It&#x27;s weird how it&#x27;s so easy to miss these connections.
      • migueldeicaza7 hours ago
        yeah, I often check on them - love watching what they are up to.
  • palata6 hours ago
    Maybe unrelated, but as an Android dev, a few years ago I wanted to look into SwiftUI.<p>But now I feel like for most apps, I should be fine with Compose Multiplatform and Kotlin Multiplatform. I don&#x27;t see the point of learning SwiftUI anymore.
    • frizlab6 hours ago
      Well you could do android apps using SwiftUI ¯\_(ツ)_&#x2F;¯