DanijelHuis / HDAugmentedReality

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

A way to remove original UI to replace it with my own #12

Closed OneSman7 closed 7 years ago

OneSman7 commented 8 years ago

Thanks for a great library! It is the only one supported and supporting modern Swift syntax :) It works very well and I'd like to use it in my app.

But I need a way to remove debugLabel, debugMapButton and closeButton cause I will be using my own interface for augmented reality in product version of my app.

It is not totally impossible now, but I need to use dirty hacks like:

let currentSubviews = self.view.subviews

        for subview in currentSubviews {
            if subview is UIButton || subview is UILabel {
                subview.removeFromSuperview()
            }
        }

It would be cool to just call a specific method.

DanijelHuis commented 8 years ago

Hi, it seems I made a bug on last release, I was refactoring and forgot to call addDebugUi only if debugEnabled = true, currently addDebugUi is called always.

Regarding close button, there is closeButtonImage property so you can use that unless you need totally different layout.

I will fix it this weekend and add new release, I will also add ability to remove close button.

Thank you for the feedback and sorry for the trouble.

OneSman7 commented 8 years ago

Great news! Thank you. There was little trouble since I decided to write you at the early stages of development.

DanijelHuis commented 8 years ago

I've added ability to remove close button and to hide debug UI in version 1.1.1.