ruby.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
If you are interested in the Ruby programming language, come join us! Tell us about yourself when signing up. If you just want to join Mastodon, another server will be a better place for you.

Administered by:

Server stats:

1.1K
active users

Scottymac

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.

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

Hmm, the other thing I can do (which I've done before is use DragGesture(minimumDistance: 0) and use a timer with that. Although I'd rather encapsulate all the behavior in its own custom gesture. Decisions.

So I've got a nice, custom UIGestureRecognizerRepresentable replacement working, but it only works in iOS 18. So I can't use that b/c I need to support 17. That kind of day.

@scottymac The issue has been finally fixed in iOS 18.4 beta.

@defagos Huzzah! Thanks for the update! I'm still on Sonoma, so I can't run Xcode 16.3 beta. Looks like I need to finally move to Sequoia.