eBay / HeadGazeLib

A library to empower iOS app control through head gaze without a finger touch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hide button does not disable headgaze!

nbawe opened this issue · comments

commented

Hello!

When hiding button:
myButton.isHidden = true

HeadGaze still recognizes touch.

How to overcome this?

commented

Solved with constraints! The problem was in the button frame size!

commented

Setting isHidden to true does not stop the sensor from tracking your head motion which is not power efficient. The GIF demo shows that it is possible to disable the head tracking, hence all the UI widgets fall back to the conventional. It is achieved by temporarily removing the member variable virtualCursorView from the superview of type UIHeadGazeViewController. Example code can be found in the code block here