fancy new browser
1import Foundation
2import MereKit
3
4/// Lightweight WebKit engine — runtime is always available, load() is a no-op.
5public final class WebKitEngine: BrowserEngine {
6
7 public static let shared = WebKitEngine()
8
9 public let engineType: EngineType = .webkit
10 public private(set) var isLoaded = true
11
12 private init() {}
13
14 public func load() async throws {
15 // WebKit is always available — nothing to initialise.
16 }
17
18 @MainActor
19 public func makeContext() -> any BrowserContext {
20 WebKitBrowserContext()
21 }
22
23 public func shutdown() {}
24}