added wrapper UI view for AR controller, added readme
This commit is contained in:
parent
5f3a76c4a0
commit
c07e4090b2
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
|||||||
# Xcode
|
# Xcode
|
||||||
#
|
#
|
||||||
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
|
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
## User settings
|
## User settings
|
||||||
xcuserdata/
|
xcuserdata/
|
||||||
|
5
README.md
Normal file
5
README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# SarsooAR
|
||||||
|
|
||||||
|
Playing with ARKit and Reality Composer
|
||||||
|
|
||||||
|
![Reality Composer View](docs/GoldAndWord.png)
|
@ -49,6 +49,7 @@
|
|||||||
E906F82224154B2A004E1E31 /* SarsooARUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SarsooARUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
E906F82224154B2A004E1E31 /* SarsooARUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SarsooARUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
E906F82624154B2A004E1E31 /* SarsooARUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SarsooARUITests.swift; sourceTree = "<group>"; };
|
E906F82624154B2A004E1E31 /* SarsooARUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SarsooARUITests.swift; sourceTree = "<group>"; };
|
||||||
E906F82824154B2A004E1E31 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
E906F82824154B2A004E1E31 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
|
E906F834241554A2004E1E31 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
/* Begin PBXFrameworksBuildPhase section */
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
@ -79,6 +80,7 @@
|
|||||||
E906F7F824154B21004E1E31 = {
|
E906F7F824154B21004E1E31 = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
E906F834241554A2004E1E31 /* README.md */,
|
||||||
E906F80324154B21004E1E31 /* SarsooAR */,
|
E906F80324154B21004E1E31 /* SarsooAR */,
|
||||||
E906F81A24154B2A004E1E31 /* SarsooARTests */,
|
E906F81A24154B2A004E1E31 /* SarsooARTests */,
|
||||||
E906F82524154B2A004E1E31 /* SarsooARUITests */,
|
E906F82524154B2A004E1E31 /* SarsooARUITests */,
|
||||||
|
@ -10,8 +10,29 @@ import SwiftUI
|
|||||||
import RealityKit
|
import RealityKit
|
||||||
|
|
||||||
struct ContentView : View {
|
struct ContentView : View {
|
||||||
|
|
||||||
|
@State var showingSession = false
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
return ARViewContainer().edgesIgnoringSafeArea(.all)
|
TabView {
|
||||||
|
NavigationView {
|
||||||
|
List {
|
||||||
|
Button(action: { self.showingSession = true }) {
|
||||||
|
Text("Launch Session")
|
||||||
|
}.sheet(isPresented: $showingSession) {
|
||||||
|
ARViewContainer().edgesIgnoringSafeArea(.all)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.listStyle(GroupedListStyle())
|
||||||
|
.navigationBarTitle("SarsooAR")
|
||||||
|
}
|
||||||
|
.tabItem {
|
||||||
|
VStack {
|
||||||
|
Image(systemName: "camera")
|
||||||
|
Text("AR")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 110 KiB |
Binary file not shown.
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 202 KiB |
@ -23,12 +23,13 @@
|
|||||||
{
|
{
|
||||||
"configurationBox" : {
|
"configurationBox" : {
|
||||||
"configuration" : {
|
"configuration" : {
|
||||||
"animationStyle" : "basic",
|
"animationStyle" : "wild",
|
||||||
"duration" : 1.7699999809265137,
|
"duration" : 1.7699999809265137,
|
||||||
"emphasisAnimationType" : "float",
|
"emphasisAnimationType" : "spin",
|
||||||
"iterations" : 1,
|
"iterations" : 1,
|
||||||
"target" : [
|
"target" : [
|
||||||
"3788A5B5-0388-488A-8304-7B90FEBA6FAC"
|
"3788A5B5-0388-488A-8304-7B90FEBA6FAC",
|
||||||
|
"05ACEBFF-4612-4E58-97C3-33A01C840AF2"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"name" : {
|
"name" : {
|
||||||
@ -66,7 +67,7 @@
|
|||||||
{
|
{
|
||||||
"configurationBox" : {
|
"configurationBox" : {
|
||||||
"configuration" : {
|
"configuration" : {
|
||||||
"distance" : 0.2793009877204895,
|
"distance" : 0.562347412109375,
|
||||||
"target" : [
|
"target" : [
|
||||||
"3788A5B5-0388-488A-8304-7B90FEBA6FAC"
|
"3788A5B5-0388-488A-8304-7B90FEBA6FAC"
|
||||||
],
|
],
|
||||||
@ -84,6 +85,79 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"__version" : 2
|
"__version" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__content" : [
|
||||||
|
{
|
||||||
|
"actionGroups" : [
|
||||||
|
{
|
||||||
|
"__content" : [
|
||||||
|
{
|
||||||
|
"configurations" : [
|
||||||
|
{
|
||||||
|
"__content" : [
|
||||||
|
{
|
||||||
|
"configurationBox" : {
|
||||||
|
"configuration" : {
|
||||||
|
"animationStyle" : "basic",
|
||||||
|
"duration" : 1,
|
||||||
|
"emphasisAnimationType" : "bounce",
|
||||||
|
"iterations" : 1,
|
||||||
|
"target" : [
|
||||||
|
"A2ED9927-7A82-4815-9DBB-E427A0CC634B"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"name" : {
|
||||||
|
"type" : "emphasis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identifier" : "5AD02865-21EF-4780-B8C0-D1D42605A017",
|
||||||
|
"isEnabled" : true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"__version" : 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"identifier" : "E7D59FF6-9477-4791-AABF-1090FB1BB078",
|
||||||
|
"isEnabled" : true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"__version" : 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"color" : [
|
||||||
|
0.21568627655506134,
|
||||||
|
0.72549021244049072,
|
||||||
|
0.80000001192092896,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"identifier" : "A6D597F4-AD02-4CBE-B644-F00CF29C4FAE",
|
||||||
|
"isEnabled" : true,
|
||||||
|
"isLooping" : false,
|
||||||
|
"isModal" : false,
|
||||||
|
"name" : "Behaviour 1",
|
||||||
|
"triggers" : [
|
||||||
|
{
|
||||||
|
"__content" : [
|
||||||
|
{
|
||||||
|
"configurationBox" : {
|
||||||
|
"configuration" : {
|
||||||
|
"target" : [
|
||||||
|
"A2ED9927-7A82-4815-9DBB-E427A0CC634B"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"name" : "tapTarget"
|
||||||
|
},
|
||||||
|
"identifier" : "8352DD77-E6DB-4DD1-B5FD-3E5AE33F13A4",
|
||||||
|
"isEnabled" : true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"__version" : 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"__version" : 2
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"gravity" : [
|
"gravity" : [
|
||||||
@ -397,21 +471,21 @@
|
|||||||
"title" : "Box",
|
"title" : "Box",
|
||||||
"viewTransform" : {
|
"viewTransform" : {
|
||||||
"cameraTransform" : [
|
"cameraTransform" : [
|
||||||
0.97084146738052368,
|
0.99868166446685791,
|
||||||
-5.587935802964239e-08,
|
-5.029141902923584e-08,
|
||||||
-0.23972232639789581,
|
-0.051330983638763428,
|
||||||
0,
|
0,
|
||||||
-0.092462286353111267,
|
-0.016422633081674576,
|
||||||
0.92262160778045654,
|
0.94743841886520386,
|
||||||
-0.37445956468582153,
|
-0.31951621174812317,
|
||||||
0,
|
0,
|
||||||
0.22117307782173157,
|
0.048632964491844177,
|
||||||
0.38570621609687805,
|
0.31993809342384338,
|
||||||
0.89571928977966309,
|
0.94618934392929077,
|
||||||
0,
|
0,
|
||||||
0.37851834297180176,
|
0.18197430670261383,
|
||||||
0.54469352960586548,
|
0.47035521268844604,
|
||||||
0.99601411819458008,
|
1.0450206995010376,
|
||||||
1
|
1
|
||||||
],
|
],
|
||||||
"sceneTransform" : [
|
"sceneTransform" : [
|
||||||
|
@ -34,8 +34,6 @@
|
|||||||
<key>UISupportedInterfaceOrientations</key>
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
<array>
|
<array>
|
||||||
<string>UIInterfaceOrientationPortrait</string>
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
||||||
</array>
|
</array>
|
||||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
<array>
|
<array>
|
||||||
|
BIN
docs/GoldAndWord.png
Normal file
BIN
docs/GoldAndWord.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 352 KiB |
Loading…
Reference in New Issue
Block a user