The transform is set in viewDidLoad. But I can reproduce the problem by setting the transform afterwards as well.
The problem with just setting the insets myself is that I don't know where to get the correct values from, as the safeAreaInsets are not updated, which is the problem. Where else might I get the correct safe are insets values from?
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: