Sorry for the delay. I have attached full code of the swift-mode with minimal smie implementation. I didn't clean other pieces of the mode like syntax table and highlighting code, hope this won't be too inconvenient to work with.