swipper code for apps