Post

Replies

Boosts

Views

Activity

Reply to Programatic Haptics
I have found a work-around if anyone has the same issue. This is something to do with the recording and vibrate using the same data stream and I cannot find any documentation to deal with multiple streams correctly. Instead, I have turned off voice recording, make the buzz and then reactivate voice recording (I had to introduce a sleep before reactivating voice recording to allow the vibrate to complete), a bit of a botch; but it works. If anyone has any links to examples that do this elegantly then I'd be very grateful.
Aug ’24
Reply to Invalid Numeric Value (NaN) Error in SwiftUI's TextField on Long-Press
I think I'm getting the same or similar issue. Not a long press; but as I'm typing, the second TextEdit field in the View about 4 characters in. I can't make head not tail of the Backtrace. The View is called from a button in the NavigationBarItems using a NavigationLink. Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem. Backtrace: <CGPathAddLineToPoint+92> <+1336> <+188> <+344> <+160> <+504> <+160> <+92> <+356> <+512> <+596> <+116> <+208> <+208> <+324> <+96> <+256> <+148> <+428> <+56> <+36> <+552> <+1028> <CFRunLoopRunSpecific+608> <GSEventRunModal+164> <+888> <UIApplicationMain+340> <+414604> <+72024> <+120596> <$s11MyApp0aB3AppV5$mainyyFZ+40> <main+12> <+2240>
Jul ’24