Initial commit
Some checks failed
Main Deploy Workflow / deploy_web (push) Has been cancelled
Main Deploy Workflow / deploy_playstore_internal (push) Has been cancelled
Close stale issues and PRs / stale (push) Has been cancelled

This commit is contained in:
2026-09-11 15:59:56 -03:00
commit 0037b0b9cf
651 changed files with 199705 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
// If you get no such module 'receive_sharing_intent' error.
// Go to Build Phases of your Runner target and
// move `Embed Foundation Extension` to the top of `Thin Binary`.
import receive_sharing_intent
class ShareViewController: RSIShareViewController {
// Use this method to return false if you don't want to redirect to host app automatically.
// Default is true
override func shouldAutoRedirect() -> Bool {
return false
}
// Workaround to not display post dialog from
// https://github.com/KasemJaffer/receive_sharing_intent/issues/207#issuecomment-2024329619
open override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
// Auto-trigger completion for URLs/text content
// The parent class processes attachments, but we need to ensure completion
// when view is hidden, especially for text/URL content
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { [weak self] in
// Small delay to allow parent processing to complete
// Then trigger post to ensure extension completes
self?.didSelectPost()
}
}
}