It was released on May 18 , 2017 and was written by Gomez , Justin Tranter , Julia Michaels and Ian Kirkpatrick .
It was released on May 18 , 2017 . 
 The song was written by Gomez , Justin Tranter , Julia Michaels and Ian Kirkpatrick .