r/iOSProgramming • u/uzubari • Apr 27 '24
App Saturday First SwiftUI game with ChatGPT 4
As an experienced software developer with no prior experience in native iOS programming or SwiftUI, I decided to develop a Wordle variant using SwiftUI. I was able to complete the game and release it on the iOS store within two weeks. Here are my observations:
The package size was very small compared to Unity, at around 4MB.
AdMob integration was a bit tricky but ultimately successful.
I believe SwiftUI offers the opportunity for fast prototyping, especially for developing simple 2D games with ChatGPT. A key advantage is that ChatGPT can generate graphics using SwiftUI’s embedded libraries, whereas Unity requires external graphic assets.
Getting a first running app was quite straightforward with the help of ChatGPT.
As the code became more complicated, ChatGPT started to lose context and produce incorrect results.
Eventually, I had to learn the basics of SwiftUI. After gaining this understanding, I was able to guide ChatGPT to produce correct results.
Here is the game that I have developed https://apps.apple.com/us/app/guess-the-word-unlimited/id6480346767
2
u/Minetorpia Apr 27 '24
Pretty cool. Did it also do the design? And what tech did you use to build all the other apps you have in the App Store?
0
u/uzubari Apr 27 '24
Thank you. Yes, All the design was done by GPT for this game. The others are developed using Unity.
1
u/Early_Ad_831 Apr 28 '24
I noticed you had a web version.
What's the reason for not re-using that code (React Native or web-view?) for iOS/Android?
Did you feed ChatGPT any of the web code to help it "understand" what to do?
1
u/uzubari Apr 28 '24
Hi, Actually the web version is also developed by the support of ChatGPT, but the two projects was seperated. I did not feed the html code back to ChatGPT. The purpose was to practice a bit with SwiftUI.
2
Apr 27 '24 edited Oct 31 '24
bedroom zesty crown doll cough memory close nail plough serious
This post was mass deleted and anonymized with Redact
2
u/injuredflamingo Apr 27 '24
God forbid indie developers try to make some money I suppose
0
Apr 27 '24 edited Oct 31 '24
safe quaint homeless head capable label shelter books heavy employ
This post was mass deleted and anonymized with Redact
0
u/MR7OBOT Apr 27 '24
Go make the app, add the integrations etc and we will see what your outcome is 🤷🏽♀️
1
Apr 28 '24 edited Oct 31 '24
office fact screw crawl absurd encouraging attractive crown husky hard-to-find
This post was mass deleted and anonymized with Redact
-4
u/uzubari Apr 27 '24
While 2 weeks seems to be long for this game I need to mention that it has included, Support for two different languages and two different game modes. User testing and iterative design to ensure that the players understand how to play when they first take the game to their hands, Unit testing, Admob integration.
-5
u/uzubari Apr 27 '24
One of the things that I have liked most, was effortlessly developing the Unit tests for the project and running them easily via ChatGPT .
4
u/BickeringCube Apr 27 '24
I was honestly under the impression Apple would not approve Wordle clones.