Fix warnings
This commit is contained in:
@@ -95,11 +95,11 @@ class FindOnPageViewController: UIViewController, _WKFindDelegate
|
|||||||
// ??
|
// ??
|
||||||
}
|
}
|
||||||
|
|
||||||
func _webView(_ webView: WKWebView!, didCountMatches matches: UInt, for string: String!) {
|
private func _webView(_ webView: WKWebView!, didCountMatches matches: UInt, for string: String!) {
|
||||||
// TODO: Update a label
|
// TODO: Update a label
|
||||||
}
|
}
|
||||||
|
|
||||||
func _webView(_ webView: WKWebView!, didFindMatches matches: UInt, for string: String!, withMatch matchIndex: Int) {
|
private func _webView(_ webView: WKWebView!, didFindMatches matches: UInt, for string: String!, withMatch matchIndex: Int) {
|
||||||
findOnPageView.nextResultButton.isEnabled = matches > 0
|
findOnPageView.nextResultButton.isEnabled = matches > 0
|
||||||
findOnPageView.prevResultButton.isEnabled = matches > 0
|
findOnPageView.prevResultButton.isEnabled = matches > 0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ static void swizzleClassMethod(Class targetClass, SEL originalSelector, IMP repl
|
|||||||
}
|
}
|
||||||
|
|
||||||
__attribute__((constructor))
|
__attribute__((constructor))
|
||||||
static void swizzleMFMailComposeViewController()
|
static void swizzleMFMailComposeViewController(void)
|
||||||
{
|
{
|
||||||
// Hacks to work around the fact that MFMailComposeViewController is broken in iOS 14+
|
// Hacks to work around the fact that MFMailComposeViewController is broken in iOS 14+
|
||||||
swizzleClassMethod(MFMailComposeViewController.class, @selector(canSendMail), imp_implementationWithBlock(^BOOL(void) {
|
swizzleClassMethod(MFMailComposeViewController.class, @selector(canSendMail), imp_implementationWithBlock(^BOOL(void) {
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ struct TextFieldContentConfiguration : UIContentConfiguration
|
|||||||
self.pressedReturn = pressedReturn
|
self.pressedReturn = pressedReturn
|
||||||
}
|
}
|
||||||
|
|
||||||
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
|
public func textFieldShouldReturn(_ textField: UITextField) -> Bool {
|
||||||
pressedReturn(textField)
|
pressedReturn(textField)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,15 +7,15 @@
|
|||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
static inline NSString* SBRGetAllowedOriginsKey() {
|
static inline NSString* SBRGetAllowedOriginsKey(void) {
|
||||||
return @"allowedOrigins";
|
return @"allowedOrigins";
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline NSString* SBRGetAllScriptsAllowedKey() {
|
static inline NSString* SBRGetAllScriptsAllowedKey(void) {
|
||||||
return @"allScriptsAllowed";
|
return @"allScriptsAllowed";
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline NSString* SBRGetPolicyTypeByOriginKey() {
|
static inline NSString* SBRGetPolicyTypeByOriginKey(void) {
|
||||||
return @"policyTypeByOrigin";
|
return @"policyTypeByOrigin";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user