On iOS 11 and above, update viewport padding and notify the framework when changes to safe area insets occur.