Open ghost opened 4 years ago
I have got SwiftUI rendering to work by placing my SwiftUI view as the content layer of a ScrollView, then capturing that as an image. The advantage of using a Scroll View is that I didn't have to worry too much about what was actually visible.
I wonder if there may be a more generic solution here...
+1
It is working great with UICollectionView! This library will work only if the full view is rendered (consider the view contains 1000 pages)? Do we have any library for Swift UI that can parse CollectionView?