Skip to content

Instantly share code, notes, and snippets.

@fraune
fraune / SwiftUI_NavigationStackNestedTabView.swift
Last active October 26, 2023 03:19
SwiftUI NavigationStack nested within TabView
//
// ContentView.swift
// MixedViewsTest
//
// Created by Brandon Fraune on 8/11/23.
//
import SwiftUI
/// https://stackoverflow.com/a/76887384/13944515
@fraune
fraune / enable-pre-commit-kotlin-lint.sh
Created September 27, 2023 02:16
Create Git pre-commit task
cd ~/Programming/gitlab/mobile/android && \
echo ./gradlew ktlintFormat > .git/hooks/pre-commit && \
chmod +x .git/hooks/pre-commit
@fraune
fraune / touch_id_sudo.sh
Last active December 13, 2024 02:19
Let Touch ID authorize the `sudo` terminal command in macOS 14+
sudo sh -c 'echo "auth sufficient pam_tid.so" > /etc/pam.d/sudo_local'