Functions and methods in Swifty Lib