Posts

Post not yet marked as solved
0 Replies
378 Views
Hi everyone! I am building a drawing app and want to detect Pencil/Finger touches separately. I know that one can combine multiple standard gestures but I am thinking of a custom implementation of the Gesture Protocol to wrap a gesture recognizer. thanks
Posted
by maxzoech.
Last updated
.
Post marked as solved
1 Replies
1k Views
I'm trying to sync workouts for which I have to add the HKMetadataKeySyncIdentifier and HKMetadataKeySyncVersion metadata keys to the workouts. I've tried calling the addMetadata method on HKLiveWorkoutBuilder but I receive this cryptic error: HKLiveWorkoutBuilder_DB2D [E6B9]: (#w0) Failed to restart task server after connection invalidation: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 created from an endpoint was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 0 created from an endpoint was invalidated from this process.} Here's my code: backend = try! HKWorkoutSession(healthStore: healthStore, configuration: workoutConfiguration) builder = session?.associatedWorkoutBuilder() let metadata : NSDictionary = [ HKMetadataKeySyncIdentifier : match.syncIdentifier, HKMetadataKeySyncVersion: match.syncVersion ] builder.addMetadata(metadata as! [String : Any]) { (success, error) in ... } session.delegate = self builder.delegate = self ...
Posted
by maxzoech.
Last updated
.
Post not yet marked as solved
1 Replies
1.5k Views
Hi everyone!How can one configure the DragGesture() to fire on two finger input instead of just one. In UIKit this was easily possilbe by setting the minimumNumberOfTouches and maximumNumberOfTouches properties on UIPanGestureRecoginzerThanks in advance!Max
Posted
by maxzoech.
Last updated
.