Functions and methods in Swifty plugins