add factory swift file