From 02d54a063fc947331694fe174c24fd151a078e61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Fri, 1 Mar 2019 12:02:38 +0100 Subject: [PATCH] Fix URI detection --- src/ios/APPPrinterItem.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/APPPrinterItem.m b/src/ios/APPPrinterItem.m index 42affe8..671e24f 100644 --- a/src/ios/APPPrinterItem.m +++ b/src/ios/APPPrinterItem.m @@ -47,7 +47,7 @@ */ + (BOOL) canPrintURL:(nullable NSString *)url { - if (![NSURL URLWithString:url]) + if (![NSURL URLWithString:url].scheme) { return UIPrintInteractionController.isPrintingAvailable; }