@millenomi@lily.network
@millenomi@lily.network avatar

millenomi

@millenomi@lily.network

Switchy hypnokink top and Lady of dork repute, singularity upon the face of this shadowed earth.

Fixer, weaver, lover, spy. (🔞)

This profile is from a federated server and may be incomplete. Browse more on the original instance.

christianselig, to random
@christianselig@mastodon.social avatar

What is the "SwiftUI way" to prevent an unrelated view from updating as a result of a model change? I know I can separate into a separate view, but it feels off for something so simple. Totally cool if that's the way, just want to make sure!

Code: https://gist.github.com/christianselig/2ae2e42d5edc3ffab513f5d7af72d740

millenomi,
@millenomi@lily.network avatar

@christianselig The two structures you've build are essentially equivalent to SwiftUI?

millenomi,
@millenomi@lily.network avatar

@christianselig oh, sorry, no, I see what's happening. This is correct as an optimization technique if you are seeing unwanted updates, but it's not correct to have unwanted updates that depend on unobservable phenomena (like arc4random_uniform does.)

millenomi,
@millenomi@lily.network avatar

@christianselig if your body code being reevaluated is producing incorrect behavior, it's typically because you are relying on a change that SwiftUI cannot observe? That's as intended. body is supposed to be robust and produce the same result for the same SwiftUI-observed state.

millenomi,
@millenomi@lily.network avatar

@christianselig Splitting out so that you only get the dependency on the child view is the way to do it.

fucsia, to random Italian
@fucsia@puntarella.party avatar

Dopo aver assistito ad un confronto, ho un po' paura che diversə non rinnoveranno la tessera dell'anarchia del 2025

millenomi,
@millenomi@lily.network avatar

@fucsia
> vede anarchia che stampa tessere
>

davidbures, to SwiftUI
@davidbures@mstdn.social avatar

Is there something I'm misunderstanding about detecting if a .searchable field is focused in SwiftUI? I'm trying to use @Environment(\.isSearching) to detect if the search field is currently focused.

In the attached video, you can see that the isSearching environment var is true even after the keyboard is dismissed and the field is no longer focused.

The (very ugly) code: https://pastes.io/cfqejgpgbe

@swiftui

Searchable demo that doesn't work

millenomi,
@millenomi@lily.network avatar

@davidbures If the field is not empty, the user is searching.

millenomi,
@millenomi@lily.network avatar

@davidbures

  • ¯_(ツ)_/¯
  • That is not available. In general, focus on the field should not cancel or alter a search. What are you trying to do?
danilo, to VisionPro
@danilo@hachyderm.io avatar

The biggest thing I see folks getting wrong about is to imagine that it's just a great volume for placing two dimensional surfaces.

And that's like imagining television as a way for seeing the people who read your radio plays.

I mean, sure, you can do it, but you're barely using the power of the new medium.

The real opportunity is that Vision Pro is a holographic simulator that allows developer code to reason about the user’s 3D reality.

Integrating that opportunity is the work.

millenomi,
@millenomi@lily.network avatar

@drahardja @danilo NSItemProvider.

millenomi,
@millenomi@lily.network avatar

@drahardja @danilo It is also useful in itself to have apps in 3D space, 2D or 3D; the infinite display is a boon by itself. Lastly: not everything has to have a depth extent and often it is actively detrimental to overdo it; there is no user vocabulary for those interactions yet.

millenomi,
@millenomi@lily.network avatar

@drahardja @danilo What I'm doing right now.

christianselig, to random
@christianselig@mastodon.social avatar

Before I start spelunking, with certain visionOS components like Slider, when you select and deselect them they make a nice visionOS sound. Is that selection sound a public API?

millenomi,
@millenomi@lily.network avatar

@christianselig no, sorry. You can get it by using built-in controls where possible (eg. using a button with a custom label rather than a custom view with onTap…), but in your case you may need to ask for new API via Feedback Assistant.

Manu, to random
@Manu@puntarella.party avatar

1/2
Ancora non riesco a capire perché le corporations stanno facendo di tutto per eliminare il remote working.
I numeri sono tutti largamente a favore, la performance degli impiegati è migliorata ovunque (in alcuni casi raddoppiata o triplicata), sono tutti più felici, si inquina meno (no commuting), c'è un risparmio incredibile perché i costi di mantenimento degli uffici sono letteralmente a carico dei dipendenti (dalla nuda proprietà ai servizi alle bollette di luce gas acqua e perfino mensa e caffè), si viene incontro a spese zero alle esigenze degli impiegati con disabilità e neurodiversità, nonché alle esigenze di famiglia e personali... Insomma, sulla carta e nei fatti è una scelta vantaggiosissima per le aziende in primis che ha solo ricadute positive ➡️➡️

