Repository: virakri/eye-tracking-ios-prototype
Branch: master
Commit: bad1a54bf70b
Files: 13
Total size: 53.3 KB
Directory structure:
gitextract_0_90zauk/
├── Eyes Tracking/
│ ├── AppDelegate.swift
│ ├── Assets.xcassets/
│ │ ├── AppIcon.appiconset/
│ │ │ └── Contents.json
│ │ └── Contents.json
│ ├── Base.lproj/
│ │ ├── LaunchScreen.storyboard
│ │ └── Main.storyboard
│ ├── Extensions.swift
│ ├── Info.plist
│ └── ViewController.swift
├── Eyes Tracking.xcodeproj/
│ ├── project.pbxproj
│ ├── project.xcworkspace/
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata/
│ │ └── IDEWorkspaceChecks.plist
│ └── xcuserdata/
│ └── virakri.xcuserdatad/
│ └── xcschemes/
│ └── xcschememanagement.plist
└── LICENSE
================================================
FILE CONTENTS
================================================
================================================
FILE: Eyes Tracking/AppDelegate.swift
================================================
//
// AppDelegate.swift
// Eyes Tracking
//
// Created by Virakri Jinangkul on 6/6/18.
// Copyright © 2018 virakri. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}
================================================
FILE: Eyes Tracking/Assets.xcassets/AppIcon.appiconset/Contents.json
================================================
{
"images" : [
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-20@2x.png",
"scale" : "2x"
},
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-20@3x.png",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-29.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-29@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-29@3x.png",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-40@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-40@3x.png",
"scale" : "3x"
},
{
"size" : "57x57",
"idiom" : "iphone",
"filename" : "Icon-57.png",
"scale" : "1x"
},
{
"size" : "57x57",
"idiom" : "iphone",
"filename" : "Icon-57@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-60@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-60@3x.png",
"scale" : "3x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-20.png",
"scale" : "1x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-20@2x-1.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-30.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-29@2x-1.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-40.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-40@2x-1.png",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-76.png",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-76@2x.png",
"scale" : "2x"
},
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "Icon-83-5@2x.png",
"scale" : "2x"
},
{
"size" : "1024x1024",
"idiom" : "ios-marketing",
"filename" : "iTunesArtwork@2x-1.png",
"scale" : "1x"
},
{
"size" : "512x512",
"idiom" : "mac",
"filename" : "iTunesArtwork.png",
"scale" : "1x"
},
{
"size" : "512x512",
"idiom" : "mac",
"filename" : "iTunesArtwork@2x.png",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
================================================
FILE: Eyes Tracking/Assets.xcassets/Contents.json
================================================
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
================================================
FILE: Eyes Tracking/Base.lproj/LaunchScreen.storyboard
================================================
================================================
FILE: Eyes Tracking/Base.lproj/Main.storyboard
================================================
================================================
FILE: Eyes Tracking/Extensions.swift
================================================
//
// SCNVectorExtension.swift
// Face-based Game Prototype
//
// Created by VIRAKRI JINANGKUL on 10/31/17.
// Copyright © 2017 VIRAKRI JINANGKUL. All rights reserved.
//
import SceneKit
extension SCNVector3 {
func length() -> Float {
return sqrtf(x * x + y * y + z * z)
}
}
func - (l: SCNVector3, r: SCNVector3) -> SCNVector3 {
return SCNVector3Make(l.x - r.x, l.y - r.y, l.z - r.z)
}
extension Collection where Element == CGFloat, Index == Int {
/// Return the mean of a list of CGFloat. Used with `recentVirtualObjectDistances`.
var average: CGFloat? {
guard !isEmpty else {
return nil
}
let sum = reduce(CGFloat(0)) { current, next -> CGFloat in
return current + next
}
return sum / CGFloat(count)
}
}
================================================
FILE: Eyes Tracking/Info.plist
================================================
CFBundleDevelopmentRegion
$(DEVELOPMENT_LANGUAGE)
CFBundleDisplayName
Eyes Tracking
CFBundleExecutable
$(EXECUTABLE_NAME)
CFBundleIdentifier
$(PRODUCT_BUNDLE_IDENTIFIER)
CFBundleInfoDictionaryVersion
6.0
CFBundleName
$(PRODUCT_NAME)
CFBundlePackageType
APPL
CFBundleShortVersionString
1.0
CFBundleVersion
1
LSRequiresIPhoneOS
NSCameraUsageDescription
This application will use the camera for Augmented Reality.
UILaunchStoryboardName
LaunchScreen
UIMainStoryboardFile
Main
UIRequiredDeviceCapabilities
armv7
arkit
UIStatusBarHidden
UISupportedInterfaceOrientations
UIInterfaceOrientationPortrait
UISupportedInterfaceOrientations~ipad
UIInterfaceOrientationPortrait
UIInterfaceOrientationPortraitUpsideDown
UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight
================================================
FILE: Eyes Tracking/ViewController.swift
================================================
//
// ViewController.swift
// Eyes Tracking
//
// Created by Virakri Jinangkul on 6/6/18.
// Copyright © 2018 virakri. All rights reserved.
//
import UIKit
import SceneKit
import ARKit
import WebKit
class ViewController: UIViewController, ARSCNViewDelegate, ARSessionDelegate {
@IBOutlet weak var webView: WKWebView!
@IBOutlet var sceneView: ARSCNView!
@IBOutlet weak var eyePositionIndicatorView: UIView!
@IBOutlet weak var eyePositionIndicatorCenterView: UIView!
@IBOutlet weak var blurBarView: UIVisualEffectView!
@IBOutlet weak var lookAtPositionXLabel: UILabel!
@IBOutlet weak var lookAtPositionYLabel: UILabel!
@IBOutlet weak var distanceLabel: UILabel!
var faceNode: SCNNode = SCNNode()
var eyeLNode: SCNNode = {
let geometry = SCNCone(topRadius: 0.005, bottomRadius: 0, height: 0.2)
geometry.radialSegmentCount = 3
geometry.firstMaterial?.diffuse.contents = UIColor.blue
let node = SCNNode()
node.geometry = geometry
node.eulerAngles.x = -.pi / 2
node.position.z = 0.1
let parentNode = SCNNode()
parentNode.addChildNode(node)
return parentNode
}()
var eyeRNode: SCNNode = {
let geometry = SCNCone(topRadius: 0.005, bottomRadius: 0, height: 0.2)
geometry.radialSegmentCount = 3
geometry.firstMaterial?.diffuse.contents = UIColor.blue
let node = SCNNode()
node.geometry = geometry
node.eulerAngles.x = -.pi / 2
node.position.z = 0.1
let parentNode = SCNNode()
parentNode.addChildNode(node)
return parentNode
}()
var lookAtTargetEyeLNode: SCNNode = SCNNode()
var lookAtTargetEyeRNode: SCNNode = SCNNode()
// actual physical size of iPhoneX screen
let phoneScreenSize = CGSize(width: 0.0623908297, height: 0.135096943231532)
// actual point size of iPhoneX screen
let phoneScreenPointSize = CGSize(width: 375, height: 812)
var virtualPhoneNode: SCNNode = SCNNode()
var virtualScreenNode: SCNNode = {
let screenGeometry = SCNPlane(width: 1, height: 1)
screenGeometry.firstMaterial?.isDoubleSided = true
screenGeometry.firstMaterial?.diffuse.contents = UIColor.green
return SCNNode(geometry: screenGeometry)
}()
var eyeLookAtPositionXs: [CGFloat] = []
var eyeLookAtPositionYs: [CGFloat] = []
override var preferredStatusBarStyle: UIStatusBarStyle {
return UIStatusBarStyle.lightContent
}
override func viewDidLoad() {
super.viewDidLoad()
webView.load(URLRequest(url: URL(string: "https://www.apple.com")!))
// Setup Design Elements
eyePositionIndicatorView.layer.cornerRadius = eyePositionIndicatorView.bounds.width / 2
sceneView.layer.cornerRadius = 28
eyePositionIndicatorCenterView.layer.cornerRadius = 4
blurBarView.layer.cornerRadius = 36
blurBarView.layer.maskedCorners = [.layerMinXMinYCorner, .layerMaxXMinYCorner]
webView.layer.cornerRadius = 16
webView.layer.maskedCorners = [.layerMinXMinYCorner, .layerMaxXMinYCorner]
// Set the view's delegate
sceneView.delegate = self
sceneView.session.delegate = self
sceneView.automaticallyUpdatesLighting = true
// Setup Scenegraph
sceneView.scene.rootNode.addChildNode(faceNode)
sceneView.scene.rootNode.addChildNode(virtualPhoneNode)
virtualPhoneNode.addChildNode(virtualScreenNode)
faceNode.addChildNode(eyeLNode)
faceNode.addChildNode(eyeRNode)
eyeLNode.addChildNode(lookAtTargetEyeLNode)
eyeRNode.addChildNode(lookAtTargetEyeRNode)
// Set LookAtTargetEye at 2 meters away from the center of eyeballs to create segment vector
lookAtTargetEyeLNode.position.z = 2
lookAtTargetEyeRNode.position.z = 2
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
// Create a session configuration
guard ARFaceTrackingConfiguration.isSupported else { return }
let configuration = ARFaceTrackingConfiguration()
configuration.isLightEstimationEnabled = true
// Run the view's session
sceneView.session.run(configuration, options: [.resetTracking, .removeExistingAnchors])
}
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
// Pause the view's session
sceneView.session.pause()
}
// MARK: - ARSCNViewDelegate
func renderer(_ renderer: SCNSceneRenderer, didAdd node: SCNNode, for anchor: ARAnchor) {
faceNode.transform = node.transform
guard let faceAnchor = anchor as? ARFaceAnchor else { return }
update(withFaceAnchor: faceAnchor)
}
// MARK: - update(ARFaceAnchor)
func update(withFaceAnchor anchor: ARFaceAnchor) {
eyeRNode.simdTransform = anchor.rightEyeTransform
eyeLNode.simdTransform = anchor.leftEyeTransform
var eyeLLookAt = CGPoint()
var eyeRLookAt = CGPoint()
let heightCompensation: CGFloat = 312
DispatchQueue.main.async {
// Perform Hit test using the ray segments that are drawn by the center of the eyeballs to somewhere two meters away at direction of where users look at to the virtual plane that place at the same orientation of the phone screen
let phoneScreenEyeRHitTestResults = self.virtualPhoneNode.hitTestWithSegment(from: self.lookAtTargetEyeRNode.worldPosition, to: self.eyeRNode.worldPosition, options: nil)
let phoneScreenEyeLHitTestResults = self.virtualPhoneNode.hitTestWithSegment(from: self.lookAtTargetEyeLNode.worldPosition, to: self.eyeLNode.worldPosition, options: nil)
for result in phoneScreenEyeRHitTestResults {
eyeRLookAt.x = CGFloat(result.localCoordinates.x) / (self.phoneScreenSize.width / 2) * self.phoneScreenPointSize.width
eyeRLookAt.y = CGFloat(result.localCoordinates.y) / (self.phoneScreenSize.height / 2) * self.phoneScreenPointSize.height + heightCompensation
}
for result in phoneScreenEyeLHitTestResults {
eyeLLookAt.x = CGFloat(result.localCoordinates.x) / (self.phoneScreenSize.width / 2) * self.phoneScreenPointSize.width
eyeLLookAt.y = CGFloat(result.localCoordinates.y) / (self.phoneScreenSize.height / 2) * self.phoneScreenPointSize.height + heightCompensation
}
// Add the latest position and keep up to 8 recent position to smooth with.
let smoothThresholdNumber: Int = 10
self.eyeLookAtPositionXs.append((eyeRLookAt.x + eyeLLookAt.x) / 2)
self.eyeLookAtPositionYs.append(-(eyeRLookAt.y + eyeLLookAt.y) / 2)
self.eyeLookAtPositionXs = Array(self.eyeLookAtPositionXs.suffix(smoothThresholdNumber))
self.eyeLookAtPositionYs = Array(self.eyeLookAtPositionYs.suffix(smoothThresholdNumber))
let smoothEyeLookAtPositionX = self.eyeLookAtPositionXs.average!
let smoothEyeLookAtPositionY = self.eyeLookAtPositionYs.average!
// update indicator position
self.eyePositionIndicatorView.transform = CGAffineTransform(translationX: smoothEyeLookAtPositionX, y: smoothEyeLookAtPositionY)
// update eye look at labels values
self.lookAtPositionXLabel.text = "\(Int(round(smoothEyeLookAtPositionX + self.phoneScreenPointSize.width / 2)))"
self.lookAtPositionYLabel.text = "\(Int(round(smoothEyeLookAtPositionY + self.phoneScreenPointSize.height / 2)))"
// Calculate distance of the eyes to the camera
let distanceL = self.eyeLNode.worldPosition - SCNVector3Zero
let distanceR = self.eyeRNode.worldPosition - SCNVector3Zero
// Average distance from two eyes
let distance = (distanceL.length() + distanceR.length()) / 2
// Update distance label value
self.distanceLabel.text = "\(Int(round(distance * 100))) cm"
}
}
func renderer(_ renderer: SCNSceneRenderer, updateAtTime time: TimeInterval) {
virtualPhoneNode.transform = (sceneView.pointOfView?.transform)!
}
func renderer(_ renderer: SCNSceneRenderer, didUpdate node: SCNNode, for anchor: ARAnchor) {
faceNode.transform = node.transform
guard let faceAnchor = anchor as? ARFaceAnchor else { return }
update(withFaceAnchor: faceAnchor)
}
}
================================================
FILE: Eyes Tracking.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {
/* Begin PBXBuildFile section */
D0D25B8920C80F5500A25627 /* Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0D25B8820C80F5500A25627 /* Extensions.swift */; };
D0E5847A20C806050052967A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0E5847920C806050052967A /* AppDelegate.swift */; };
D0E5847E20C806050052967A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0E5847D20C806050052967A /* ViewController.swift */; };
D0E5848120C806050052967A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D0E5847F20C806050052967A /* Main.storyboard */; };
D0E5848320C806050052967A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D0E5848220C806050052967A /* Assets.xcassets */; };
D0E5848620C806050052967A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D0E5848420C806050052967A /* LaunchScreen.storyboard */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
D0D25B8820C80F5500A25627 /* Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = ""; };
D0E5847620C806050052967A /* Eyes Tracking.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Eyes Tracking.app"; sourceTree = BUILT_PRODUCTS_DIR; };
D0E5847920C806050052967A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
D0E5847D20C806050052967A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
D0E5848020C806050052967A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
D0E5848220C806050052967A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
D0E5848520C806050052967A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
D0E5848720C806050052967A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
D0E5847320C806050052967A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
D0E5846D20C806050052967A = {
isa = PBXGroup;
children = (
D0E5847820C806050052967A /* Eyes Tracking */,
D0E5847720C806050052967A /* Products */,
);
sourceTree = "";
};
D0E5847720C806050052967A /* Products */ = {
isa = PBXGroup;
children = (
D0E5847620C806050052967A /* Eyes Tracking.app */,
);
name = Products;
sourceTree = "";
};
D0E5847820C806050052967A /* Eyes Tracking */ = {
isa = PBXGroup;
children = (
D0E5847920C806050052967A /* AppDelegate.swift */,
D0E5847D20C806050052967A /* ViewController.swift */,
D0D25B8820C80F5500A25627 /* Extensions.swift */,
D0E5847F20C806050052967A /* Main.storyboard */,
D0E5848220C806050052967A /* Assets.xcassets */,
D0E5848420C806050052967A /* LaunchScreen.storyboard */,
D0E5848720C806050052967A /* Info.plist */,
);
path = "Eyes Tracking";
sourceTree = "";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
D0E5847520C806050052967A /* Eyes Tracking */ = {
isa = PBXNativeTarget;
buildConfigurationList = D0E5848A20C806060052967A /* Build configuration list for PBXNativeTarget "Eyes Tracking" */;
buildPhases = (
D0E5847220C806050052967A /* Sources */,
D0E5847320C806050052967A /* Frameworks */,
D0E5847420C806050052967A /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = "Eyes Tracking";
productName = "Eyes Tracking";
productReference = D0E5847620C806050052967A /* Eyes Tracking.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
D0E5846E20C806050052967A /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1000;
LastUpgradeCheck = 1000;
ORGANIZATIONNAME = virakri;
TargetAttributes = {
D0E5847520C806050052967A = {
CreatedOnToolsVersion = 10.0;
};
};
};
buildConfigurationList = D0E5847120C806050052967A /* Build configuration list for PBXProject "Eyes Tracking" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = D0E5846D20C806050052967A;
productRefGroup = D0E5847720C806050052967A /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
D0E5847520C806050052967A /* Eyes Tracking */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
D0E5847420C806050052967A /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
D0E5848620C806050052967A /* LaunchScreen.storyboard in Resources */,
D0E5848320C806050052967A /* Assets.xcassets in Resources */,
D0E5848120C806050052967A /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
D0E5847220C806050052967A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
D0D25B8920C80F5500A25627 /* Extensions.swift in Sources */,
D0E5847E20C806050052967A /* ViewController.swift in Sources */,
D0E5847A20C806050052967A /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
D0E5847F20C806050052967A /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
D0E5848020C806050052967A /* Base */,
);
name = Main.storyboard;
sourceTree = "";
};
D0E5848420C806050052967A /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
D0E5848520C806050052967A /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
D0E5848820C806060052967A /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
D0E5848920C806060052967A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
D0E5848B20C806060052967A /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = "Eyes Tracking/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.virakri.Eyes-Tracking";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
D0E5848C20C806060052967A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = "Eyes Tracking/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.virakri.Eyes-Tracking";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
D0E5847120C806050052967A /* Build configuration list for PBXProject "Eyes Tracking" */ = {
isa = XCConfigurationList;
buildConfigurations = (
D0E5848820C806060052967A /* Debug */,
D0E5848920C806060052967A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
D0E5848A20C806060052967A /* Build configuration list for PBXNativeTarget "Eyes Tracking" */ = {
isa = XCConfigurationList;
buildConfigurations = (
D0E5848B20C806060052967A /* Debug */,
D0E5848C20C806060052967A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = D0E5846E20C806050052967A /* Project object */;
}
================================================
FILE: Eyes Tracking.xcodeproj/project.xcworkspace/contents.xcworkspacedata
================================================
================================================
FILE: Eyes Tracking.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
================================================
IDEDidComputeMac32BitWarning
================================================
FILE: Eyes Tracking.xcodeproj/xcuserdata/virakri.xcuserdatad/xcschemes/xcschememanagement.plist
================================================
SchemeUserState
Eyes Tracking.xcscheme
orderHint
0
================================================
FILE: LICENSE
================================================
MIT License
Copyright (c) 2018 V
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.