Latest 0.2.0
Homepage https://github.com/sidepelican/EyeTracker
License MIT
Platforms ios 11.0
Frameworks ARKit
Authors

Language
Carthage compatible
CocoaPods compatible

Track gazing position 👀 with ARKit

EyeTracker

Usage

See EyeTrackerSample for more details.

private let eyeTracker = EyeTracker()

override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)

    if EyeTracker.isSupported {
        eyeTracker.delegate = self
        eyeTracker.start()
    }
}

// MARK: - EyeTrackerDelegate

func eyeTracker(_ eyeTracker: EyeTracker, didUpdateTrackingState state: EyeTracker.TrackingState) {
    switch state {
    case let .screenIn(screenPos):
        // ...
    case let .screenOut(edge, screenPos):
        // ...
    case .notTracked:
        // ...
    case .pausing:
        // ...
    }
}

Installation

CocoaPods

You can use CocoaPods to install EyeTracker by adding it to your Podfile:

platform :ios, '11.0'
use_frameworks!
pod 'EyeTracker'

Carthage

Create a Cartfile that lists the framework and run carthage bootstrap. Follow the instructions to add $(SRCROOT)/Carthage/Build/iOS/YourLibrary.framework to an iOS project.

github "sidepelican/EyeTracker"

License

MIT

Latest podspec

{
    "name": "EyeTracker",
    "version": "0.2.0",
    "summary": "Track gazing position with ARKit",
    "homepage": "https://github.com/sidepelican/EyeTracker",
    "license": "MIT",
    "authors": {
        "iceman": "[email protected]"
    },
    "social_media_url": "http://twitter.com/iceman5499",
    "platforms": {
        "ios": "11.0"
    },
    "source": {
        "git": "https://github.com/sidepelican/EyeTracker.git",
        "tag": "0.2.0"
    },
    "source_files": "EyeTracker/*.{swift,h}",
    "frameworks": "ARKit",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This