diff --git a/AR Ruler.xcodeproj/project.pbxproj b/AR Ruler.xcodeproj/project.pbxproj new file mode 100644 index 0000000..556fb1e --- /dev/null +++ b/AR Ruler.xcodeproj/project.pbxproj @@ -0,0 +1,346 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 100E0A33255AE3E200B78666 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 100E0A32255AE3E200B78666 /* AppDelegate.swift */; }; + 100E0A35255AE3E200B78666 /* art.scnassets in Resources */ = {isa = PBXBuildFile; fileRef = 100E0A34255AE3E200B78666 /* art.scnassets */; }; + 100E0A37255AE3E200B78666 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 100E0A36255AE3E200B78666 /* ViewController.swift */; }; + 100E0A3A255AE3E200B78666 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 100E0A38255AE3E200B78666 /* Main.storyboard */; }; + 100E0A3C255AE3E400B78666 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 100E0A3B255AE3E400B78666 /* Assets.xcassets */; }; + 100E0A3F255AE3E400B78666 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 100E0A3D255AE3E400B78666 /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 100E0A2F255AE3E200B78666 /* AR Ruler.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "AR Ruler.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 100E0A32255AE3E200B78666 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 100E0A34255AE3E200B78666 /* art.scnassets */ = {isa = PBXFileReference; lastKnownFileType = wrapper.scnassets; path = art.scnassets; sourceTree = ""; }; + 100E0A36255AE3E200B78666 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 100E0A39255AE3E200B78666 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 100E0A3B255AE3E400B78666 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 100E0A3E255AE3E400B78666 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 100E0A40255AE3E400B78666 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 100E0A2C255AE3E200B78666 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 100E0A26255AE3E200B78666 = { + isa = PBXGroup; + children = ( + 100E0A31255AE3E200B78666 /* AR Ruler */, + 100E0A30255AE3E200B78666 /* Products */, + ); + sourceTree = ""; + }; + 100E0A30255AE3E200B78666 /* Products */ = { + isa = PBXGroup; + children = ( + 100E0A2F255AE3E200B78666 /* AR Ruler.app */, + ); + name = Products; + sourceTree = ""; + }; + 100E0A31255AE3E200B78666 /* AR Ruler */ = { + isa = PBXGroup; + children = ( + 100E0A32255AE3E200B78666 /* AppDelegate.swift */, + 100E0A34255AE3E200B78666 /* art.scnassets */, + 100E0A36255AE3E200B78666 /* ViewController.swift */, + 100E0A38255AE3E200B78666 /* Main.storyboard */, + 100E0A3B255AE3E400B78666 /* Assets.xcassets */, + 100E0A3D255AE3E400B78666 /* LaunchScreen.storyboard */, + 100E0A40255AE3E400B78666 /* Info.plist */, + ); + path = "AR Ruler"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 100E0A2E255AE3E200B78666 /* AR Ruler */ = { + isa = PBXNativeTarget; + buildConfigurationList = 100E0A43255AE3E400B78666 /* Build configuration list for PBXNativeTarget "AR Ruler" */; + buildPhases = ( + 100E0A2B255AE3E200B78666 /* Sources */, + 100E0A2C255AE3E200B78666 /* Frameworks */, + 100E0A2D255AE3E200B78666 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "AR Ruler"; + productName = "AR Ruler"; + productReference = 100E0A2F255AE3E200B78666 /* AR Ruler.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 100E0A27255AE3E200B78666 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1210; + LastUpgradeCheck = 1210; + TargetAttributes = { + 100E0A2E255AE3E200B78666 = { + CreatedOnToolsVersion = 12.1; + }; + }; + }; + buildConfigurationList = 100E0A2A255AE3E200B78666 /* Build configuration list for PBXProject "AR Ruler" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 100E0A26255AE3E200B78666; + productRefGroup = 100E0A30255AE3E200B78666 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 100E0A2E255AE3E200B78666 /* AR Ruler */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 100E0A2D255AE3E200B78666 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 100E0A35255AE3E200B78666 /* art.scnassets in Resources */, + 100E0A3F255AE3E400B78666 /* LaunchScreen.storyboard in Resources */, + 100E0A3C255AE3E400B78666 /* Assets.xcassets in Resources */, + 100E0A3A255AE3E200B78666 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 100E0A2B255AE3E200B78666 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 100E0A37255AE3E200B78666 /* ViewController.swift in Sources */, + 100E0A33255AE3E200B78666 /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 100E0A38255AE3E200B78666 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 100E0A39255AE3E200B78666 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 100E0A3D255AE3E400B78666 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 100E0A3E255AE3E400B78666 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 100E0A41255AE3E400B78666 /* 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + 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; + 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 = 14.1; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 100E0A42255AE3E400B78666 /* 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + 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; + 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 = 14.1; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 100E0A44255AE3E400B78666 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = AXJ887472H; + INFOPLIST_FILE = "AR Ruler/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "com.vintagemixing.AR-Ruler"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 100E0A45255AE3E400B78666 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = AXJ887472H; + INFOPLIST_FILE = "AR Ruler/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "com.vintagemixing.AR-Ruler"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 100E0A2A255AE3E200B78666 /* Build configuration list for PBXProject "AR Ruler" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 100E0A41255AE3E400B78666 /* Debug */, + 100E0A42255AE3E400B78666 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 100E0A43255AE3E400B78666 /* Build configuration list for PBXNativeTarget "AR Ruler" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 100E0A44255AE3E400B78666 /* Debug */, + 100E0A45255AE3E400B78666 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 100E0A27255AE3E200B78666 /* Project object */; +} diff --git a/AR Ruler.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/AR Ruler.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/AR Ruler.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/AR Ruler.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/AR Ruler.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/AR Ruler.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/AR Ruler.xcodeproj/xcuserdata/shmanai.xcuserdatad/xcschemes/xcschememanagement.plist b/AR Ruler.xcodeproj/xcuserdata/shmanai.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..6cd7d2e --- /dev/null +++ b/AR Ruler.xcodeproj/xcuserdata/shmanai.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + AR Ruler.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/AR Ruler/AppDelegate.swift b/AR Ruler/AppDelegate.swift new file mode 100644 index 0000000..10f0f52 --- /dev/null +++ b/AR Ruler/AppDelegate.swift @@ -0,0 +1,40 @@ +// +// AppDelegate.swift +// AR Ruler +// +// Created by shmanai on 11/10/20. +// + +import UIKit + +@main +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. + } + + 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. + } + + +} + diff --git a/AR Ruler/Assets.xcassets/AccentColor.colorset/Contents.json b/AR Ruler/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/AR Ruler/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AR Ruler/Assets.xcassets/AppIcon.appiconset/Contents.json b/AR Ruler/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9221b9b --- /dev/null +++ b/AR Ruler/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AR Ruler/Assets.xcassets/Contents.json b/AR Ruler/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/AR Ruler/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AR Ruler/Base.lproj/LaunchScreen.storyboard b/AR Ruler/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/AR Ruler/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AR Ruler/Base.lproj/Main.storyboard b/AR Ruler/Base.lproj/Main.storyboard new file mode 100644 index 0000000..ee86cce --- /dev/null +++ b/AR Ruler/Base.lproj/Main.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AR Ruler/Info.plist b/AR Ruler/Info.plist new file mode 100644 index 0000000..b1697b9 --- /dev/null +++ b/AR Ruler/Info.plist @@ -0,0 +1,52 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + NSCameraUsageDescription + + UIApplicationSupportsIndirectInputEvents + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + arkit + + UIStatusBarHidden + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/AR Ruler/ViewController.swift b/AR Ruler/ViewController.swift new file mode 100644 index 0000000..bdeee8d --- /dev/null +++ b/AR Ruler/ViewController.swift @@ -0,0 +1,74 @@ +// +// ViewController.swift +// AR Ruler +// +// Created by shmanai on 11/10/20. +// + +import UIKit +import SceneKit +import ARKit + +class ViewController: UIViewController, ARSCNViewDelegate { + + @IBOutlet var sceneView: ARSCNView! + + override func viewDidLoad() { + super.viewDidLoad() + + // Set the view's delegate + sceneView.delegate = self + + // Show statistics such as fps and timing information + sceneView.showsStatistics = true + + // Create a new scene + let scene = SCNScene(named: "art.scnassets/ship.scn")! + + // Set the scene to the view + sceneView.scene = scene + } + + override func viewWillAppear(_ animated: Bool) { + super.viewWillAppear(animated) + + // Create a session configuration + let configuration = ARWorldTrackingConfiguration() + + // Run the view's session + sceneView.session.run(configuration) + } + + override func viewWillDisappear(_ animated: Bool) { + super.viewWillDisappear(animated) + + // Pause the view's session + sceneView.session.pause() + } + + // MARK: - ARSCNViewDelegate + +/* + // Override to create and configure nodes for anchors added to the view's session. + func renderer(_ renderer: SCNSceneRenderer, nodeFor anchor: ARAnchor) -> SCNNode? { + let node = SCNNode() + + return node + } +*/ + + func session(_ session: ARSession, didFailWithError error: Error) { + // Present an error message to the user + + } + + func sessionWasInterrupted(_ session: ARSession) { + // Inform the user that the session has been interrupted, for example, by presenting an overlay + + } + + func sessionInterruptionEnded(_ session: ARSession) { + // Reset tracking and/or remove existing anchors if consistent tracking is required + + } +} diff --git a/AR Ruler/art.scnassets/ship.scn b/AR Ruler/art.scnassets/ship.scn new file mode 100644 index 0000000..34a27ea Binary files /dev/null and b/AR Ruler/art.scnassets/ship.scn differ diff --git a/AR Ruler/art.scnassets/texture.png b/AR Ruler/art.scnassets/texture.png new file mode 100644 index 0000000..ba39258 Binary files /dev/null and b/AR Ruler/art.scnassets/texture.png differ