Created
July 10, 2018 17:06
-
-
Save aclima93/2d627e06d3b2be86da803011c9b6e06a to your computer and use it in GitHub Desktop.
ARKit & CoreLocation + POI + AR Scene
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
func addPOIToARScene(_ poi: PointOfInterest) { | |
// create node | |
let location = CLLocation(latitude: poi.latitude, longitude: poi.longitude) | |
let text = poi.title | |
let annotationNode = LocationTextAnnotationNode(location: location, image: UIImage(named: "LocationMarker")!, text: text) | |
// add node to AR scene | |
sceneLocationView.addLocationNodeWithConfirmedLocation(locationNode: annotationNode) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment