Dmitriy Tarasevich
05/29/2024, 10:20 PMElijah Semyonov
05/30/2024, 8:33 AMImageComposeScene
(or convenience API renderComposeScene
)
The API chain is a bit tricky to discover, though (and is experimental + internal)
A safer way is to call UIView.snapshotViewAfterScreenUpdates
on view
of UIViewController
and use the resulting UIView
with visual data (we do it for fullscreen Compose orientation change animation) for your needs (like rendering it to jpg). Also there is convenience API for that described in the article. I didn’t try to do it that way, but I bet it should work.Dmitriy Tarasevich
05/30/2024, 10:39 AM