hasDifferentColorAppearance is true when app is backgrounded

后端 未结 1 1482
借酒劲吻你
借酒劲吻你 2021-01-18 03:59

Apple recommends that we use traitCollectionDidChange and compare trait collections using hasDifferentColorAppearance to catch when dark mode is toggled, and ac

相关标签:
1条回答
  • 2021-01-18 04:26

    iOS is creating snapshots of your UI for light and dark appearance (and also for portrait and landscape orientation) every time the app is backgrounded for previewing your app in the app switcher UI. So this is perfectly normal behavior.

    0 讨论(0)
提交回复
热议问题