protocol testProtocol {
func method1()
optional func method2() ←エラー 'optional' can only be applied to members of an @objc protocol
}

↓
↓

@objc protocol testProtocol {
func method1()
@objc optional func method2()
}
これでうまく動いたんだけどやり方まずいですか?