millenomi,
@millenomi@lily.network avatar

@Manu @oblomov almeno qui in USA, l’ultimo o di un ufficio è metodo di controllo del tempo del lavoratore:

  • Se sei in una specifica posizione, puoi essere osservatə o monitoratə più facilmente;
  • Se devi viaggiare, sei incentivatə a rimanere più a lungo per eg finire una mansione prima di tornare;
  • È possibile usare la trasferta obbligata in altra sede come metodo di “soft-firing” per cui si porta il lavoratore a scegliere le dimissioni piuttosto che spostarsi, aggirando le leggi e i diritti.
millenomi,
@millenomi@lily.network avatar

@Manu @oblomov Inoltre, le aziende grandi spesso qui spendono forte nella costruzione di un quartier generale come dimostrazione di forza, e quindi sono incentivate a giustificare le spese pregresse.

millenomi,
@millenomi@lily.network avatar

@Manu @oblomov mi sono scordata:

  • Se si è spostatə per trovare lavoro presso la sede di un‘azienda, il lavoratore è disincentivato a cercare una posizione differente (perché ora può essere necessario contare le spese di trasloco altrove) e quindi ha meno potere nello scegliere se cambiare lavoro.
millenomi, to random
@millenomi@lily.network avatar

se una notte d’inverno una viaggiatrice

millenomi, to random
@millenomi@lily.network avatar

You. Cannot. Write. “Oh, what’s up? Am I smart all of a sudden?” as a line for Harley Quinn.

she has a PHD, for darkness’s sake

millenomi, to random
@millenomi@lily.network avatar

nothing like trying to negotiate the COVID safety of a family gathering to remind you that, if you are an inch out of the area of the curve people apply their high-pass to, whether because you're trans, disabled or not ‘COVID is over'-ing, every inch becomes a fucking negotiation with people who have zero intuitive ability to believe you

millenomi, to random
@millenomi@lily.network avatar

Every time someone says, “<some UI> is complicated because of necessary complexity”, I grind my teeth, because time and again complex UIs have been revisited to adapt them and lower their impedence and there's ways to tighten every hecking time.

Most recent example I heard: "Blender's UI is complex because of necessary complexity!”
Fun fact: the way you add a planar hexagon in Blender is, turns out, "Add > Mesh > Add Circle.”

animefeminist, to random
@animefeminist@mstdn.social avatar
millenomi, (edited )
@millenomi@lily.network avatar

@animefeminist The BanG Dream It’s MyGO!!!!! vibes… terrible… sublime

millenomi, to random
@millenomi@lily.network avatar

I did not expect this roguelike to go this hard.

millenomi, to random
@millenomi@lily.network avatar

… I want a good hotswap mechanical keyboard with low profile switches available that don’t feel like mushy bs…

millenomi, to random
@millenomi@lily.network avatar

I'm happy they adapted I'm In Love With The Villainess, because I knew this scene was coming and now we have a new, Incredibly Powerful Meme

millenomi, to mtg
@millenomi@lily.network avatar

jesus fricken crhibst I am so tired of purportedly high-level discourse rehashing bits that are obviously answered by either long-standing evidence or new developments

even on the silliest things at this point

e.g., any podcast who goes “but who buys collector boosters of ??????” without anyone immediately interjecting “this is wotc’s instrument to control secondary market pricing” has to go immediately to the Ultrashame Zone

ryanhoulihan, to random
@ryanhoulihan@mastodon.social avatar

My whole body cringes when I think about Elon Musk even for a fleeting second. What a mortifying person.

millenomi,
@millenomi@lily.network avatar

@ryanhoulihan a living reminder that one cannot buy respect.

philpem, to mtg
@philpem@digipres.club avatar

Is Magic: The Gathering considered Turing complete?
I'm just getting started and the rules are making me think it should be.

millenomi,
@millenomi@lily.network avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • GTA5RPClips
  • thenastyranch
  • tacticalgear
  • ethstaker
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • Youngstown
  • mdbf
  • khanakhh
  • slotface
  • rosin
  • provamag3
  • kavyap
  • everett
  • cisconetworking
  • Durango
  • modclub
  • osvaldo12
  • tester
  • Leos
  • cubers
  • normalnudes
  • megavids
  • anitta
  • lostlight
  • All magazines