Taylor Swift has officially been credited with co-writing 'This Is What You Came For' with Calvin Harris.

Taylor Swift

Taylor Swift

The 26-year-old singer/songwriter previously used the pseudonym Nils Sjoberg for the song she wrote with her 32-year-old DJ ex but after her involvement was revealed last week, TMZ reports that Taylor's name now appears on the credits on BMI, which protects licences for songwriter.

After Taylor's team confirmed that she co-wrote the song, Calvin took to Twitter to slam her for trying to "tear [him] down".

He wrote: "And she sings on a little bit of it too. Amazing lyric writer and she smashed it as usual.

"Hurtful to me at this point that her and her team would go so far out of their way to try and make ME look bad at this stage though

"I figure if you're happy in your new relationship you should focus on that instead of trying to tear your ex bf down for something to do

"I know you're off tour and you need someone new to try and bury like Katy ETC but I'm not that guy, sorry. I won't allow it

"Please focus on the positive aspects of YOUR life because you've earned a great one

"God bless everyone have a beautiful day (sic)".

Calvin brought Rihanna in to record the vocals on the song as he and Taylor- who dated for 15 months - feared their relationship would overshadow the track if they released it together.

However, they split in May and the so-called "breaking point" in their romance reportedly came after he was "disrespectful" by saying he'd never work with her while promoting the track.