Skip to content

Instantly share code, notes, and snippets.

View Saafo's full-sized avatar
🤣
Keep Swift!

Saafo

🤣
Keep Swift!
View GitHub Profile
@Saafo
Saafo / FloatDebugMenu.swift
Last active April 24, 2025 11:24
SwiftUI Floating Debug Menu
import SwiftUI
/// Float Debug Menu
///
/// Usage: (It's simple! Just one line!)
///
/// ```swift
/// FloatDebugMenu.registerTrigger("send1", action: { /* your custom logic */})
/// FloatDebugMenu.registerTrigger("send2", action: { /* here */ })
/// ```
@Saafo
Saafo / .gitworkflow.zsh
Last active February 27, 2025 11:36
My custom git workflow
#!/usr/bin/env zsh
# Author: @Saafo
# License: MIT
# MARK: rebase workflow
function grc() {( set -e
case "$1" in -h|help|--help)
echo "grc: git fetch && git rebase origin/HEAD --autostash"
return;;