3 ms·
The docs definitely indicate that some magic is occurring but they don't say exactly how. Perhaps If the first parameter contains the word "With"? They do exp
by jakejake 12y ago
The docs definitely indicate that some magic is occurring but they don't say exactly how. Perhaps If the first parameter contains the word "With"?
They do explicitly state that initializers will get "init" and "initWith" stripped off and whatever follows becomes the first parameter. The fact that "colorWithRed" is translated to "red" might indicate that it is looking for the keyword "With"