DanijelHuis / HDAugmentedReality

Augmented Reality component for iOS, written in Swift.
MIT License
480 stars 97 forks source link

regionDidChangeAnimated endless loop #20

Closed OrielBelzer closed 7 years ago

OrielBelzer commented 7 years ago

I'm having a weird issue - I have a view controller which has a map in it. I'm using the delegate method "regionDidChangeAnimated" in order to update some things on the map every time the user moves the map.

Now the weird thing starts when I go to the other tab that I have which has the ARViewController in it, at some point it seems like the ARViewController fires an endless calls which cause the "regionDidChangeAnimated" to execute my piece of code endlessly.

Anyone has any idea what part of the ARViewController or ARTrackingManager can cause this thing?

Thanks in advance !

DanijelHuis commented 7 years ago

I've tried to put map in one tab and ARViewController in another but couldn't reproduce it, at least not on simulator. Try commenting out parts of ARViewController and see what happens. I really can't see any connection between the two.