Skip to content

Instantly share code, notes, and snippets.

@kkukelka
kkukelka / homebrew-cheat-sheet.md
Last active December 8, 2022 12:42
Homebrew Cheat Sheet

📎 Homebrew Cheat Sheet

Install Homebrew (macOS)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install packages

brew install <package>

Install a formula or cask.

Output installed formulae

@kkukelka
kkukelka / swiftui-tidbits.md
Last active April 6, 2023 06:27
Swift UI Tidbits

ZStack rendering

Views within ZStack are rendered back-to-front, with the first view being placed at the back

fixedSize()

use fixedSize() to neglect the view size proposed to a view by its parent

HStack {
    Button(action: {}) { Text("Cancel").fixedSize() }
        .padding().frame(maxWidth: .infinity)
    Divider()