-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Initialize RealityKit ARView in Glowby.swift
- Loading branch information
Showing
2 changed files
with
29 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
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,25 @@ | ||
// | ||
// Glowby.swift | ||
// Runner | ||
// | ||
// Created by Jacob Ilin on 2/2/24. | ||
// | ||
|
||
import UIKit | ||
import RealityKit | ||
|
||
class GlowbyARView: UIView { | ||
|
||
var arView: ARView! | ||
|
||
override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
arView = ARView(frame: CGRect(x: 0, y: 0, width: self.frame.size.width, height: self.frame.size.height)) | ||
self.addSubview(arView) | ||
// Setup the rest of your AR scene here. | ||
} | ||
|
||
required init?(coder aDecoder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
} |