Weak' must not be applied to non-class-bound consider adding a protocol conformance that has a class bound : <p>I have a made a protocol in my VC in which i'm getting the location placemark from one my my swift file class. In my swift class i have declare the protocol like this,</p>

<pre><code> weak var delegate: HandleMapSearch?
</code></pre>

<p>But the xcode is showing me error <code>'weak' must not be applied to non-class-bound 'HandleMapSearch'; consider adding a protocol conformance that has a class bound</code> . It was working fine before but now when i run the app it shows this error. What is this for and how can i remove this error? This is how i have created protocol in my VC class. </p>

<pre><code>protocol HandleMapSearch {
func dropPinZoomIn(placemark:MKPlacemark)
}
</code></pre>
