ChatGPT is the new great technological revolution. Whether explaining memes like an expert, or getting among the best results in university exams, GPT-4 has already managed to surprise us in a short time. Now, developer Morten Just used the power of AI to create an iPhone app and, in a few minutes, the model has assembled a fully functional one, just as he wanted. But it is not the first time that ChatGPT does developer tasks; we have already seen him create a variant of the popular flappy bird and an entire web page.
Morten Just revealed on Twitter the instructions he gave GPT-4 to get them to build the app. “Hey, GPT-4, make me an iPhone app that recommends 5 movies every day + trailers + where to see”. He also asked me to write the code in SwiftUI, Apple’s language.
Soon, GPT-4 already threw lines of code that, once assembled, revealed a fully functional app. The most surprising thing is that, in effect, it did exactly what the developer wanted. Morten took the opportunity to upload a video to Twitter showing the iPhone app in operation.
Although the first build of this app had some problems, the developer asked GPT-4 to fix them. The AI model not only identified and fixed these bugs successfullybut also apologized once the process was finished.
GPT-4 greatly surprised Morten due to his diligence and orderliness. Instead of giving the same code over and over again with each requested modification, ChatGPT updated in sections. So, the developer just had to copy and paste to the desired area.
If you want to take a look at the app, his name is MovieToday. Of course, it’s not in the App Store —yet—, but you can find its code at GitHub.
Ambitions with GPT-4 can be very high if you know how to use it
Morten is not the first developer to use the power of ChatGPT to generate code. A few months ago, a report claimed that Amazon workers were already using this AI as a code assistant. Unfortunately, the company had to ask its staff to stop this practicesince they were leaking —inadvertently— confidential company information that would later be used by OpenAI to train the chatbot.
But, Imagine the possibilities if Apple integrated an AI like GPT-4 into its Swift Playgrounds or Xcode tool? The first reports that Cupertino is working on a language generation model have already begun to arrive. Thus, it may be that in a future version of these apps we can enjoy a variant Designed by Apple from ChatGPT.