Sign up for our live Camera Kit office hour on July 17 @ 9:30am (PT) / 4:30pm (GMT)
Share from CameraKit to Snapchat
Comments
-
@stevenxu on the demo code on GitHub it is shown how to share content using CreativeKit
let content = SCSDKPhotoSnapContent(snapPhoto: photo) sendSnapContent(content, viewController: viewController)
All you need to do is modify the content to include attachmentUrl
content.caption = "Snap on Snapchat!" /* Optional /
content.attachmentUrl = "https://www.snapchat.com" / Optional */so all together:
let content = SCSDKPhotoSnapContent(snapPhoto: photo) content.caption= "Tap on the link" /* Optional */ content.attachmentUrl = "https://www.myurl.com" /* Optional */ sendSnapContent(content, viewController: viewController)
Now we just need to make sure the IdentityWebView bug is fixed so that it works 100% of the time instead of 70% As all traffic to that url will go through IdentityWebView for Q&A lenses
1