Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
[ios11] ARKit Placing Objects sample
Browse files Browse the repository at this point in the history
  • Loading branch information
conceptdev committed Sep 19, 2017
1 parent 0141fd3 commit bfd7773
Show file tree
Hide file tree
Showing 156 changed files with 5,356 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ios11/ARKitPlacingObjects/Metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<SampleMetadata>
<ID>ED9821A2-008E-48AB-9356-DA5B303DCC63</ID>
<IsFullApplication>false</IsFullApplication>
<Level>Intermediate</Level>
<Tags>iOS11</Tags>
<SupportedPlatforms>iOS</SupportedPlatforms>
<Gallery>true</Gallery>
<Brief>iOS 11 ARKit example, placing pre-built objects in AR space.</Brief>
</SampleMetadata>
27 changes: 27 additions & 0 deletions ios11/ARKitPlacingObjects/PlacingObjects.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlacingObjects", "PlacingObjects\PlacingObjects.csproj", "{642930A6-0CFA-4520-89D0-BEB7F1BFA1EA}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Release|iPhone = Release|iPhone
Release|iPhoneSimulator = Release|iPhoneSimulator
Debug|iPhone = Debug|iPhone
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{642930A6-0CFA-4520-89D0-BEB7F1BFA1EA}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{642930A6-0CFA-4520-89D0-BEB7F1BFA1EA}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{642930A6-0CFA-4520-89D0-BEB7F1BFA1EA}.Release|iPhone.ActiveCfg = Release|iPhone
{642930A6-0CFA-4520-89D0-BEB7F1BFA1EA}.Release|iPhone.Build.0 = Release|iPhone
{642930A6-0CFA-4520-89D0-BEB7F1BFA1EA}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{642930A6-0CFA-4520-89D0-BEB7F1BFA1EA}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{642930A6-0CFA-4520-89D0-BEB7F1BFA1EA}.Debug|iPhone.ActiveCfg = Debug|iPhone
{642930A6-0CFA-4520-89D0-BEB7F1BFA1EA}.Debug|iPhone.Build.0 = Debug|iPhone
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
Policies = $0
$0.DotNetNamingPolicy = $1
EndGlobalSection
EndGlobal
20 changes: 20 additions & 0 deletions ios11/ARKitPlacingObjects/PlacingObjects.usertasks
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<ListOfTaskListEntry>
<TaskListEntry file="" description="Sweep for places where null checks can be replaced by ? monad" completed="True" />
<TaskListEntry file="" description="//TODO: Search in project for `null) return` and sweep them out to be bracketed&#xA; " completed="True" />
<TaskListEntry file="" description="Sweep through appsettings and delete unreferenced" completed="True" />
<TaskListEntry file="" description="Sweep for Tuple return types and convert to C# 7 style" completed="True" />
<TaskListEntry file="" description="Restructure classes into some kind of order, whether that's alphabetical or sequential (i.e., began / moved / cancelled / ended)" completed="True" />
<TaskListEntry file="" description="Sweep Swift and make sure all methods have corresponding C# code (opposite of last pass)" completed="True" />
<TaskListEntry file="" description="Sweep for functions named async and either asyncify them or rename" completed="True" />
<TaskListEntry file="" description="Drag doesn't work; check if it works with Swift" completed="True" />
<TaskListEntry file="" description="Pinch to resize doesn't work; check if it works with Swift" completed="True" />
<TaskListEntry file="" description="Confirm rotate and translate accuracy: Hard-code behaviors and see if they work" completed="True" />
<TaskListEntry file="" description="Add the logo back in: Grab the Xam splashscreen from an existing project" completed="True" />
<TaskListEntry file="" description="Seems to freeze after lengthy manipulation sequence (pinching / tapping / etc.)" completed="True" />
<TaskListEntry file="" description="Pinch-to-scale doesn't work in Swift. Remove toggle or document? (Disable maybe?)" completed="True" />
<TaskListEntry file="" description="Rotation with fingers works in Swift" completed="True" />
<TaskListEntry file="" description="Starting a new session locks things up" completed="True" />
<TaskListEntry file="" completed="True" />
<TaskListEntry file="" description="Focus square doesn't close" completed="True" />
<TaskListEntry file="" description="I don't think I get the &quot;initializing&quot; messages " completed="True" />
</ListOfTaskListEntry>
57 changes: 57 additions & 0 deletions ios11/ARKitPlacingObjects/PlacingObjects/AppDelegate.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
using Foundation;
using UIKit;

