I couldn't find the answer, but through playing around, I've come to the conclusion that you can't. Being that to restrict a protocol to just classes, you precede it with class
like
protocol SomeProto: class {
func structYourStuff() -> Void
}
Making the assumption that this would be consistent among other types, I tried
protocol SomeProto: struct {
func structYourStuff() -> Void
}
But Xcode gave me five different errors on one line, which brings me to the conclusion that you can't. I could be completely wrong though, I only started learning Swift about a week ago
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…