Skip to content

Snippets

RSS

Documentation

  • Videos and Tabs in DocC Documentation

    Two lesser-known DocC features that make your documentation more interactive: embedded videos and tabbed content navigation.

  • Search Apple Documentation with Shift+Cmd+O

    Use the same Open Quickly shortcut to search Apple's developer documentation directly on the web.

iOS Development

  • Apple Implements Feedback Requests -- Filing Reports Works

    A personal experience of having a Feedback Assistant request implemented in Xcode 26, and tips for writing effective feedback reports.

  • Use .labelStyle(.iconOnly) Instead of Nesting Image in Button

    The proper SwiftUI pattern for icon-only buttons that preserves accessibility without sacrificing readability.

  • Push Notifications for App Store Reviews

    How to enable push notifications for new App Store reviews in the App Store Connect app so you can respond to user feedback quickly.

  • Convert Paid Apps to Freemium Without Affecting Existing Users

    How to use StoreKit's AppTransaction API to transition from paid-up-front to freemium while preserving access for users who already paid.

  • ImageRenderer Cannot Export UIKit-Backed Views

    SwiftUI's ImageRenderer silently fails on views that use UIKit or AppKit under the hood, like List and ScrollView.

  • SwiftUI Navigation: Present Data, Not Views

    Understanding the mental model shift from imperative navigation in UIKit to data-driven navigation in SwiftUI.

  • AsyncImage Does Not Support .resizable()

    SwiftUI's AsyncImage does not allow the .resizable() modifier, requiring a phase-based workaround.

  • Xcode 15 String Catalogs Replace .strings and .stringsdict

    Xcode 15 introduces String Catalogs, a visual editor for managing localized strings that replaces legacy .strings and .stringsdict files.

  • Xcode 15 Brings Type-Safe Asset Catalog Access

    Xcode 15 generates type-safe Swift accessors for images and colors in asset catalogs, replacing the need for SwiftGen.

  • Previewing Loading States in SwiftUI Without Changing Production Code

    A preview-only helper that simulates network delays so you can see loading states in SwiftUI previews.

  • Speed Up Xcode Launches by Disabling Debug Executable

    A hidden Xcode scheme setting that can significantly reduce app launch times during development.

Server-Side Swift

  • Vapor's maximumActiveConnections Is Per Event Loop, Not Per Worker

    A non-obvious Vapor configuration detail that can cause intermittent 500 errors when your actual connection count exceeds what you think you configured.

Swift

  • Vapor's maximumActiveConnections Is Per Event Loop, Not Per Worker

    A non-obvious Vapor configuration detail that can cause intermittent 500 errors when your actual connection count exceeds what you think you configured.

  • Use .labelStyle(.iconOnly) Instead of Nesting Image in Button

    The proper SwiftUI pattern for icon-only buttons that preserves accessibility without sacrificing readability.

  • EditorConfig for Every SwiftPM Package

    Why every Swift package should include an .editorconfig file to enforce consistent indentation across all contributors.

  • Videos and Tabs in DocC Documentation

    Two lesser-known DocC features that make your documentation more interactive: embedded videos and tabbed content navigation.

  • Convert Paid Apps to Freemium Without Affecting Existing Users

    How to use StoreKit's AppTransaction API to transition from paid-up-front to freemium while preserving access for users who already paid.

  • Building an AsyncButton in SwiftUI

    A reusable button component that handles async actions with automatic loading state, disabling, and success/failure indication.

  • ImageRenderer Cannot Export UIKit-Backed Views

    SwiftUI's ImageRenderer silently fails on views that use UIKit or AppKit under the hood, like List and ScrollView.

  • Combine Swift Imports with a Wrapper Module

    Create a single import that re-exports all your commonly used frameworks using @_exported import.

  • SwiftUI Navigation: Present Data, Not Views

    Understanding the mental model shift from imperative navigation in UIKit to data-driven navigation in SwiftUI.

  • AsyncImage Does Not Support .resizable()

    SwiftUI's AsyncImage does not allow the .resizable() modifier, requiring a phase-based workaround.

  • Xcode 15 Brings Type-Safe Asset Catalog Access

    Xcode 15 generates type-safe Swift accessors for images and colors in asset catalogs, replacing the need for SwiftGen.

  • Previewing Loading States in SwiftUI Without Changing Production Code

    A preview-only helper that simulates network delays so you can see loading states in SwiftUI previews.

  • Xcode Code Snippets for Developer Warnings

    Using Xcode code snippets with #warning to leave actionable reminders in your codebase.

  • Quick Access to Swift Evolution Proposal Summaries on GitHub

    A simple URL trick to read summarized versions of Swift Evolution proposals on GitHub.

  • Pulsating Button Animation in SwiftUI

    How to create a pulsating button effect in SwiftUI to guide users during onboarding.

