A deadlock, by definition, means that the thread in question cannot proceed. Swift doesn't "handle" the deadlock, but is merely informing you that this occurred.
How this deadlock manifests itself in your app depends upon what the code associated with that thread was doing. But, obviously, whatever it was, it will never complete and the resources for that thread will never be recovered. And if this deadlock took place on the main thread, the app will freeze.
Bottom line, the purpose of this message is not to tell you that the deadlock was handled, but to the contrary, to tell you that it can't be handled, and, so therefore, that it's incumbent upon you to fix the code to eliminate this problem.