Support swift-mode