-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/yale-swe/f23-here
- Loading branch information
Showing
5 changed files
with
225 additions
and
88 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
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,24 @@ | ||
// | ||
// CustomARView.swift | ||
// new_here | ||
// | ||
// Created by TRACY LI on 2023/10/28. | ||
// | ||
|
||
import ARKit | ||
import RealityKit | ||
import SwiftUI | ||
|
||
class CustomARView: ARView { | ||
required init (frame frameRect: CGRect){ | ||
super.init(frame: frameRect) | ||
} | ||
|
||
dynamic required init?(coder decoder: NSCoder){ | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
convenience init(){ | ||
self.init(frame: UIScreen.main.bounds) | ||
} | ||
} |
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,16 @@ | ||
// | ||
// CustomARViewRepresentable.swift | ||
// new_here | ||
// | ||
// Created by TRACY LI on 2023/10/28. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct CustomARViewRepresentable: UIViewRepresentable { | ||
func makeUIView(context: Context) -> CustomARView { | ||
return CustomARView() | ||
} | ||
|
||
func updateUIView (_ uiView: CustomARView, context: Context) {} | ||
} |
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
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