Definitely comes down to preference β I'd rather not have the machinery there if I'm not planning on using it. (Although, in practice this is what I'm forced to do.)
The other big issue is that you can't retroactively add Observable to an existing class/3rd party library.
09.12.2024 13:50 β π 1 π 0 π¬ 0 π 0
Hmmm, I'm not sure it's so clear cut! The alternatives are to a) create a regular EnvironmentValue and force unwrap the reference, or b) Just conform your service to Observable anyway and then hope you remember to opt-out of observation where necessary (which seems equally foot-gun prone!)
09.12.2024 13:32 β π 0 π 0 π¬ 1 π 0
SwiftUI Environment Service
SwiftUI Environment Service. GitHub Gist: instantly share code, notes, and snippets.
Yes, I think we're talking about slightly different use cases. I'm talking about something like this:
gist.github.com/tcldr/965510...
09.12.2024 13:28 β π 0 π 0 π¬ 0 π 0
(To be clear, Iβm talking specifically about types/dependencies where you donβt intend to observe any state, just call methods on or pull state in the context of an action.)
09.12.2024 09:24 β π 0 π 0 π¬ 0 π 0
Shouldnβt do, because even with an Observable reference, changes to the environment reference do seem to cause the view to recompute. AFAICT, this has nothing to do with the Observable type, just the Environment property wrapper doing its job.
09.12.2024 08:39 β π 0 π 0 π¬ 1 π 0
Iβm still not quite sure why we canβt use this mechanism for non-observable reference types, too.
08.12.2024 19:56 β π 1 π 0 π¬ 2 π 0
They baited the industry flawlessly. Hats off to Jaguar. One for the marketing textbooks.
03.12.2024 11:16 β π 0 π 0 π¬ 0 π 0
YouTube video by Jaguar
Jaguar Type 00 | Copy Nothing Miami
Everyone wetting their pants about a not great Jaguar teaser can eat sh*t (The Daily Mail can drown in it). They made you look tho, didn't they, so whose the sucker!? This vision for the future of electric vehicles is beautiful and bold. Proud of British design. www.youtube.com/watch?v=Zqt7...
03.12.2024 03:05 β π 1 π 1 π¬ 1 π 0
Product Designer Mike Lee has open-sourced all his SwiftUI explorations, which is very valuable. github.com/mikelikesdes...
18.11.2024 12:03 β π 78 π 18 π¬ 0 π 1
So, letβs see how this platform goes.
10.11.2024 19:12 β π 5 π 0 π¬ 0 π 0
App developer & mini painter. I make apps and break things.
UIKit. Swift. Gaming. Warhammer. Generative AI. Husband. π³οΈβπ He/him.
[bridged from https://mastodon.social/@stroughtonsmith on the fediverse by https://fed.brid.gy/ ]
Apple Fellow, Illumina Director, Boston College trustee, Bowdoin College trustee. Sometime scuba diver, drummer, gamer, photographer, sci-fi reader, and traveler.
We're an Al safety and research company that builds reliable, interpretable, and steerable Al systems. Talk to our Al assistant Claude at Claude.ai.
Flatcar Container Linux is the leading community-driven, container-optimized, auto-updating Linux distribution, homed in the Cloud Native Computing Foundation.
A programming language empowering everyone to build reliable and efficient software.
Website: https://rust-lang.org/
Blog: https://blog.rust-lang.org/
Mastodon: https://social.rust-lang.org/@rust
Dad, husband, President, citizen. barackobama.com
An upcoming Bluesky Client for iOS/iPadOS & Mac from the makers of Tweetbot and Ivory.
Please don't take it personally if we don't respond often with this account. We are extremely busy working on Phoenix.
https://tapbots.com/phoenix
Swift is a general-purpose programming language that's fast, modern, safe, and a joy to write. Designed for all, developed in the open.
Amanda Katz said this was the cool kids table.
Building Astral: Ruff, uv, and other high-performance Python tools, written in Rust.
Screw it, let's do it.
Proof it's the real me: https://www.linkedin.com/posts/rbranson_richard-branson-richardbransonbskysocial-activity-7267516793689124864--I14
Here's my blog: https://www.virgin.com/branson-
π«π· in πΊπΈ
NYC π½
Frontend tango.us
Three.js, Shaders, React, Next.js
Thoughts and learnings on https://blog.maximeheckel.com
Work on https://maximeheckel.com
founder of palette.fm (ai colorization). former resident at google. into AI art, indie hacking, internet education, indie research, and traveling.
Entrepreneur
Costplusdrugs.com
Britain's best-selling news and current affairs magazine with a unique mix of jokes and investigative journalism.
Website: https://private-eye.co.uk
Subscribe: http://subsonline.co.uk
Moving pixels, interested in distributed systems, sometimes doing open source, mostly for Swift distributed actors.
Independent AI researcher, creator of datasette.io and llm.datasette.io, building open source tools for data journalism, writing about a lot of stuff at https://simonwillison.net/
Subterranean homesick mathematician. Co-host of @pointfree.co.
https://www.fewbutripe.com
Political Editor, Presenter and Podcaster, Sky News. RTS Political Journalist of the Year. Electoral Dysfunction podcast out every Friday
UNHCR GOODWILL AMBASSADOR
SEVERANCE PERSON
KNICKS