
Explore Modules GPT, a chat app using OpenAI's GPT-3 API via Atom Rush's Open AI Swift Library in Xcode, with new chat, random concept, and a settings page.
Identify prerequisites for the course: a Mac with Xcode installed (Xcode 14.2) and familiarity with Swift and SwiftUI. Have an OpenAI account for the API key and passion for learning.
Create an app model as an observable object to control data and the OpenAI client. Import OpenAI Swift library, set up the API key, and implement a send function.
Implement the modules enum to drive a modules view, use title as id and sf symbol, and bind the selected module to present the new chat view in a sheet.
Implement the new chat view in the app model and add a make new chat function. Feed user input through send and update generated new chat on the main thread.
Build and refine the new chat view in SwiftUI by adding a toolbar with close and send actions, wiring dismiss and API-driven chat generation, with a loading state and reset.
Wrap the chat view in a scroll view with a focus state to dismiss keyboard, using ScreenToolbar, and disable the send button when model is sinking or entry is empty.
Create a concept view in SwiftUI, generate a random concept, and wire a random concept button with a light bulb icon to concept view.
Learn to extend concept view in a SwiftUI iOS 16 chat app by wiring app model variables, implementing make concept, and adding a toolbar and result view for random concept generation.
Develop a reusable result view in SwiftUI that shows generated text with configurable size and a binding copy button, integrated via an environment object app model.
Implement a related topics view in a SwiftUI iOS 16 app, wiring model variables and a make related topics function to generate five topics related to a topic.
Create a definition view module in SwiftUI by adding the Definition enum, defining a make definition function, and wiring inputs to generate and display a topic's definition.
Implement the article view in swiftui by adding an article case and article text, wiring a make article function to generate a one-paragraph wikipedia-style article.
Create the sixth module expanded view in a ChatGPT app for iOS 16 using SwiftUI, wiring expanded state, generating expanded text, and testing with Xcode previews.
Build a summarized view in the seventh module of the SwiftUI ChatGPT app, adding summarize logic, updating entry text, and testing the generated summary in the app model.
Build the eighth module comparison view in the SwiftUI ChatGPT iOS app, enabling case comparison between two entry texts to generate differences and a result screen.
Builds the next view module by adding next to the modules enum, creates the make next function, and wires the next view using environment object and the generated next result.
Build the final affirmation view in the SwiftUI modules UI, implement a generate affirmation function, wire navigation and environment object, and test the affirmation flow in the module GPT app.
Builds a settings screen to switch display mode (dark, light, system) and apply color schemes, plus a contact email button using an email helper.
Learn how to build a GPT-powered iOS app with Xcode and SwiftUI. You will learn how to build a fully functional app that interacts with OpenAI's GPT3 API. You will be able to use the GPT3 API to craft modules such as "random concept" and "article" generation. This course will teach you the skills you need to create a GPT3 iOS app such as SwiftUI, OpenAISwift, and data management. Whether you are a beginner or an experienced developer, this course is perfect for anyone looking to add new skills to their toolbox. Enroll now and start building your own GPT-powered app today!
What will you learn in this course?
Use Xcode and SwiftUI to build a fully functional app
Integrate OpenAI’s GPT3 API into your app
How to create modules such as “random concept” and “article” generation
How to manage data in your app using SwiftUI
How to design a user interface with SwiftUI and support both dark and light mode
By the end of the course, you will have an understanding of how to build your own GPT-powered app and have the skills to create other similar applications. I hope you enjoy taking this course and find it to be a useful learning experience.