Post

Replies

Boosts

Views

Activity

Reply to collectionView(_:shouldBeginMultipleSelectionInteractionAt:) triggered by trackpad click
I have tried these workarounds: Install my own pan gesture recognizer to help detect when shouldBeginMultipleSelectionInteractionAt is being called for an actual two finger swipe. But in the delegate callback, I don't see that the gesture recognizer has triggered. In the callback, examine the collection view's list of gesture recognizers and return false if any one-finger gestures have triggered. This did not work very consistently.
Topic: UI Frameworks SubTopic: UIKit Tags:
Feb ’25
Reply to Communicating between app & test runner
The solution I ended up going with is the app opens a socket to listen on, writes out the port it got to a file in SIMULATOR_SHARED_RESOURCES_DIRECTORY, and the test runner reads that file and connects to the port. I tried using a unix domain socket, but (as the app itself is in C#) the .NET API for that kept throwing PlatformNotSupportedException. I really don't know if there was a real error or if .NET just thinks iOS doesn't support domain sockets. My approach did still require adding an entitlement, so I'll just have to modify my build script to only include that in the debug build.
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’24
Reply to collectionView(_:shouldBeginMultipleSelectionInteractionAt:) triggered by trackpad click
I have tried these workarounds: Install my own pan gesture recognizer to help detect when shouldBeginMultipleSelectionInteractionAt is being called for an actual two finger swipe. But in the delegate callback, I don't see that the gesture recognizer has triggered. In the callback, examine the collection view's list of gesture recognizers and return false if any one-finger gestures have triggered. This did not work very consistently.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Feb ’25
Reply to Communicating between app & test runner
The solution I ended up going with is the app opens a socket to listen on, writes out the port it got to a file in SIMULATOR_SHARED_RESOURCES_DIRECTORY, and the test runner reads that file and connects to the port. I tried using a unix domain socket, but (as the app itself is in C#) the .NET API for that kept throwing PlatformNotSupportedException. I really don't know if there was a real error or if .NET just thinks iOS doesn't support domain sockets. My approach did still require adding an entitlement, so I'll just have to modify my build script to only include that in the debug build.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Mar ’24