Remade project structure

This commit is contained in:
Joshua Higgins
2025-06-04 13:57:32 -04:00
parent b27b223a5e
commit 718436764d
57 changed files with 925 additions and 894 deletions

View File

@@ -0,0 +1,30 @@
//
// ShareViewController.swift
// GIFCollector ShareExtension
//
// Created by Joshua Higgins on 6/3/25.
//
import UIKit
import Social
class ShareViewController: SLComposeServiceViewController {
override func isContentValid() -> Bool {
// Do validation of contentText and/or NSExtensionContext attachments here
return true
}
override func didSelectPost() {
// This is called after the user selects Post. Do the upload of contentText and/or NSExtensionContext attachments.
// Inform the host that we're done, so it un-blocks its UI. Note: Alternatively you could call super's -didSelectPost, which will similarly complete the extension context.
self.extensionContext!.completeRequest(returningItems: [], completionHandler: nil)
}
override func configurationItems() -> [Any]! {
// To add configuration options via table cells at the bottom of the sheet, return an array of SLComposeSheetConfigurationItem here.
return []
}
}