Swift, Swift 3.0, Tips, Example, Phantom Types, Obscured Features, Phantom Using Phantom Types in Swift Phantom types are special types in Swift. They are useful when you want to pass the variable with same structure but with different types. I would like to thank to This blog post