File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -36,26 +36,10 @@ public final class WebCommentContentRenderer: NSObject, CommentContentRenderer {
36
36
private var lastReloadDate : Date ?
37
37
private var isReloadNeeded = false
38
38
39
- /// A shared web view context with resources that can be reused across
40
- /// mutliple web view instances.
41
- @MainActor
42
- public final class Context {
43
- let processPool = WKProcessPool ( )
44
-
45
- public init ( ) { }
46
- }
47
-
48
39
// MARK: Methods
49
-
50
- public required override convenience init ( ) {
51
- self . init ( context: . init( ) )
52
- }
53
-
54
- public init ( context: Context ) {
40
+ public override init ( ) {
55
41
super. init ( )
56
42
57
- webView. configuration. processPool = context. processPool
58
-
59
43
if #available( iOS 16 . 4 , * ) {
60
44
webView. isInspectable = true
61
45
}
Original file line number Diff line number Diff line change @@ -6,10 +6,9 @@ import WordPressUI
6
6
@MainActor
7
7
@objc class ReaderCommentsHelper : NSObject {
8
8
private var contentHeights : [ String : CGFloat ] = [ : ]
9
- private let webViewContext = WebCommentContentRenderer . Context ( )
10
9
11
10
func makeWebRenderer( ) -> WebCommentContentRenderer {
12
- let renderer = WebCommentContentRenderer ( context : webViewContext )
11
+ let renderer = WebCommentContentRenderer ( )
13
12
renderer. tintColor = UIAppColor . primary
14
13
return renderer
15
14
}
You can’t perform that action at this time.
0 commit comments