Getting started with Google Sign-In on Apple platforms

Поделиться
HTML-код
  • Опубликовано: 30 янв 2025

Комментарии • 15

  • @ManochonARG
    @ManochonARG Год назад +6

    Hope you never stop this series! I'm very grateful! you are saving me a lot of time.

  • @666MrGamer
    @666MrGamer Год назад +5

    The code you provided in the video cannot work. The 'Google' button you implemented in the UI has action 'signInWithGoogle' however you made that async later in the video and the code won't compile. Wrapping the action inside a Task is also a bad idea since you have UI code (accessing the root view controller) on a background thread. One way to fix this is to wrap the AuthViewModel in a @MainActor. This solves the issue but keep in mind this will block the UI once the code is waiting for the result from Firebase (since it's await).

    • @danielwatson6529
      @danielwatson6529 Год назад

      did u come up with a solution? or did u implement another way

    • @666MrGamer
      @666MrGamer Год назад +2

      @@danielwatson6529 Yeah my previous statement was actually wrong. It's perfectly good enough to just wrap the viewmodel class in a '@MainActor' and everything should be good to go. This property wrapper makes sure all UI updates are done on the main thread.

  • @alanwalker1067
    @alanwalker1067 Год назад

    Can you demonstrate how to log into MacOS using Google credentials?

  • @yippiegolf
    @yippiegolf 9 месяцев назад

    This was amazing!

  • @Mahadev-x7u
    @Mahadev-x7u Год назад +3

    Thank you....

  • @TimelessKronos7
    @TimelessKronos7 Год назад

    This is awesome! Thank you so much Peter!

  • @andrewacheampong
    @andrewacheampong Год назад

    Thank you.

  • @sultanammar
    @sultanammar Год назад

    Nice video

  • @hk20092009able
    @hk20092009able 5 месяцев назад

    very bad old better then now

  • @RahulMahajan-ck5fq
    @RahulMahajan-ck5fq Месяц назад

    ‪@PeterFriese , please help with macOS demo as well. Thanks :)