Created
April 22, 2025 17:37
-
-
Save iregina/764e30981cc53641dd914c0061f28378 to your computer and use it in GitHub Desktop.
how we capture the snapshot on iOS - Shopify MobileBridge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class TransportableView: RCTView { | |
func takeSnapshot() { | |
removeSnapshot() | |
snapshot = snapshotView(afterScreenUpdates: false) | |
if let snapshot { | |
addSubview(snapshot) | |
snapshot.frame = frame | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment