Home Swift return type clarification
Reply: 0

Swift return type clarification

user429 Published in May 22, 2018, 11:10 pm

I see a Swift function written as follows:

func calculation(imageRef: CGImage) -> (red: [UInt], green: [UInt], blue: [UInt]) {


I need to know what is the return type in the function above. I am unable to relate it to any of the known types & also what is its equivalent in Objective-C if any at all? What's the way to translate this function to Objective-C?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.39599 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO