Unable to get correct UIWebView content size information on iPhone12 series devices with iOS15 and above.

  • We are using UIWebView to render charts in our App. The charts are present inside cards implemented using UICollectionView. To correctly identify the required height for the card we use the method "sizeThatFits".
  • This approach is working fine on device except iPhone 12 device(iOS 15).
  • We also tried using WebView Scroll content size to get the required height which worked well on all device Except iPhone 12 device(iOS 15).
  • Need help in resolving this major UI issue. Thanks