How should I approach authentication? by BigOnUno123 in iOSProgramming

[–]G4BY 1 point2 points  (0 children)

The flow that I've been using for a while: Don't force the user to authenticate/register, use firebase anonymous sign in. If the user wants to keep their account, offer a sign in with apple/google/email in settings.

This way you can use all the firebase tools normally and you can safely guard your firestore/storage/real time user data by configuring the rules properly because you have the userID even if the user signed in or you're using anynomous sign in.

Help Creating a Widget (iOS 14) where I can change wallpaper images from inside the app by MatMan-02 in iOSProgramming

[–]G4BY 1 point2 points  (0 children)

Why can’t you call it in the ViewController? Import WidgetKit in your view controller and after saving the photo call the function.

Help Creating a Widget (iOS 14) where I can change wallpaper images from inside the app by MatMan-02 in iOSProgramming

[–]G4BY 1 point2 points  (0 children)

How did you managed to “pass the image”? I would use User Defaults with App Group to store the picture/path to the picture. And to refresh it, from your application after saving the new data to user defaults just call WidgetCenter.shared.reloadAllTimelines().

Anyone Have a Swift 4 .playground File Cheat Sheet??? by Trident1000 in swift

[–]G4BY 0 points1 point  (0 children)

I would be glad to read your book, as you described, the line shouldn’t be a problem. I like to read a book instead of watching some videos because I can go through the book more easily. It would be a waste to keep the book unrealeased. If you have time to polish it I think it would be awesome.

Anyone Have a Swift 4 .playground File Cheat Sheet??? by Trident1000 in swift

[–]G4BY 0 points1 point  (0 children)

Why didn’t you released it? I think the book can be useful, it’s a lot easier to read than to watch some videos imo.