Skip to content

Instantly share code, notes, and snippets.

@leonidster
leonidster / gist:4d02dacb7fa1d92fd6dcc5653a20070a
Created April 9, 2026 16:10
How to capture a HAR file from iOS Safari
Setup (one-time):
1. On iPhone/iPad: Settings → Safari → Advanced → enable Web Inspector
2. On Mac: Safari → Settings → Advanced → check Show features for web developers
Capture:
1. Connect the iOS device to the Mac (USB or wireless)
2. On Mac Safari: Develop menu → select your iOS device → select the SSRS page
3. Open the Network tab and check Preserve Log
@leonidster
leonidster / gist:8b70d25b08124a5a5e6fd205fea31643
Last active February 3, 2026 22:50
Swift 6 Migration Guidelines: The "Anti-Crash" Rules

Overview

This guide provides detailed instructions for migrating from Swift 5 to Swift 6, with a strong emphasis on proper concurrency handling and avoiding common MainActor pitfalls that can cause runtime crashes.

Swift 6 introduces strict concurrency checking to prevent data races. The most critical aspect of this migration is understanding when to use @MainActor and when to avoid it.


🚨 CRITICAL: MainActor Usage Guidelines