I am placing an MKMapView in a UIViewController.view, which is below a UINavigationController. I am using addSubview and setting constraints. The compass, scale, and legal attribution were positioning fine until iOS 11. If I run it in iOS 11.0.1, 11.0.2, or 11.1, the compass appears behind the navigation bar insted of below it where we can see it. In the debugger, I get the following:
Could not inset compass from edges 9
Could not inset scale from edge 9
Could not inset legal attribution from corner 4
The weird thing is iOS 11.0.3 positioned these controls correctly. So it appears it was fixed briefly and then broken again with 11.1.
Is there something new I should be doing with safeArea, like telling the mapView about safeAreaInsets after I call addSubview()?