blog
blog copied to clipboard
π What you don't know is what you haven't learned
Show `ASAuthorizationController` with a simple nonce. Once we have the `idToken`, create an `OAuthProvider.appleCredential` and pass to `Firebase Auth` ```swift final class AppleLoginService: NSObject { static let shared = AppleLoginService()...
Original answer https://stackoverflow.com/a/54793979/1418457 --- In your NSCollectionViewItem subclass, override isSelected and change background color of the layer. Test in macOS 10.14 and Swift 4.2 ```swift class Cell: NSCollectionViewItem { override...
When developing locally, especially when interacting with third-party services that have CORS restrictions, serving your development environment over a custom domain with HTTPS can be crucial. Letβs walk through the...
When building a React application, separating the logic and state management from the UI can make your code easier to manage, test, and reuse. This is where the view model...
In lowdb 7, we can use `MemorySync` https://github.com/typicode/lowdb/blob/main/src/examples/in-memory.ts ```ts import { LowSync, MemorySync, SyncAdapter } from '../index.js' import { JSONFileSync } from '../node.js' declare global { // eslint-disable-next-line @typescript-eslint/no-namespace namespace...