Reputation: 7501
Is it possible to have something close to this:
protocol FooBarDelegate: class {
func foo()
if #available(iOS 10.0, *) {
func bar()
}
}
?
Upvotes: 2
Views: 966
Reputation: 6600
Yes, it is possible:
protocol FooBarDelegate: class {
func foo()
@available(iOS 10.0, *)
func bar()
}
Upvotes: 8