shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

277
active users

#swift

16 posts15 participants0 posts today

Hey @mattiem -- any pointers in how to handle undomanager in the world of #swift 6 concurrency? This is no longer valid:

func update(someItem, newValue) {
let currentValue = someItem.value
undoManager.registerUndo(withTarget: self) { target in
target.update(someItem, currentValue)
}
someItem.value = newValue
}

because update (needs?) to be run on _@MainActor but the registered closure isn't. Putting the contents of the closure in a Task breaks undo/redo

This usage of undo has nothing to do with SwiftData or a document based app.

LongPressGesture (specifically .updating) is broken in iOS 18 SDK and since April 24 is the deadline after which all apps have to be built with 18 SDK, I'm faced with having to hack together my own gesture. Apple's own code in the docs is broken (developer.apple.com/documentat). Thinking I'll create my own UIGestureRecognizer with a timer and use UIGestureRecognizerRepresentable. #swift #swiftui

Apple Developer DocumentationLongPressGesture | Apple Developer DocumentationA gesture that succeeds when the user performs a long press.
Replied in thread

@mastohost Thanks! I've now asked on the cloud@ml.ovh.net mailing list: the subject is "Swift object storage and deduplication", can't remember whether the archives are public.

I can find a lot of documentation on how #Swift rings use file hashes, but nothing on how those hashes are created in the first place.

docs.openstack.org/swift/lates
docs.openstack.org/security-gu

docs.openstack.orgThe Rings — Swift 2.35.0.dev207 documentation

After experiencing the key moment at the seafront, I had fresh energy and hope that I could actually make it. That I could actually build something that helps people in tough emotional situations. But what I needed to do was kicking off the next phase of the CBL cycle called: Investigate. My own experiences with emotions and psychotherapy might not reflect what other people think and what (1/2)

My need for a new job has gone from “I'm unhappy and need a change" to “I don't hardly have any savings and if I don't get a new job ASAP I will be bankrupt in a month or so”, because I was laid off today.

So:
Hi! I'm Jamie. I write code in Swift, with the exact target/platform not mattering to me so much. I own a powerful Mac so I can contribute to indie/smaller projects without any particular investment. I also have experience managing teams, and I can quickly pick up new skills.

The role would have to be remote or located in the Baltimore, MD area as I have a mortgage that I can't just get out of.

Up until now, the biggest problems in my app were caused by my multithreaded code, so today I decided to do something with it. First, I enabled strict concurrency warnings. Then, I spent a few hours fixing them, and now I switched my project to #Swift 6 without any issue! 🥳