fix: update iOS share extension deployment target and fix compatibility issues

Fix share extension not appearing in share sheet on iOS 18.6 and earlier
versions by updating deployment target and resolving API availability issues.

Changes:
- Update share extension deployment target from 26.1 to 14.0
  - iOS 18.6 cannot use extensions requiring iOS 26.1
  - UTType API requires iOS 14.0+ (used in ShareViewController)
- Update share extension display name from "TimeSafariShareExtension" to
  "TimeSafari" for cleaner appearance in share sheet
- Fix compiler warning: replace unused error binding with boolean check
  (if let error = error → if error != nil)

The share extension now works on iOS 14.0+ (matching UTType requirements)
and displays properly in the share sheet on older iOS versions.
This commit is contained in:
Jose Olarte III
2025-11-28 15:47:10 +08:00
parent 0627cd32b7
commit 4c771d8be3
2 changed files with 5 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ class ShareViewController: UIViewController {
return
}
if let error = error {
if error != nil {
completion(false)
return
}