-1

Is it possible to programmatically replicate the iPhone feature where the screen dims and the touch functionalities are shut off when the phone is against your ear?

Alex oh
  • 325
  • 1
  • 2
  • 6

1 Answers1

2
UIDevice.current.isProximityMonitoringEnabled = true

This should enable to proximity sensor and automatically turn screen off when holding against ear

XPLOT1ON
  • 2,454
  • 2
  • 19
  • 34