From 8af20de35a9b5e62b5ea37b5f215f7509ff16b39 Mon Sep 17 00:00:00 2001 From: Eric Wang Date: Sat, 28 Oct 2023 13:22:24 -0400 Subject: [PATCH] updated home and messages --- app/here/Bubble.swift | 30 ++++++++++++++++++++++++++++++ app/here/ViewController.swift | 3 +-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 app/here/Bubble.swift diff --git a/app/here/Bubble.swift b/app/here/Bubble.swift new file mode 100644 index 0000000..a05ad83 --- /dev/null +++ b/app/here/Bubble.swift @@ -0,0 +1,30 @@ +// +// Bubble.swift +// here +// +// Created by Eric Wang on 10/28/23. +// + +import Foundation +import ARKit + +class Bubble: SCNNode { + + override init() { + super.init() + let bubble = SCNPlane(width: 0.25, height: 0.25) + let material = SCNMaterial() + material.diffuse.contents = #imageLiteral(resourceName: "bubbleText") + material.isDoubleSided = true + material.writesToDepthBuffer = false + material.blendMode = .screen + bubble.materials = [material] + self.geometry = bubble + } + + required init?(coder aDecoder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + +} diff --git a/app/here/ViewController.swift b/app/here/ViewController.swift index 5a02015..d34c8ec 100644 --- a/app/here/ViewController.swift +++ b/app/here/ViewController.swift @@ -13,7 +13,6 @@ class ViewController: UIViewController { super.viewDidLoad() // Do any additional setup after loading the view. } - - + }