---
title: "Swift Hooks"
description: "> This file extends [common/hooks.md](../common/hooks.md) with Swift specific content."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/hooks-32
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:25:13.385Z
license: CC-BY-4.0
attribution: "Swift Hooks — Claudary (https://claudary.paisolsolutions.com/skills/hooks-32)"
---

# Swift Hooks
> This file extends [common/hooks.md](../common/hooks.md) with Swift specific content.

## Overview

---
paths:
  - "**/*.swift"
  - "**/Package.swift"
---
# Swift Hooks

> This file extends [common/hooks.md](../common/hooks.md) with Swift specific content.

## PostToolUse Hooks

Configure in `~/.claude/settings.json`:

- **SwiftFormat**: Auto-format `.swift` files after edit
- **SwiftLint**: Run lint checks after editing `.swift` files
- **swift build**: Type-check modified packages after edit

## Warning

Flag `print()` statements — use `os.Logger` or structured logging instead for production code.

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/hooks-32) · https://claudary.paisolsolutions.com
