@christianselig@mastodon.social avatar

christianselig

@christianselig@mastodon.social

iOS developer, creator of Apollo and Pixel Pals. Previously at . he/him. i love animals. 🌱

This profile is from a federated server and may be incomplete. View on remote instance

christianselig , to Random stuff
@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 OP ,
@christianselig@mastodon.social avatar

@tclementdev Hmm just as a fun experiment? Button vs Dispatch doesn't change the behavior

christianselig OP ,
@christianselig@mastodon.social avatar

@tjadejong StateObject isn't used in iOS 17 with the new Observable framework

christianselig OP ,
@christianselig@mastodon.social avatar

@khaost It does yeah

christianselig OP ,
@christianselig@mastodon.social avatar

@marcpalmer Alas no, dispatch after doesn't hold a strong reference to its contents

christianselig OP ,
@christianselig@mastodon.social avatar

@rockbart That is just bizarre

christianselig , to Random stuff
@christianselig@mastodon.social avatar

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

christianselig , to Random stuff
@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

christianselig OP ,
@christianselig@mastodon.social avatar

@bigzaphod Holy crap, I really need to do this!

christianselig OP ,
@christianselig@mastodon.social avatar

@heals That was kinda my thought process too, hrm. I suppose I could superglue it to the banana

christianselig OP ,
@christianselig@mastodon.social avatar

@heals You'd only get like half the gripping power though, right?

christianselig OP ,
@christianselig@mastodon.social avatar

@HilliTech Oooo, perfect! Thank you! None of them seem to have the "neck" part that MagSafe stickers have though, do they?

christianselig OP ,
@christianselig@mastodon.social avatar

@brennansv ah thank you! So sticky side up?

christianselig OP ,
@christianselig@mastodon.social avatar

@nor could you elaborate on that last sentence?

christianselig OP ,
@christianselig@mastodon.social avatar

@d4v what if you flip them over? If not possible, what if you flip the phone 180° vertically?

christianselig OP ,
@christianselig@mastodon.social avatar

@nor Ah yeah gotcha!

christianselig , to Random stuff
@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 OP ,
@christianselig@mastodon.social avatar

@rvkennedy I'm not sure I get the reference ;_;

bigzaphod , to Random stuff
@bigzaphod@mastodon.social avatar

Which comes first… async or throws? try or await?

I always get these wrong no matter which order I attempt first.

It's like a USB-A plug!

Does this make Swift USB-compatible?

christianselig ,
@christianselig@mastodon.social avatar

@bigzaphod It's alphabetical except when it isn’t

christianselig , to Random stuff
@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?)

christianselig OP ,
@christianselig@mastodon.social avatar

@stroughtonsmith Ooo, that's a good tip, thank you! So do you figure all that time is attaching the debugger?

christianselig , to Random stuff
@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

christianselig OP ,
@christianselig@mastodon.social avatar

For the "don't use a screen protector crowd", on one of my iPads I don't, and now it has a little scratch on the screen that makes my brain cry every time the pencil snags on it when drawing. I can't live that life ;_;

christianselig OP ,
@christianselig@mastodon.social avatar

@sgtstretch That's what the video is about

christianselig OP ,
@christianselig@mastodon.social avatar

@sgtstretch It’s a confusing one for sure

christianselig OP ,
@christianselig@mastodon.social avatar

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

jeffkibuule , to Random stuff
@jeffkibuule@sfba.social avatar

@christianselig What size iPad Pro is going to be in your procession tomorrow?

christianselig ,
@christianselig@mastodon.social avatar

@jeffkibuule I'm not upgrading :( My 12.9” last gen still feels like a beast

christianselig ,
@christianselig@mastodon.social avatar

@jeffkibuule When I was building out Apollo's iPad app I ended up slowly acquiring the mini, the 11", and the 12.9”, so I have kind of a silly setup now where I just choose the best one for the task. Each one is so great in its own way!

