A custom dialog box writen by swift.