Skip to content

Commit

Permalink
Fix: received sharing url in ios not working on the version 1.6.6
Browse files Browse the repository at this point in the history
[Issue 276](#276)
  • Loading branch information
KasemJaffer committed Feb 2, 2024
1 parent a0f4d8e commit 159aec6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ios/Classes/RSIShareViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,20 @@ open class RSIShareViewController: SLComposeServiceViewController {
return
}
switch type {
case .text, .url:
case .text:
if let text = data as? String {
this.handleMedia(forLiteral: text,
type: type,
index: index,
content: content)
}
case .url:
if let url = data as? URL {
this.handleMedia(forLiteral: url.absoluteString,
type: type,
index: index,
content: content)
}
default:
if let url = data as? URL {
this.handleMedia(forFile: url,
Expand Down

0 comments on commit 159aec6

Please sign in to comment.