DEV Community

David Chiu
David Chiu

Posted on

1

Adding Eye Control To Your iOS App

Athena iOS SDK & Demo Apps

Athena eye control demo apps

Have you ever imagined that you could interact with your phone just by glancing at the screen or swiping the app display with your eyes, handsfree? Today, I am going to show you how you can use Athena’s Eye Gesture Framework in your iOS app to make the magic happen.

Step 1 Download Free Athena SDK

You will need to download the SDK from:
https://athenasaas.io/download
The SDK is free for personal use. Once your have registered, the download link will be available. Download the zip file that contains all you need to explore Athena Eye Gesture SDK. There are four sample apps that is readily available for you to build with Xcode.

Step 2 Examine SDK Contents

Let’s take a look at the contents of the SDK file first. The following shows the unzipped folder of the SDK:

Athena Eye Control SDK

As one can see, the SDK has two Xcode framworks: AthenaML and AthenaSDK. The SDK is developed based on AI and machine learning technology. There are 4 samples as of the time of writing. They are:

Athena joystick demo

  • JoyStick Demo: Using eyes as a joystick control

Volume Control Demo

  • Volume Control Demo: Using eye gestures to control a UI that looks like a volume control used on iPhone

Photo Slider

  • Photo Slider: Navigating a sample photo album using eyes swipes

Reader with auto text scrolling

  • Reader Demo: Demonstrating text automatic scrolling when user is reading an article or browsing web contents

The Reader Demo shows the amazing capability of the SDK inferring user activity (reading) and scrolling text automatically with no touch required. It makes reading or browsing web sites effortless, more accessible, and allows the user to be more focused and engaged with the content.

Step 3 Build A Sample App

Let’s try to build one of the sample apps included in the SDK. Let’s take a look at the contents of the Photo Slider App:

Photo Slider Sample App

Double click on PhotoSlider.xcodeproj, once Xcode opens, change the team name to your name and the bundle id to an id you would like to use. Connect an iPhone running iOS 14.4 or later to your computer, click on the Run Icon in Xcode. In no time, it builds and runs on the device. Here is a sample app screen:

Athena Eye Gesture SDK — Eye Swiping Photo Album

The app works like this: stare or focus your gaze on a point on the image, an eye icon shows up, then move your eye gaze to the left or right to show the next or previous picture. The following video demos the process:

Conclusion

The SDK is very easy to use and the eye gestures work like magic in the demo app. Athena Eye Control provides a powerful new way for your users to engage and interact with your apps. Find out more here:
Https://athenasaas.io

Keywords: Eye Gesture Eye Control Eye Swipe iOS SDK

AWS Q Developer image

Build your favorite retro game with Amazon Q Developer CLI in the Challenge & win a T-shirt!

Feeling nostalgic? Build Games Challenge is your chance to recreate your favorite retro arcade style game using Amazon Q Developer’s agentic coding experience in the command line interface, Q Developer CLI.

Participate Now

Top comments (0)

Heroku

Build AI apps faster with Heroku.

Heroku makes it easy to build with AI, without the complexity of managing your own AI services. Access leading AI models and build faster with Managed Inference and Agents, and extend your AI with MCP.

Get Started

👋 Kindness is contagious

Explore this insightful write-up embraced by the inclusive DEV Community. Tech enthusiasts of all skill levels can contribute insights and expand our shared knowledge.

Spreading a simple "thank you" uplifts creators—let them know your thoughts in the discussion below!

At DEV, collaborative learning fuels growth and forges stronger connections. If this piece resonated with you, a brief note of thanks goes a long way.

Okay