DanijelHuis / HDAugmentedReality

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

Opening the keyboard pulls all annotations into one corner #89

Open cosmopolit opened 2 years ago

cosmopolit commented 2 years ago

I added a search field directly into the ARViewController class. The search field has been added to the controlContainerView as a subview.

I previously wanted to integrate the search as an accessory, but I couldn't change the original ARAnnotations array in the demo project from the custom accessory class.

So far everything is fine and the search field is working. However, as soon as the keyboard is opened and i move the AR-View around, all POI's are gradually dragged to the upper left corner. As if they are attracted to a magnet in the corner.

Instead of the overlay, I also tried sliding the camera screen up when opening the keyboard. Various adjustments to the parameters were also unsuccessful. After the keyboard has been shown or hidden, the camera view remains in this state.

Does anyone have an idea how to correct this situation?

cosmopolit commented 2 years ago

@DanijelHuis please answer when you have any idea or hint for this issue. I like your lib very much and i want to use it for my project. Searching is an essential feature for my app..