Has anyone had a usecase and successfully were abo...
# compose-ios
d
Has anyone had a usecase and successfully were about to take a snapshot of a composable as a jpg and share using compose on IOS? Anyone see any blockers right off the bat before I start exploring this
👀 1
e
It should be possible with usage the
ImageComposeScene
(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.
🙌 1
d
thanks! ill give that a shot