ios - Rewriting this Line from Objective C to Swift -


i know little trivial life of me can't seem line of objective-c code right in swift.

any ideas?

obj c code:

cardview *view = (cardview *)draggableview; 

i tried:

let view : cardview = draggableview(cardview)  

i'm forgetting small.

try -

let view = draggableview as! cardview  

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -