xcode execute function from a different file

Swift
MyOtherClass().otherClassFunction()
Source

Also in Swift: