jstehlik.cz
I make apps https://jstehlik.cz
128 posts
234 followers
368 following
Getting Started
Active Commenter
comment in response to
post
I am seeing your post just after seeing this one. Just be happy, you don't have problems. bsky.app/profile/wart...
comment in response to
post
“And then I said: “We are very sorry, we will *totally* roll out a system-wide update just for you, jut wait a bit!” And he even thanked me!”
“Lol, classic. So how will you fix this case?”
“Meh, he’ll stop calling. Worst case we’ll add a space after his name in the db, UI cuts whitespaces already.”
comment in response to
post
Insanely good, well done. Will you open source it?
comment in response to
post
That actually makes a lot of sense. There are multiple tutorials that suggest doing it.
comment in response to
post
oh. ok. so why does the documentation mark it as conforming to Sendable?
comment in response to
post
wow, good catch. So what if I mutate a model from 2 different actor contexts? 🤷
comment in response to
post
That’s so pretty. Reminds me of Conway's Game of Life
comment in response to
post
even if you hide the default back button?
comment in response to
post
That's quite unfair given this year's update to iPadOS. I'm actually thinking they went too far. 4 windows on an 11-inch screen? We will squint our eyes out.
comment in response to
post
back to 'nonisolated': @hborla.bsky.social called it a behavior change during the Swift group lab, so I suppose it is correct to really abandon the old, definition-based thinking. I actually like the new model - it's more in line with the rest of Swift. Just need to migrate all of my notes 😄
comment in response to
post
I mean, it makes sense, right? T might be a String, and you can't do `"Hello" * "world"`
comment in response to
post
Exactly. But it took me way more time to understand this than it really should
comment in response to
post
That's my hope as well. In general I feel like the community jumped head first into sendability and skipped over isolation.
comment in response to
post
wow, ok, thanks! I'm attending @mdevcamp.bsky.social right now and everyone seems so confused about sendability 😅
comment in response to
post
It also allows you to crash SwiftUI in record time if you aren't careful 😀
comment in response to
post
Well, we can do that in SwiftUI too now. But not sure how I would use it for something like the hopping comma separator
comment in response to
post
Mix of what though? Are these things achievable in UIKit?
comment in response to
post
Some elements like the trays could be done for sure. But e.g. the effects on the QR code most likely done using shaders. And the little things like jumping comma separator? Not sure. I'd love to take a peek at that codebase.
comment in response to
post
Wow, really beautiful work. I wonder how much of this could be built with SwiftUI, and how
comment in response to
post
So you basically run git in analog mode. Impressive 😂
comment in response to
post
The "unable to type-check this expression in reasonable time" emoji
comment in response to
post
is the game any good? had it in my library for ages, never opened it 🫣
comment in response to
post
Example
comment in response to
post
Look into `#Preview(traits: )`. I love using it for SwiftData. Last time I set up Core Data for Preview it was a bit more complicated, not sure if it will work the same way. But in theory why not.
comment in response to
post
Natalia, do you know *why* the macro is needed? We are declaring our variables inside `#Preview`, so I would think the compiler should figure out that all variables inside should be previewable, with no extra boilerplate needed.
comment in response to
post
What's actually missing? It would have been done already if you outsourced it to the iOS Dev Happy Hour community 🤣
comment in response to
post
:-(
comment in response to
post
Sorry for unsolicited advice, when I see a design I like I can't help but consider further tweaks. Instead of neutral mood at y:0, positive mood up and negative mood down, have you tried setting negative mood to y:0 and then only going up? This would eliminate the repeated gray bars below y: 0.
comment in response to
post
B no contest
comment in response to
post
There must be something in the air. I literally started working on an app for this last week 😂 Well done though, looks nice!
comment in response to
post
honestly, these are so nice. I wish I had the time to create a game just to use these 😭 well done
comment in response to
post
Oh. Oh God. More Swift keywords coming 😱
comment in response to
post
I suppose in that case we could use the async let syntax. But it feels like we would be using extra decorations at definition as well as caller for something that currently does not need those decorations.
comment in response to
post
Hmm. If isolation inheritance was expanded from sync to async functions explicitly marked with `nonisolated`, wouldn't that break our ability to easily build structured concurrency? For example see here.
comment in response to
post
A more accurate name for this keyword would have been `ignoreIsolationDefinition`. Because what this keyword really allows us to do is break the rule that isolation is controlled by definitions.
comment in response to
post
Second, *synchronous* functions marked non-isolated will still be isolated to the actor context of the caller, because isolation is never changed between synchronous calls. Although it may not be the actor of the context where the function was defined.
comment in response to
post
First, functions can be non-isolated even without this keyword. For example, if defined in a non-isolated context.
comment in response to
post
Yeah I’m in the same place. I’m learning a lot, but I also feel exhausted from the learning alone, and that’s supposed to be the time off. 😮💨
comment in response to
post
Eurofighters are filled with US components. There is currently no fighter jet produced 100% in Europe. Rafale maybe comes closest.
comment in response to
post
I will try my best to attend. Have 2 questions to explore: 1) best practices for completing heavy CPU work without blocking UI, 2) handling .task modifier action cancellation.
comment in response to
post
How do you export to Xcode? My attempts to go from Blender to RealityKit/RCP had terrible results :-(
comment in response to
post
What about the "unseen" elements of the war? I mean US-assisted intel, EW etc? I don't see how they could be quickly replaced.