ios-messages-extension

Swift 3 iMessage Extension doesn't open URL

匆匆过客 提交于 2019-12-21 17:54:46
问题 I am creating an iOS Application iMessage Extension. According to Example by Apple, I creating a message according to provided logic guard let url: URL = URL(string: "http://www.google.com") else { return } let message = composeMessage(url: url) activeConversation?.insert(message, completionHandler: { [weak self] (error: Error?) in guard let error = error else { return } self?.presentAlert(error: error) }) also private func composeMessage(url: URL) -> MSMessage { let layout =

iOS 10 Messages Extension - Wrong Layout when using Storyboard Segue

こ雲淡風輕ζ 提交于 2019-12-21 04:20:51
问题 When using Segues in Messages Extension Application the layout gets messed up. Is there any way to solve this issue while still using storrybord segues? Screenshots: (Note: The first and second View / ViewController are identical. The segue-type doesn't matter) Expanded Presentation Style: Compact Presentation Style: Update 1: The top and bottom layout guides reset after a segue compact: top: should be: 0 but is: 20 bottom: should be: 44 but is: 0 expanded: top: should be: 86 but is: 20

Swift 3 iMessage Extension doesn't open URL

為{幸葍}努か 提交于 2019-12-04 10:30:43
I am creating an iOS Application iMessage Extension. According to Example by Apple , I creating a message according to provided logic guard let url: URL = URL(string: "http://www.google.com") else { return } let message = composeMessage(url: url) activeConversation?.insert(message, completionHandler: { [weak self] (error: Error?) in guard let error = error else { return } self?.presentAlert(error: error) }) also private func composeMessage(url: URL) -> MSMessage { let layout = MSMessageTemplateLayout() layout.caption = "caption" layout.subcaption = "subcaption" layout.trailingSubcaption =

iOS 10 Messages Extension - Wrong Layout when using Storyboard Segue

一笑奈何 提交于 2019-12-03 12:45:42
When using Segues in Messages Extension Application the layout gets messed up. Is there any way to solve this issue while still using storrybord segues? Screenshots: (Note: The first and second View / ViewController are identical. The segue-type doesn't matter) Expanded Presentation Style: Compact Presentation Style: Update 1: The top and bottom layout guides reset after a segue compact: top: should be: 0 but is: 20 bottom: should be: 44 but is: 0 expanded: top: should be: 86 but is: 20 bottom: should be: 44 but is: 0 P.S. Can someone create a new "messages-extension" tag? I hope this won't