Converted tooltip from Objective C to swift