1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

iOS: WebBrowserComponent: Fix unguarded feature only available on 18.4+

This commit is contained in:
attila 2025-04-10 14:02:14 +02:00 committed by Attila Szarvas
parent 8f6157142b
commit 08b82c796b

View file

@ -561,7 +561,7 @@ struct WebViewDelegateClass final : public ObjCClass<NSObject>
});
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wundeclared-selector")
if (@available (macOS 10.12, *))
if (@available (macOS 10.12, ios 18.4, *))
{
addMethod (@selector (webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:),
[] (id self, SEL, WKWebView*, WKOpenPanelParameters* parameters, WKFrameInfo*, void (^completionHandler)(NSArray<NSURL*>*))