Track player bar rewritten with swift