I'm not a swift guy, but I wonder why you delete all this code?