I see a Swift function written as follows:
func calculation(imageRef: CGImage) -> (red: [UInt], green: [UInt], blue: [UInt]) { ... ... }
This called Tuple learn here
Tuple
it allows to group multiple values under single variable.
Objective c don't support tuple . in objc you have to use dictionary and you have to use key red , green and 'blue with array as value
dictionary
red
green
blue