Gemini AI on iOS with SwiftUI (Tutorial)

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ย. 2024
  • Learn how to integrate Google’s Gemini AI SDK on iOS with SwiftUI. In this tutorial we’ll be using text-only inputs with the `gemini-pro` model.
    Get your API key to use with the SDK here: makersuite.goo...
    📥 Detailed post & source code:
    🔗 www.anupdsouza...
    📥 More Gemini AI with SwiftUI videos:
    👉🏻 Mult-turn chat (text prompts) with Gemini: • Multi-turn Chat with G...
    👉🏻 Implement multi-modal chat (text + image): • Text & Image (multimod...
    👉🏻 Create horoscope app with Gemini: • Horoscope App with Gem...
    👉🏻 Create a Murder Mystery game with Gemini: • Murder Mystery Game po...
    ✅ Consider SUBSCRIBING to the channel & giving this video a LIKE 👍🏼
    🔗 / @swiftodyssey
    👉🏻 Click the BELL 🔔 icon to be notified of new content!
    🌐 Follow me online:
    🕸️ www.anupdsouza...
    🔗 / swift_odyssey
    👨🏻‍💻 github.com/anu...
    🎗️ Support:
    ☕️ BuyMeaCoffee: www.buymeacoff...
    🤝 Patreon: / adsouza
    🙏🏼 Thanks for watching
    🎶 Music:
    Music track: Careful by Pufino
    Source: freetouse.com/...
    Royalty Free Music for Videos (Safe)
    🏷️ Tags: #ai #gemini #swiftui #iOS #google #chatgpt #chatgpt4 #bard #apple #ios #swift #swiftui #xcode #xcode13 #xcode14 #xcode15 #swifttutorial #swiftuitutorial #swiftbasics #swiftuibasics #swiftexample #swiftuiexample #uikit #uikitbasics #uikittutorial #swiftuianimation #uikitanimation #animation #iosapp #iosappdevelopment #mobileappdevelopment #mobileapplications #mobileapps #mobile #developer #development #programming #programmingbasics #intermediateprogramming #advancedprogramming #swiftprogramming #swiftuiprogramming #design #uikitprogramming #code #coding #beginnerprogramming #ui #ux #beginner #intermediate #advanced #tutorial #iostutorial #programmingtutorial #codingtutorial #applicationdevelopment #objectivec #macos #macosdevelopment #macappdevelopment #iphone #iphoneappdevelopment #iphonedevelopment #iphoneos #ipados #iOS13 #iOS14 #iOS15 #iOS16 #iOS17 #iphone13 #iphone14 #iphone15 #iphonexr #iphoneplus #iphonepromax #iphonese #iphonepro #ipad #ipadmini #ipadpro #ipadair #simulator

ความคิดเห็น • 10

  • @gorkemsaka7196
    @gorkemsaka7196 6 หลายเดือนก่อน

    I love it! Specially the way you use for saving api key helped a lot.

    • @swiftodyssey
      @swiftodyssey  6 หลายเดือนก่อน

      Glad it helped!

    • @codeandvideography
      @codeandvideography 15 วันที่ผ่านมา

      Yes, for sure! That is how it's recommended in the Gemini Documentation

  • @batuhanberkertekin9029
    @batuhanberkertekin9029 4 หลายเดือนก่อน

    How can I do the same with UI kit ? Can you also do it with UI kit ?

    • @swiftodyssey
      @swiftodyssey  4 หลายเดือนก่อน

      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 :)

  • @ionpavelescu2125
    @ionpavelescu2125 8 หลายเดือนก่อน +1

    very good , make videos with biger quality

    • @swiftodyssey
      @swiftodyssey  8 หลายเดือนก่อน

      Thanks! Leave a like & consider subscribing if you liked this content 🙂

  • @Traoreee
    @Traoreee 9 หลายเดือนก่อน

    Why does it use plist file to fetch the key? Does it protect our api key from api-thieves? 🤣

    • @swiftodyssey
      @swiftodyssey  9 หลายเดือนก่อน

      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.

    • @swiftodyssey
      @swiftodyssey  9 หลายเดือนก่อน +1

      Leave a like & consider subscribing if you liked this content 🙂