initWithName:coordinate:
Initializes a named location anchor with the given coordinates.
Declaration
- (instancetype) initWithName:(NSString *) name coordinate:(CLLocationCoordinate2D) coordinate;Parameters
- name:
Name of the anchor.
- coordinate:
Lattitude and longitude of the anchor’s geographic location.
Discussion
Because this initializer does not take an altitude argument, ARKit will determine (and set) the anchor’s altitude at runtime.