My animations in a view controller depend on there being a fixed value of self.view.center
. However, depending on my navigation flow, my self.view.center has a different value (41.5f difference on iPhone X, iOS 11).
Can someone explain why that would be? Has it something to do with extended layouts? Changing the status bar/tab bar/nav bar?
Can I get the exact value through another method?
I have already tried:
CGRectGetMidY(self.view.bounds); //-> same problem applies here