Explore EDR on iOS

RSS for tag

Discuss the WWDC22 Session Explore EDR on iOS

Posts under wwdc2022-10113 tag

1 Post
Sort by:

Post

Replies

Boosts

Views

Activity

Observe currentEDRHeadroom for changes
Is there a way to observe the currentEDRHeadroom property of UIScreen for changes? KVO is not working for this property... I understand that I can query the current headroom in the draw(...) method to adapt the rendering. However, our apps only render on-demand when the user changes parameters. But we would also like to re-render when the current EDR headroom changes to adapt the tone mapping to the new environment. The only solution we've found so far is to continuously query the screen for changes, which doesn't seem ideal. It would be better if the property would be observable via KVO or if there would be a system notification to listen for. Thanks!
2
0
1.2k
3w