namespace PlacingObjects
{
[Register("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
// class-level declarations

public override UIWindow Window
{
get;
set;
}

public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
{
// Override point for customization after application launch.
// If not required for your application you can safely delete this method

return true;
}

public override void OnResignActivation(UIApplication application)
{
// Invoked 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.
// Games should use this method to pause the game.
}

public override void DidEnterBackground(UIApplication application)
{
// Use this method to release shared resources, save user data, invalidate timers and store the application state.
// If your application supports background exection this method is called instead of WillTerminate when the user quits.
}

public override void WillEnterForeground(UIApplication application)
{
// Called as part of the transiton from background to active state.
// Here you can undo many of the changes made on entering the background.
}

public override void OnActivated(UIApplication application)
{
// 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.
}

public override void WillTerminate(UIApplication application)
{
// Called when the application is about to terminate. Save data, if needed. See also DidEnterBackground.
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
{
"images": [
{
"size": "20x20",
"scale": "2x",
"idiom": "iphone"
},
{
"size": "20x20",
"scale": "3x",
"idiom": "iphone"
},
{
"filename": "icon-spotlight-29@2x.png",
"size": "29x29",
"scale": "2x",
"idiom": "iphone"
},
{
"filename": "icon-spotlight-29@3x.png",
"size": "29x29",
"scale": "3x",
"idiom": "iphone"
},
{
"filename": "icon-spotlight-40@2x.png",
"size": "40x40",
"scale": "2x",
"idiom": "iphone"
},
{
"filename": "icon-spotlight-40@3x.png",
"size": "40x40",
"scale": "3x",
"idiom": "iphone"
},
{
"filename": "icon-app-60@2x.png",
"size": "60x60",
"scale": "2x",
"idiom": "iphone"
},
{
"filename": "icon-app-60@3x.png",
"size": "60x60",
"scale": "3x",
"idiom": "iphone"
},
{
"size": "20x20",
"scale": "1x",
"idiom": "ipad"
},
{
"size": "20x20",
"scale": "2x",
"idiom": "ipad"
},
{
"filename": "icon-spotlight-29.png",
"size": "29x29",
"scale": "1x",
"idiom": "ipad"
},
{
"filename": "icon-spotlight-29@2x.png",
"size": "29x29",
"scale": "2x",
"idiom": "ipad"
},
{
"filename": "icon-spotlight-40.png",
"size": "40x40",
"scale": "1x",
"idiom": "ipad"
},
{
"filename": "icon-spotlight-40@2x.png",
"size": "40x40",
"scale": "2x",
"idiom": "ipad"
},
{
"filename": "icon-app-83.5@2x.png",
"size": "83.5x83.5",
"scale": "2x",
"idiom": "ipad"
},
{
"filename": "icon-app-76.png",
"size": "76x76",
"scale": "1x",
"idiom": "ipad"
},
{
"filename": "icon-app-76@2x.png",
"size": "76x76",
"scale": "2x",
"idiom": "ipad"
},
{
"filename": "iTunesArtwork@2x",
"size": "1024x1024",
"scale": "1x",
"idiom": "ios-marketing"
},
{
"role": "notificationCenter",
"size": "24x24",
"subtype": "38mm",
"scale": "2x",
"idiom": "watch"
},
{
"role": "notificationCenter",
"size": "27.5x27.5",
"subtype": "42mm",
"scale": "2x",
"idiom": "watch"
},
{
"role": "companionSettings",
"size": "29x29",
"scale": "2x",
"idiom": "watch"
},
{
"role": "companionSettings",
"size": "29x29",
"scale": "3x",
"idiom": "watch"
},
{
"role": "appLauncher",
"size": "40x40",
"subtype": "38mm",
"scale": "2x",
"idiom": "watch"
},
{
"role": "longLook",
"size": "44x44",
"subtype": "42mm",
"scale": "2x",
"idiom": "watch"
},
{
"role": "quickLook",
"size": "86x86",
"subtype": "38mm",
"scale": "2x",
"idiom": "watch"
},
{
"role": "quickLook",
"size": "98x98",
"subtype": "42mm",
"scale": "2x",
"idiom": "watch"
},
{
"size": "16x16",
"scale": "1x",
"idiom": "mac"
},
{
"size": "16x16",
"scale": "2x",
"idiom": "mac"
},
{
"size": "32x32",
"scale": "1x",
"idiom": "mac"
},
{
"size": "32x32",
"scale": "2x",
"idiom": "mac"
},
{
"size": "128x128",
"scale": "1x",
"idiom": "mac"
},
{
"size": "128x128",
"scale": "2x",
"idiom": "mac"
},
{
"size": "256x256",
"scale": "1x",
"idiom": "mac"
},
{
"size": "256x256",
"scale": "2x",
"idiom": "mac"
},
{
"size": "512x512",
"scale": "1x",
"idiom": "mac"
},
{
"size": "512x512",
"scale": "2x",
"idiom": "mac"
}
],
"info": {
"version": 1,
"author": "xcode"
}
}
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "xamagon.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "add@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "add@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bfd7773

Please sign in to comment.