devgiraffeee
  • Home
  • About
Sign in Subscribe
Stefan

Stefan

Cologne, Germany
https://www.giraffeee.dev

How to store your GitHub Passphrase, so Cursor doesn't keep asking

To stop Cursor (or your terminal) from asking for the SSH key passphrase every time, you need to add your key to the SSH agent and optionally store it in the macOS Keychain. Here’s how: Start a SSH Agent Run the following command in your terminal: eval "$(ssh-agent
20 Mar 2025 1 min read
Center viewAligned ScrollView in iOS17 and iOS18 in SwiftUI in XCode
SwiftUI

How to center a viewAligned ScrollView in SwiftUI

By default a ScrollView with  .scrollTargetBehavior(.viewAligned) is aligned to the leading edge. To get a .viewAligned ScrollView centered, you can use combination of .containerRelativeFrame, constant spacing, and optionally .contentMargins and .safeAreaPadding.
17 Nov 2024 2 min read
Page 1 of 1
devgiraffeee © 2025
  • Sign up
Powered by Ghost