eonil
eonil

Reputation: 85975

How to make an alias for an existing type in Apple Swift?

In C++, I do using A = B; to make an alias. How would I do this in Swift?

Upvotes: 1

Views: 703

Answers (1)

eonil
eonil

Reputation: 85975

From the Apple's manual:

typealias AudioSample = UInt16

Exactly same with C++ stuff.

Upvotes: 9

Related Questions