christianselig , to Random stuff
@christianselig@mastodon.social avatar

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

christianselig OP ,
@christianselig@mastodon.social avatar

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

christianselig , to Random stuff
@christianselig@mastodon.social avatar

noooooo

christianselig , to Random stuff
@christianselig@mastodon.social avatar

That ChatGPT voice demo was just bonkers

christianselig , to Random stuff
@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

christianselig OP ,
@christianselig@mastodon.social avatar

@mikeyp Aaahh so temptinggggg

christianselig OP ,
@christianselig@mastodon.social avatar

@monorailtimes I'd love a Tom Bihn, they just have a weird aversion to having accessible water bottle holders unlike almost every other brand which is really weird. A Techonaut in a 35-40L size would be incredible though

christianselig OP ,
@christianselig@mastodon.social avatar

@mitchkiah I'm already researching sewing machines ;_;

christianselig OP ,
@christianselig@mastodon.social avatar

@Porgey I love the design of it, I just can't get past the weight, it weighs so much more than anything else on the market (even other bags that are considered heavy) so I can only assume it's made of wood

christianselig OP ,
@christianselig@mastodon.social avatar

@justin @monorailtimes Yeah that definitely looks like their best water bottle holder, I just wish the bag was 35-40 instead of 45 which feels just a bit too big for me

christianselig OP ,
@christianselig@mastodon.social avatar

@jdechko somewhere in my long winded article I mention that I think haha

christianselig OP ,
@christianselig@mastodon.social avatar

@Porgey the 30L one? Yeah a bit on the small side unfortunately, looking for right around 40L but under 3.5 lb

christianselig OP ,
@christianselig@mastodon.social avatar

@cruzin Oo that does look nice. A lot heavier though

christianselig OP ,
@christianselig@mastodon.social avatar

@johann Wow, I love that one! Definitely gonna keep an eye on it. Wish they did a 40L version, I find 45 is too big and 35 is a hair smaller than I'd love, and I wish it had stowable backpack straps and a better laptop compartment. But very impressive

christianselig , to Random stuff
@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

christianselig OP ,
@christianselig@mastodon.social avatar

@gregmelnyk Looove him

christianselig OP ,
@christianselig@mastodon.social avatar

@joshwayne Ah fair, I find in most of the bucket style bags if I just put my laptop on top of the pile of clothes and cubes it feels weirdly aggressive on the laptop (especially when trying to close a really stuffed bag), and if I put it on the bottom it's a pain to access. I'm really hoping Tom Bihn makes a Technonaut 40 with a good water bottle holder

christianselig OP ,
@christianselig@mastodon.social avatar

@davidolrik Love it, but no water bottle holder is an immediate no go for me ;_;

christianselig OP ,
@christianselig@mastodon.social avatar

@joshwayne I love Western Rise's stuff. But no stowable straps, and the water bottle holder looks weird

christianselig OP ,
@christianselig@mastodon.social avatar

@davidolrik Pain to access when wearing though, I don't want to have to stop and take off the backpack to access my water bottle

christianselig OP ,
@christianselig@mastodon.social avatar

@davidolrik Most backpacks I've used just have a water bottle holder on the side, so you can just reach to your side to grab it/put it back

christianselig OP ,
@christianselig@mastodon.social avatar

@davidolrik Not perfect yeah but at least possible

  • All
  • Subscribed
  • Moderated
  • Favorites
  • supersentai
  • WatchParties
  • Rutgers
  • jeremy
  • Lexington
  • cragsand
  • mead
  • RetroGamingNetwork
  • loren
  • steinbach
  • xyz
  • PowerRangers
  • AnarchoCapitalism
  • kamenrider
  • Mordhau
  • WarhammerFantasy
  • itdept
  • AgeRegression
  • mauerstrassenwetten
  • MidnightClan
  • space_engine
  • learnviet
  • bjj
  • Teensy
  • khanate
  • electropalaeography
  • neondivide
  • fandic
  • All magazines