For those of you who still think of Swiftify as a simple search & replace tool, how about this sample?
The Objective-C declaration has noorigin
andsize
parameters. However, the Swift declaration still infers them for you!
Objective-C:
Swift:
Objective-C uses the same "curly braces" syntax to declare structs and arrays, and we did a tremendous job to be able to distinguish between the two.
Here is how the array of structs is precisely converted.
Objective-C:
Swift:
Comments
0 comments
Please sign in to leave a comment.