I am aware that safeAreaInsetsDidChange
is being called when the view is first laying out its subviews. What I'm wondering is under what circumstances/events this could be called again while the screen is still presented (iPad slide-over for example)
Asked
Active
Viewed 792 times
4

henrik-dmg
- 1,448
- 16
- 23
-
3I'm guessing there are following cases: orientation change, incoming call, started call, ended call, split screen. In future I'm sure folding a phone will trigger this too. – Marek R Aug 30 '19 at 09:41
-
I tried orientation change and slide-over, but not the other ones you mentioned. Thank you, I'll definitely investigate that! – henrik-dmg Aug 30 '19 at 09:44
1 Answers
0
It is called when the safeArea of the view did change. To understnad that you need to know what is safeArea.It is the area that is not covered by bars(navigation, tool, and tab).
These too links might help you.

mahan
- 12,366
- 5
- 48
- 83
-
1I'm quite aware what `safeArea` is, my question was about which cases would trigger a call to `safeAreaInsetsDidChange` – henrik-dmg Aug 30 '19 at 12:51