msstickerview

How to add sticker VIEWS to browser view in swift?

旧巷老猫 提交于 2019-12-25 07:59:44
问题 Alright, like everyone Im new to ms stickers in Swift but I am trying to figure out the purpose of / difference between an mssticker and msstickerview. I have read the API here https://developer.apple.com/reference/messages/msstickerview/1648434-sticker but cant find an answer to this relatively simple problem - it seems you can only add MSStickers (not StickerViews) to an MSStickerBrowserView, which is the only way to display them. I however need to add StickerVIEWS because I have a custom

How can I show Stickers from Document directory in Swift

送分小仙女□ 提交于 2019-12-13 00:35:08
问题 DispatchQueue.main.async { var x : Int = 0 for item in self.arrGifs { let gif : GIF = item as! GIF let gifName = URL(string: gif.gifImage)?.lastPathComponent // let ur let pathUrl = URL.urlInDocumentsDirectory(with: "\(gifName!)").path print("image path is =====>", pathUrl) //RawImages.xcassets // if let url = Bundle.main.url(forResource:"3", withExtension: "gif") // { print("url is ------>>>> ",url) do { let sticker = try // MSSticker(contentsOfFileURL: url,localizedDescription: "")

How to provide different sizes for iMessage Sticker App Grid Sticker

安稳与你 提交于 2019-12-08 03:43:35
问题 I have created an iOS iMessage sticker app, and according to apple documentation, I should be able to display the stickers in one of three different sizes. However, no matter what size I make the sticker images (300px by 300px, 408px by 408px, 618px by 618px) they only show up as the middle grid option, with three stickers per row. Does anyone know how to fix this issue, maybe I am missing something simple? Documentation on this topic is scarce because it is fairly new. Thanks for the help.

How to provide different sizes for iMessage Sticker App Grid Sticker

こ雲淡風輕ζ 提交于 2019-12-06 13:38:08
I have created an iOS iMessage sticker app, and according to apple documentation, I should be able to display the stickers in one of three different sizes. However, no matter what size I make the sticker images (300px by 300px, 408px by 408px, 618px by 618px) they only show up as the middle grid option, with three stickers per row. Does anyone know how to fix this issue, maybe I am missing something simple? Documentation on this topic is scarce because it is fairly new. Thanks for the help. Link to documentation: https://developer.apple.com/ios/human-interface-guidelines/extensions/messaging/