Throughout the various way across the internet of capturing a screenshot of the entirety of a UIScrollView's contents (not just the clipped viewport), all pieces of code seem to fail and draw the correct size of image but still be clipped to the viewport of the UIScrollView only.
I can't seem to see any official say on this and if it is a bug has existed at least until iOS 13 (and is still in iOS 15)
Does anyone know if this is a known issue (Apple Engineers)?
Most code examples look like this https://stackoverflow.com/a/48590443/1735584
but there are also examples with drawInHierarchy
and snapshotView
which results in the same thing