Posts

Post not yet marked as solved
1 Replies
242 Views
After iOS 14, it seems to get Lux by SRAmbientLightSample. https://developer.apple.com/documentation/sensorkit/srambientlightsample But when I use this code: import SensorKit let lightSample = SRAmbientLightSample() let lux = lightSample.lux It always crashes at "let lux = lightSample.lux" I can find any usages from this document page, and also stack overflow. Please help to know, how to get Lux by SRAmbientLightSample ? Thanks.
Posted
by JerryLan.
Last updated
.