Posts

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

christianselig, to random
@christianselig@mastodon.social avatar

SwiftUI noob question: I understand why my ViewModel is being initialized twice, but why is it not being deinitialized?

It's created, then a second later when appState.show is changed, the view is recomputed, and view, and its ViewModel, are created anew. Cool! But why is the old one not deinitialized? What's holding onto it?

Sample code: https://gist.github.com/christianselig/d88b1a4d1989b973689ae62d4691162f

christianselig,
@christianselig@mastodon.social avatar

So basically it seems like a weird choice of the new Observation framework, in that @​State doesn't use an autoclosure like @​StateObject (which allows it to be smarter about duplicates), which is unfortunate design and causes @​State to create instances without really needing to, but it’s at least documented with a weird workaround

My ViewModel is a bit heavy so having them be randomly allocated is kinda rough

So, back to StateObject I go (for this at least)!

https://iosdev.space/@alpennec/112472185803890091

groue,
@groue@hachyderm.io avatar

@christianselig @alpennec You might appreciate this previous discussion: https://hachyderm.io/@groue/112320846092536694

christianselig, to random
@christianselig@mastodon.social avatar

iPhone 15 Pro’s been my best battery performer by a mile, damn. All MagSafe charging too pretty much

justindumlao,

@christianselig same! Been using a mix of optimized charging and 80% limit when I’m in “normal life mode” and turning off optimization only when I’m traveling and need as much percentage as I can get

christianselig,
@christianselig@mastodon.social avatar

@justindumlao Dang, nice, I hope to still be at that 100% in another 30 charging cycles

christianselig, to random
@christianselig@mastodon.social avatar

Dumb question, but if I bought one of those "MagSafe stickers" on Amazon, that are traditionally used to give an Android phone MagSafe-like-stickiness, could I instead use it in reverse, and stick it to a non-MagSafe accessory so it would stick to my iPhone?

For instance, say I want to stick it to a banana so the banana magnets to my phone

dwineman,
@dwineman@xoxo.zone avatar

@christianselig This document may aid you on your journey, particularly starting on page 156 https://developer.apple.com/accessories/Accessory-Design-Guidelines.pdf

christianselig,
@christianselig@mastodon.social avatar

@dwineman Damn, this is the ultimate answer! Thank you!

christianselig, to random
@christianselig@mastodon.social avatar

Update on long USB-C cable journey: bought this 15-foot one per recommendations and it's been awesome, not too thick, charges great (only loses 3W versus a 3 ft cable when charging at 100W)
https://mastodon.social/@christianselig/112378065694461950

christianselig,
@christianselig@mastodon.social avatar

@jpsirois I picked it up when I was in the US last :(

jpsirois,
@jpsirois@mastodon.social avatar

@christianselig Oh, I see! Next time bring me one back 🤣

christianselig, to random
@christianselig@mastodon.social avatar

Does launching a build with the debugger attached on Vision Pro take forever for anyone else? It's near instant on the simulator, but even after the data is transferred to the device, the actual launch screen hangs out for like 10 seconds (so I don't think dev strap would help?)

dzamir,
@dzamir@mastodon.uno avatar

@stroughtonsmith @christianselig but there was also a time after that, when Xcode run with the debugger by default and everything was also instant 😅

artificer_chris,
@artificer_chris@mastodon.social avatar

@christianselig It is indeed debugger attach and load time, and no, the developer strap doesn't help. In fact, the wireless seems faster, at least with my router. But it's not hard to beat USB 2 speeds by wifi, these days.

christianselig, to random
@christianselig@mastodon.social avatar

After drawing on my iPad screen for years and getting jittery lines, this video and the fact it was my screen protector blew my mind. Is there a screen protector that doesn't do this? And isn't matte, because despite drawing nice those destroy the colors

https://www.youtube.com/watch?v=y93YcZQaV8c

mattdarveniza,
@mattdarveniza@mastodon.social avatar

@christianselig Some time after the iPhone X Apple switched glass on most of their touchscreens to something that is more shatterproof but much easier to scratch. I had my X for 5 years with no scratches, the 14 Pro I have is already super scratched up :/. I'd rather the scratch resistance than being semi-drop-proof

christianselig,
@christianselig@mastodon.social avatar

@michael Works great for drawing but the colors look so much worse for watching video and whatnot

christianselig, to random
@christianselig@mastodon.social avatar

me wondering why I have to clean out my macbook fans every few months

TangoAndToys,
@TangoAndToys@sfba.social avatar

