This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ios11] ARKit Placing Objects sample
- Loading branch information
1 parent
0141fd3
commit bfd7773
Showing
156 changed files
with
5,356 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
 " 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 "initializing" messages " completed="True" /> | ||
</ListOfTaskListEntry> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
} | ||
} | ||
} | ||
|
216 changes: 216 additions & 0 deletions
216
ios11/ARKitPlacingObjects/PlacingObjects/Assets.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 added
BIN
+1.62 MB
ios11/ARKitPlacingObjects/PlacingObjects/Assets.xcassets/AppIcon.appiconset/iTunesArtwork@2x
Binary file not shown.
Binary file added
BIN
+2.05 KB
...KitPlacingObjects/PlacingObjects/Assets.xcassets/AppIcon.appiconset/icon-29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.6 KB
...ingObjects/PlacingObjects/Assets.xcassets/AppIcon.appiconset/icon-app-60@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+69.4 KB
...ingObjects/PlacingObjects/Assets.xcassets/AppIcon.appiconset/icon-app-60@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.9 KB
...lacingObjects/PlacingObjects/Assets.xcassets/AppIcon.appiconset/icon-app-76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+50.6 KB
...ingObjects/PlacingObjects/Assets.xcassets/AppIcon.appiconset/icon-app-76@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+60.3 KB
...gObjects/PlacingObjects/Assets.xcassets/AppIcon.appiconset/icon-app-83.5@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.43 KB
...Objects/PlacingObjects/Assets.xcassets/AppIcon.appiconset/icon-spotlight-29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.49 KB
...ects/PlacingObjects/Assets.xcassets/AppIcon.appiconset/icon-spotlight-29@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.9 KB
...ects/PlacingObjects/Assets.xcassets/AppIcon.appiconset/icon-spotlight-29@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.36 KB
...Objects/PlacingObjects/Assets.xcassets/AppIcon.appiconset/icon-spotlight-40.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.4 KB
...ects/PlacingObjects/Assets.xcassets/AppIcon.appiconset/icon-spotlight-40@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.6 KB
...ects/PlacingObjects/Assets.xcassets/AppIcon.appiconset/icon-spotlight-40@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions
6
ios11/ARKitPlacingObjects/PlacingObjects/Assets.xcassets/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
ios11/ARKitPlacingObjects/PlacingObjects/Assets.xcassets/XamarinLogo.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Binary file added
BIN
+22.9 KB
...tPlacingObjects/PlacingObjects/Assets.xcassets/XamarinLogo.imageset/xamagon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions
22
ios11/ARKitPlacingObjects/PlacingObjects/Assets.xcassets/add.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Binary file added
BIN
+3.28 KB
ios11/ARKitPlacingObjects/PlacingObjects/Assets.xcassets/add.imageset/add@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.46 KB
ios11/ARKitPlacingObjects/PlacingObjects/Assets.xcassets/add.imageset/add@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.