Getting started with Google Sign-In on Apple platforms

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 14

  • @ManochonARG
    @ManochonARG Рік тому +5

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

  • @TimelessKronos7
    @TimelessKronos7 10 місяців тому

    This is awesome! Thank you so much Peter!

  • @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?

  • @Mahadev-x7u
    @Mahadev-x7u Рік тому +3

    Thank you....

  • @yippiegolf
    @yippiegolf 7 місяців тому

    This was amazing!

  • @andrewa5589
    @andrewa5589 11 місяців тому

    Thank you.

  • @sultanammar
    @sultanammar Рік тому

    Nice video

  • @hk20092009able
    @hk20092009able 3 місяці тому

    very bad old better then now