Specify type of a delegate which conforms to a protocol


(Inder Kumar Rathore) #1

I was thinking something like this

var myVar: UIViewController<MyProtocol>

kind of thing what you guys say


(Alex Hoppen) #2

I was thinking something like this

var myVar: UIViewController<MyProtocol>

This syntax is already used for the case that UIViewController is a generic class and its generic argument is set to MyProtocol.

ยทยทยท

On 10 Feb 2016, at 10:30, Inder Kumar Rathore . via swift-evolution <swift-evolution@swift.org> wrote:

kind of thing what you guys say
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution