Post

Replies

Boosts

Views

Activity

Reply to Scary email from Google Firebase (Client access to your Cloud Firestore database expiring in 4 day(s))
Check the security rules of your project. If you are using the default security rules that are created by firebase when you start your project, that might be expiring. You can either modify the expiration date in the rule ( Not recommended) or create some basic security rules like match /{document=**} { allow read, write: if request.auth != null; }
Apr ’24
Reply to Convert View to Image for Share
You can convert view to image with this function func convertViewToImage( ) -> UIImage { let view = UIHostingController(rootView: AnyView(self.body)) let size = view.view.bounds.size view.view.frame = CGRect(origin: .zero, size: size) let renderer = UIGraphicsImageRenderer(size: size) let image = renderer.image { context in view.view.layer.render(in: context.cgContext) } return image }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’24
Reply to Scary email from Google Firebase (Client access to your Cloud Firestore database expiring in 4 day(s))
Check the security rules of your project. If you are using the default security rules that are created by firebase when you start your project, that might be expiring. You can either modify the expiration date in the rule ( Not recommended) or create some basic security rules like match /{document=**} { allow read, write: if request.auth != null; }
Replies
Boosts
Views
Activity
Apr ’24
Reply to Convert View to Image for Share
You can convert view to image with this function func convertViewToImage( ) -> UIImage { let view = UIHostingController(rootView: AnyView(self.body)) let size = view.view.bounds.size view.view.frame = CGRect(origin: .zero, size: size) let renderer = UIGraphicsImageRenderer(size: size) let image = renderer.image { context in view.view.layer.render(in: context.cgContext) } return image }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24