Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Prevent a white area to show on widgets after longpress/3D touch
Browse files Browse the repository at this point in the history
  • Loading branch information
Matchstic committed Apr 14, 2019
1 parent 9502464 commit f1150ef
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Tweak/XenHTML.xm
Expand Up @@ -2643,6 +2643,24 @@ static BOOL _xenhtml_inEditingMode;

%end

#pragma mark Stop white area bug (iOS 9+)

@interface _UIPlatterView : UIView
@end

%hook _UIPlatterView

- (void)didMoveToSuperview {
%orig;

if ([[self.superview.superview class] isEqual:objc_getClass("WKScrollView")]) {
XENlog(@"_UIPlatterView :: preventing add to webview!");
[self removeFromSuperview];
}
}

%end

#pragma mark Add proper debugging capabilities to UIWebView (iOS 9+)

%hook UIWebView
Expand Down

0 comments on commit f1150ef

Please sign in to comment.