SwiftUI

  • Use .labelStyle(.iconOnly) Instead of Nesting Image in Button

    The proper SwiftUI pattern for icon-only buttons that preserves accessibility without sacrificing readability.

  • Building an AsyncButton in SwiftUI

    A reusable button component that handles async actions with automatic loading state, disabling, and success/failure indication.

  • ImageRenderer Cannot Export UIKit-Backed Views

    SwiftUI's ImageRenderer silently fails on views that use UIKit or AppKit under the hood, like List and ScrollView.

  • SwiftUI Navigation: Present Data, Not Views

    Understanding the mental model shift from imperative navigation in UIKit to data-driven navigation in SwiftUI.

  • AsyncImage Does Not Support .resizable()

    SwiftUI's AsyncImage does not allow the .resizable() modifier, requiring a phase-based workaround.

  • Previewing Loading States in SwiftUI Without Changing Production Code

    A preview-only helper that simulates network delays so you can see loading states in SwiftUI previews.

  • Pulsating Button Animation in SwiftUI

    How to create a pulsating button effect in SwiftUI to guide users during onboarding.

Xcode

  • Apple Implements Feedback Requests -- Filing Reports Works

    A personal experience of having a Feedback Assistant request implemented in Xcode 26, and tips for writing effective feedback reports.

  • EditorConfig for Every SwiftPM Package

    Why every Swift package should include an .editorconfig file to enforce consistent indentation across all contributors.

  • Push Notifications for App Store Reviews

    How to enable push notifications for new App Store reviews in the App Store Connect app so you can respond to user feedback quickly.

  • Xcode Quick Help in the Sidebar

    The Quick Help inspector in Xcode's sidebar auto-updates documentation as your cursor moves, removing the need to Cmd-click for docs.

  • Combine Swift Imports with a Wrapper Module

    Create a single import that re-exports all your commonly used frameworks using @_exported import.

  • Multi-Line Code with Ctrl+M in Xcode 15

    Xcode 15 introduces a Ctrl+M shortcut to expand function calls and parameters across multiple lines.

  • Search Apple Documentation with Shift+Cmd+O

    Use the same Open Quickly shortcut to search Apple's developer documentation directly on the web.

  • Xcode 15's Format to Multiple Lines Feature

    Xcode 15 adds a built-in action to reformat long function parameter lists from a single line to multiple lines.

  • Xcode 15 String Catalogs Replace .strings and .stringsdict

    Xcode 15 introduces String Catalogs, a visual editor for managing localized strings that replaces legacy .strings and .stringsdict files.

  • Xcode 15 Brings Type-Safe Asset Catalog Access

    Xcode 15 generates type-safe Swift accessors for images and colors in asset catalogs, replacing the need for SwiftGen.

  • Previewing Loading States in SwiftUI Without Changing Production Code

    A preview-only helper that simulates network delays so you can see loading states in SwiftUI previews.

  • Speed Up Xcode Launches by Disabling Debug Executable

    A hidden Xcode scheme setting that can significantly reduce app launch times during development.

  • Xcode Code Snippets for Developer Warnings

    Using Xcode code snippets with #warning to leave actionable reminders in your codebase.