DanijelHuis / HDAugmentedReality

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

On label collision hide farther ones instead of stacking them #51

Closed gp-wang closed 7 years ago

gp-wang commented 7 years ago

Is there some similar features to achieve this effect?

Or would there be some hack: e.g. setting a large stacking offset to emulate the hiding effect?

DanijelHuis commented 7 years ago

I've made some things public/open in 2.2, you can now make your own post layout/transform with ARPresenter.presenterTransform.

You can download demo project and see FrontRowTransform, it is just an example of how to do what you want, it sets alpha to 0.1 of annotationViews which are behind something.

To use it, in ViewController on line 55 set this:

        presenter.presenterTransform = FrontRowTransform()
gp-wang commented 7 years ago

Thanks. I will try this out later on my phone. Currently I got some issues after I upgraded my phone to iOS11 beta.