Hi ! The gemini SDK will work the same way with UIKit since the AI request code is not UIKit dependent. Once you get the AI response, you can display it in a UITextView or UILabel connected to, for instance an IBOutlet. Is there any particular challenge that you are facing? Let me know, and do subscribe to the channel if you haven't already :)
It is just one of the ways by which you could store your API_KEY. Refer Google's documentation here: ai.google.dev/tutorials/swift_quickstart#secure-api-key . You could store and read your API key any way you want, just ensure that you don't expose it in public source control.
I love it! Specially the way you use for saving api key helped a lot.
Glad it helped!
Yes, for sure! That is how it's recommended in the Gemini Documentation
How can I do the same with UI kit ? Can you also do it with UI kit ?
Hi ! The gemini SDK will work the same way with UIKit since the AI request code is not UIKit dependent. Once you get the AI response, you can display it in a UITextView or UILabel connected to, for instance an IBOutlet. Is there any particular challenge that you are facing? Let me know, and do subscribe to the channel if you haven't already :)
very good , make videos with biger quality
Thanks! Leave a like & consider subscribing if you liked this content 🙂
Why does it use plist file to fetch the key? Does it protect our api key from api-thieves? 🤣
It is just one of the ways by which you could store your API_KEY. Refer Google's documentation here: ai.google.dev/tutorials/swift_quickstart#secure-api-key . You could store and read your API key any way you want, just ensure that you don't expose it in public source control.
Leave a like & consider subscribing if you liked this content 🙂