Swift – adding a tab character in swift

swiftwhitespace

how do you add space in swift?i tried print("\t") but swift seems to ignore the spaces.
My code is

var b=1
var a=2

for var i=3;i>=0;i--
{
    for var j=a;j>=0;j--
    {
        print("\t")
    }
    a--

    for var one=1;one<=b;one++
    {
        print("1")

    }
    b++
    println(" ")
}

Best Solution

The question is confusing, but rest assured in Swift 3, this will print a tab:

print("\t")