FocusEntity icon indicating copy to clipboard operation
FocusEntity copied to clipboard

FocusEntityDelegate Bug

Open samberutu opened this issue 2 years ago • 1 comments

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

image image image

Environment:

  • iOS 15.2
  • iphone 12
  • macOS 12.1
  • Xcode 13.3.1

samberutu avatar Aug 17 '22 06:08 samberutu

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()

maxxfrazer avatar Sep 12 '22 10:09 maxxfrazer