adding swift syntax
fixing editor