I'm still kind of happy with myself for getting a page on https://indiestorygeek.com that took over 2 seconds to generate down to around 0.3 seconds yesterday.
Okay #SwiftUI, you made me do this... I'm not proud of it.. (well, maybe a little), but now we can get at the velocity that's been under our noses all this time: https://gist.github.com/BigZaphod/e55d41af3e1c6c3dd08f7a20cbc51b67
Why the hell is DragGesture.Value’s internal velocity property not public in #SwiftUI?! It’s there - I can see it when I print the gesture value - BUT I CAN’T USE IT WITHOUT GETTING FREAKY WITH A MIRROR OR SOMETHING. wtf?
Since I've been asked a few times about this, and for those wondering what will happen. In the end, visibility and recognition is the most important thing. With everyone working together, it should be easy to reach so many more people and keep it sustained by sales alone! ❤️
Specifically, though, I *think* Task.isCancelled can’t become true except at await points… right?
Actually I suppose if the task was cancelled before my async function was even called, but the caller didn’t check for Task.isCancelled, then maybe it *could* be cancelled from the very beginning. 🤔
In #Swift concurrency, Task.isCancelled can never change until *after* an “await,” right? So if I have an async function that does a few things before it’s first “await” there’s no way the task could have been canceled until at least *after* the first “await”, right?
In #SwiftUI I want to make something change every X seconds so I can use a timer like this example:
This seems to work but won't the timer get reset/recreated every time this view struct gets recreated by SwiftUI? Shouldn't the timer be a StateObject?
The lack of a defined architecture to use when making #SwiftUI apps is sort of freeing, but it also seems to result in me writing and then rewriting and moving and rearranging and futzing over and over and over just because there's no explicit guidance from the framework.
We'll see. 😛
Anyway, this all might be ever-so-slightly incorrect but the gist seems to be that straight up not eating is what our bodies were designed for - periods of feast and famine, basically. Some days the hunt goes well.. some days not so much.
You may know me from Frenzic: Overtime, or from Twitterrific, or as the ex-galactic president. I'm just this guy, you know?
The original server operated by the Mastodon gGmbH non-profit