The Apple documentation shows an unsettling blank space under the \'Creating a Dictionary\' section of the UIKit reference here.
Has anyone found a replacement for
That functionality is based on macro expansion which is currently not supported in Swift.
I do not think there is any way to do something similar in Swift at the moment. I believe you cannot write your own replacement.
I'm afraid you'll have to manually unroll the dictionary definition, even if it means repeating each name twice.