0

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
  • 465
  • 1
  • 4
  • 6

1 Answers1

3
UIDevice.current.isProximityMonitoringEnabled = true

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

XPLOT1ON
  • 2,994
  • 2
  • 20
  • 36