Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rudifa/ios-asyncawaitdemo-chatgpt
Playing QA with the chatGPT AI to make it generate working UIKit code
https://github.com/rudifa/ios-asyncawaitdemo-chatgpt
Last synced: 24 days ago
JSON representation
Playing QA with the chatGPT AI to make it generate working UIKit code
- Host: GitHub
- URL: https://github.com/rudifa/ios-asyncawaitdemo-chatgpt
- Owner: rudifa
- Created: 2022-12-18T17:28:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-18T17:41:04.000Z (almost 2 years ago)
- Last Synced: 2024-10-06T01:41:25.363Z (about 1 month ago)
- Language: Swift
- Size: 1020 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chatGPT writing swift code
[chat](https://chat.openai.com/chat)
**@rudifa** Sun Dec 18 18:21:28 CET 2022
The code in the ViewController was generated by the chatGPT in response to my prompts and questions.
The transcript is found [here](chatGPT-QA-session.md).
Overall, it did generate several useable solutions, but also some that did not compile, and some others that compiled but did not work.
My initial prompt was
```
In a UIViewController, I want to fetch an image form a public website,
asynchronously, and display it in a UIImageView
```My last prompt was
```
ok, this works; can you improve it by adding a button to press to get another image?
```and the generated code works.
In between, I tried to get a modern (as of 2022) swift solution using async/await and throw/catch, but it never got there. It looks as if it was trained on material that is about a year old.
Anyway, this is impressive, from a truly general-purpose AI system.
Here is the app, in a simulator.