NINearbyPeerConfiguration
A configuration that enables interaction between iPhone or Apple Watch devices.
Declaration
class NINearbyPeerConfigurationMentioned in
Overview
A peer interaction session enables two Apple devices to share their respective distance and direction through the device’s Ultra Wideband (UWB) chip. To start a peer interaction session, create a NINearbyPeerConfiguration instance and pass it to an NISession instance with the run(_:) function.
For an example app that demonstrates this configuration, see Implementing interactions between users in close proximity.
Enable Precision Finding for stationary objects
In iOS 16, you can combine the visual spatial power of ARKit with the radio sensitivity of the UWB chip to locate stationary nearby objects with considerable precision. To do that, set isCameraAssistanceEnabled to true and optionally provide the interaction session with an ARSession instance through setARSession(_:) before running the session. Together, the UWB chip and ARKit’s assistance enable Nearby Interaction to provide the same Precision Finding capabilities present in AirTag.