FocusEntity
FocusEntity copied to clipboard
FocusEntityDelegate Bug
Describe the bug i'm trying to connect swiftui UIViewRepresentable with FocusEntityDelegate. however FocusEntityDelegate has two functions but never gets called. i am trying to see if it is called or not using the print() command. but it doesn't appear how can i use FocusEntityDelegate in my project? I'm using the latest version of this library
Environment:
- iOS 15.2
- iphone 12
- macOS 12.1
- Xcode 13.3.1
You need to assign the FocusEntity delegate. Are you doing so? https://swiftpackageindex.com/maxxfrazer/focusentity/2.2.6/documentation/focusentity/focusentity/delegate
Otherwise look in the package where the toTrackingState is called, add a breakpoint to see if it's ever hit. At that breakpoint, check if the delegate has a value. The code snippet should look like:
self.delegate?.toTrackingState()