added swift version of accordion