Skip to content

Instantly share code, notes, and snippets.

Alec Dilanchian adilanchian

View GitHub Profile
View FriendProtocol.swift
import UIKit
/*
Protocol Definition: A protocol defines a blueprint of methods, properties, and other requirements that suit a particular
task or piece of functionality.
(https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Protocols.html)
*/
/*
This protocol, GreetFriendDelegate, requires any conforming type to have an instance method called greetFriend, which
View ARSceneViewExample.swift
//-- Center Middle Overlay --//
@IBOutlet weak var centerOverlayView: UIView!
//-- AR Properties --//
@IBOutlet weak var arSceneView: ARSCNView!
let useARView = true
var screenCenter: CGPoint = CGPoint()
var planeAnchors = [ARPlaneAnchor]()
//-- Scenekit Properties --//
You can’t perform that action at this time.