1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

iOS: Fixes #12331: Fix sharing to Joplin (#12334)

This commit is contained in:
Henry Heino
2025-05-27 09:20:24 -07:00
committed by GitHub
parent 77a07c937e
commit fa0dbddb9b

View File

@@ -132,10 +132,18 @@
UIResponder* responder = self;
while (responder != nil) {
if ([responder respondsToSelector:selector]) {
[responder performSelector:selector withObject:[NSURL URLWithString:ShareExtensionShareURL]];
UIApplication *app = (UIApplication*) responder;
NSURL *url = [NSURL URLWithString:ShareExtensionShareURL];
[app openURL:url options:@{} completionHandler:^(BOOL success) {
if (success) {
NSLog(@"Opened URL successfully!");
} else {
NSLog(@"Failed to open URL.");
}
}];
break;
}
responder = responder.nextResponder;
}
}