mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 06:29:29 +01:00
34 lines
933 B
Mathematica
34 lines
933 B
Mathematica
|
|
//
|
||
|
|
// ShareViewController.m
|
||
|
|
// Make Note
|
||
|
|
//
|
||
|
|
// Created by Ammar Ahmed on 07/01/2021.
|
||
|
|
//
|
||
|
|
|
||
|
|
#import "ShareViewController.h"
|
||
|
|
|
||
|
|
@interface ShareViewController ()
|
||
|
|
|
||
|
|
@end
|
||
|
|
|
||
|
|
@implementation ShareViewController
|
||
|
|
|
||
|
|
- (BOOL)isContentValid {
|
||
|
|
// Do validation of contentText and/or NSExtensionContext attachments here
|
||
|
|
return YES;
|
||
|
|
}
|
||
|
|
|
||
|
|
- (void)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 completeRequestReturningItems:@[] completionHandler:nil];
|
||
|
|
}
|
||
|
|
|
||
|
|
- (NSArray *)configurationItems {
|
||
|
|
// To add configuration options via table cells at the bottom of the sheet, return an array of SLComposeSheetConfigurationItem here.
|
||
|
|
return @[];
|
||
|
|
}
|
||
|
|
|
||
|
|
@end
|