From 86b5234316f4048783eb46e7eb06d57f0203fbff Mon Sep 17 00:00:00 2001 From: Eric Wang Date: Mon, 27 Nov 2023 10:48:42 -0500 Subject: [PATCH] removed black bars from interface, fixed arview documentation --- .DS_Store | Bin 6148 -> 6148 bytes app/.DS_Store | Bin 6148 -> 6148 bytes .../newHere/CustomARViewRepresentable.swift | 6 +++--- app/newHere1/newHere/Home.swift | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.DS_Store b/.DS_Store index 9c6a5e6de6fa0e9fba794b139a278c325905729a..dc6163b85a20bb105a122cc35bbeeb336e1123f9 100644 GIT binary patch delta 232 zcmZoMXfc=|#>B!ku~2NHo}wrR0|Nsi1A_nqgA0Q{gENC3LoP$g=84S9nI%C|Tnvs3 z0SulD@yODX?U>~)`4|!z3K%khG9?VD48=fF4@i~+Mba2bJah7slXCKtfF=MQM delta 111 zcmZoMXfc=|#>B)qu~2NHo}w@-0|Nsi1A_oVesWSyeiD!;u(5C@BO~kN8Wvwh_Q|JM zqWL*E;{_zDtBouybrg&ZO(vVL&fNT;m4j(x!y=~5>>T_YK;t$Ga(ri=%rD}|0W<<+ LBFp9oku}T!nrj(R diff --git a/app/.DS_Store b/app/.DS_Store index bd6569f7ac56961b97eb66f431e4de527b91c95a..f669acf910be344a7f8273c6aeec05f649088915 100644 GIT binary patch delta 108 zcmZoMXfc@JFUroqz`)4BAi%(o%1{KvhMqb3$(t84FK1+ApKQP^A_L+l<>V&;)d3YT zI0CWWe=uNR04bQPz$DAaG1-nOnxB(1UO=L{+Qh&_N5RCxX!8mteb&wF9Dn%%g)|#y delta 78 zcmZoMXfc@JFUrQiz`)4BAi%(o%1{KvhDqhc1)DE2FK1+Ao1DNbGC6=rmXUpO9#b?w h2WPy1M0K^1g{6*yv7yQ48%+AF6B`URvvd6A2LQJ>6FC3? diff --git a/app/newHere1/newHere/CustomARViewRepresentable.swift b/app/newHere1/newHere/CustomARViewRepresentable.swift index bc1fc36..046481c 100644 --- a/app/newHere1/newHere/CustomARViewRepresentable.swift +++ b/app/newHere1/newHere/CustomARViewRepresentable.swift @@ -106,9 +106,9 @@ struct CustomARViewRepresentable: UIViewRepresentable { var randomNumberGenerator = SystemRandomNumberGenerator() // Define the range of random positions for x, y, and z coordinates - let xRange: ClosedRange = -3.0...3.0 // Represents a 10-meter width (-5m to +5m) - let yRange: ClosedRange = -1.0...2.0 // Represents a height range above the ground (0m to +2m) - let zRange: ClosedRange = -3.0...3.0 // Represents a 10-meter depth (-5m to +5m) + let xRange: ClosedRange = -2.0...2.0 // Represents a 4-meter width (-2m to +2m) + let yRange: ClosedRange = -1.0...2.0 // Represents a height range above the ground (-1m to +2m) + let zRange: ClosedRange = -2.0...2.0 // Represents a 4-meter depth (-2m to +2m) for message in messages { // Generate random positions diff --git a/app/newHere1/newHere/Home.swift b/app/newHere1/newHere/Home.swift index da61fe3..b2eacf3 100644 --- a/app/newHere1/newHere/Home.swift +++ b/app/newHere1/newHere/Home.swift @@ -34,6 +34,7 @@ struct HomePageView: View { /// The body of the view, presenting the AR view along with overlay controls for navigation and interaction. var body: some View { CustomARViewRepresentable() + .edgesIgnoringSafeArea(.all) .environmentObject(messageState) .environmentObject(fetchedMessagesState) .overlay(alignment: .bottom){