@christianselig Are you running it to get the CPU and GPU temps up so it's warm and comfy? Or is the kitty needing it to cool down?

christianselig,
@christianselig@mastodon.social avatar

@TangoAndToys I think she just likes the feeling of the fan spinning haha

christianselig, to random
@christianselig@mastodon.social avatar

noooooo

iKyle,
@iKyle@mastodon.social avatar

@christianselig Proxyman > ab.chat..../v1/initialize

Override by "Map to local" and replace all "false" with "true".

Don't know which one is actually required. I just replaced everything with true, instead of doing them one at a time to find which set is the minimal needed change.

gh0sti,
@gh0sti@mastodon.social avatar

@christianselig Siri is getting this integrated in iOS 18.

christianselig, to random
@christianselig@mastodon.social avatar

That ChatGPT voice demo was just bonkers

balshaw,
@balshaw@mastodon.social avatar

@christianselig 🤯 and we thought Siri was bad before…!

rrigby,
@rrigby@mastodon.social avatar

@christianselig It was super impressive… but… How useful can it be if you can’t trust what it tells you 😬

When we can start trusting the outputs more then this will become insanely useful 😳

christianselig, to random
@christianselig@mastodon.social avatar

The wildest bag someone recommended from this post is the TomToc Navigator. It's 40L, but only weighs 2.8 lb, has water bottle holders, compression straps, great laptop/iPad compartment, and one massive clamshell bucket for clothes. And it's only $80, which concerningly cheap

If they used X-Pac or a nicer material it could be even lighter and more durable, add in stowable straps, would be an absolute slam dunk
https://mastodon.social/@christianselig/112417643959065431

ahmetasabanci,
@ahmetasabanci@mastodon.social avatar

@christianselig I’ve been using the 17L model of that bag for daily stuff and short work trips and I love it. It has all the high quality stuff I look for in the bag and my go-to recommendation for people now.

Porgey,
@Porgey@mastodon.social avatar

@christianselig Ah okay! Yeah my bad, I looked at the 30L 😂

christianselig, to random
@christianselig@mastodon.social avatar

Sometimes I forget there was a period of television where new episodes of Community, Parks and Recreation, 30 Rock, and The Office all aired back to back on the same night

thillsman,
@thillsman@mastodon.social avatar

@christianselig A golden era. I wish there was a way to know you're in the good old days before you've actually left them.

christianselig,
@christianselig@mastodon.social avatar

@thillsman 🥲 tearin up

christianselig, to random
@christianselig@mastodon.social avatar

Choosing a travel backpack is really hard, and I still haven't found one I love, so mostly for my own reference I wrote a long post with thoughts on pretty much every travel backpack out there https://christianselig.com/2024/04/choosing-a-backpack-is-hard/

If you have other recommendations gimme

sizemo,
@sizemo@mastodon.social avatar

@christianselig the Peter McKinnon branding is a bit cringe and it’s heavier than you want, but it’s a great bag. I’ve done a week in it. https://www.nomatic.com/products/camera-pack

christianselig,
@christianselig@mastodon.social avatar

@sizemo Dang that looks like a gorgeous bag, but yeah the weight is a little rough :(

christianselig, to random
@christianselig@mastodon.social avatar
MuseumShuffle,
@MuseumShuffle@mastodon.social avatar

@jefframes @christianselig yeah I leaned over and said to Roddy that I couldn’t believe that he wasn’t nervous.

christianselig,
@christianselig@mastodon.social avatar

@MuseumShuffle @jefframes You two are a perfect example how a compliment can really make someone's day!!

christianselig, to random
@christianselig@mastodon.social avatar

Any recommendations for USB-C to C charging cables over 10 feet/3 meters long? USB 2.0 speeds are fine, no video transmission needed, just want 100W of power delivery and ideally not as thick as a garden hose

christianselig,
@christianselig@mastodon.social avatar

@mikerastiello Not over 10 feet unfortunately

gh0sti,
@gh0sti@mastodon.social avatar

@christianselig https://a.co/d/3t49v42

This one works for me

christianselig, to random
@christianselig@mastodon.social avatar

Nothing makes you realize you have a problem like an Apple Store survey

MuseumShuffle,
@MuseumShuffle@mastodon.social avatar

@christianselig did they not have room to include SuperDrive?

phi1997,

@christianselig
Why don't you go over your old receipts too, for old time's sake?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • megavids
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • provamag3
  • tester
  • Leos
  • JUstTest
  • All magazines