swift - Ambiguous use of DispatchQueue on trying to use main thread -


this weird issue , can't seem find help. on swift 3, trying make call on main thread try use dispatchqueue.main.async, doesn't compile.

any ideas helpful.

enter image description here

try code instead, swift 3.0 syntax:

dispatchqueue.main.async(execute: { () -> void in  }) 

Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

linux - gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now -

sql - MySQL - Finding Empty relations -