swift function from within objective C