Skip to content

Commit 335ec3b

Browse files
committed
Trying with @objc
1 parent 2a92b66 commit 335ec3b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

PluginHost/PluginInterface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import Foundation
1010

1111

12-
protocol PluginInterface
12+
@objc protocol PluginInterface
1313
{
1414
var name: String { get }
1515

SamplePlugin/SamplePlugin.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import Foundation
1111

1212
class SamplePlugin : PluginInterface
1313
{
14-
var name = "SamplePlugin"
14+
@objc var name = "SamplePlugin"
1515

16-
required init() {
16+
@objc required init() {
1717

1818
}
1919
}

0 commit comments

Comments
 (0)