We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82b9487 commit 52941d1Copy full SHA for 52941d1
Sources/CEExtensionKit/ExtensionInterface.swift
@@ -9,5 +9,16 @@ import Foundation
9
10
/// A protocol for extensions to conform to
11
public protocol ExtensionInterface {
12
- init(extensionAPI: ExtensionAPI)
+}
13
+
14
+open class ExtensionBuilder: NSObject {
15
+ required public override init() {
16
+ super.init()
17
+ }
18
19
+ /// Builds extension with API
20
+ /// - Parameter withAPI: the API implementation itself
21
+ open func build(withAPI api: ExtensionAPI) -> ExtensionInterface {
22
+ fatalError("You should override ExtensionBuilder.build")
23
24
}
0 commit comments