The Joke Generator App is a simple SwiftUI application that generates jokes based on user-provided topics. It utilizes the Gemini AI model from Google (Gemini Pro) to create jokes.
![Screenshot 2024-03-22 at 15 13 41](https://private-user-images.githubusercontent.com/4025630/316061060-c96ef095-4d46-42a6-8694-d8670ba64c28.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0ODA1NzYsIm5iZiI6MTcyMTQ4MDI3NiwicGF0aCI6Ii80MDI1NjMwLzMxNjA2MTA2MC1jOTZlZjA5NS00ZDQ2LTQyYTYtODY5NC1kODY3MGJhNjRjMjgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjBUMTI1NzU2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODY1ZjFmMjk1Yzg3ZTQ1MWZhMWExZmE0MzJlNjU5MjJhY2Y1MzBiZGIxMWFkMzJkOTI5NjQ0ZTgwMmJiNDEwZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.TALkGsKnkm87nInHr-Ku-sC8Z5-YDG4Pf_ZnDSzUFwg)
- Enter a topic of your choice
- Generate jokes related to the provided topic
- Asynchronous joke generation using the Gemini AI model
- Error handling for failed joke generation attempts
- Simple and intuitive user interface
- Xcode 15 or later
- SwiftUI framework
- Google Gemini AI API key (https://aistudio.google.com/app/apikey)
- Clone the repository:
git clone https://github.com/tooflex/JokeGenerator-GeminiAI.git
https://medium.com/@tooflex/get-started-with-gemini-ai-api-on-ios-78f3927dc274