fatbobman

joined 7 months ago
2
Fatbobman's Swift Weekly #060 (weekly.fatbobman.com)
submitted 1 day ago by fatbobman to c/swift
 

Fatbobman's Swift Weekly #060 | Older or Outer? Reminiscing About the Pre-Smart Era

  • The Anomaly of onChange
  • Using AppKit in Catalyst
  • Calling Hidden Swift Functions
  • Natural Language Framework
  • macOS Threading
  • Dev Conversations
  • Debugging Layouts
 

SwiftUI provides the onChange modifier, allowing developers to listen for changes in specific values within a view and execute corresponding actions when those values change. Intuitively, as long as a view is part of the currently visible branch of the view tree (active), the corresponding closure should be triggered when the observed value changes. However, in certain navigation scenarios, the onChange modifier seems to become “selectively deaf,” inexplicably remaining silent even when the observed value changes. Is this a carefully designed feature by Apple, or a long-hidden code defect? This article aims to unveil this phenomenon and provide necessary caution to developers.

4
Fatbobman's Swift Weekly #059 (weekly.fatbobman.com)
submitted 1 week ago* (last edited 1 week ago) by fatbobman to c/swift
 

Fatbobman's Swift Weekly #059 | "Recommended for You" or "Recommended for Traffic"

  • Using Transactions Instead of Save
  • Dive into Environment in SwiftUI
  • Spring Animations
  • Camera Control Issues
  • TimelineView
  • Bottom Sheets
  • Layout Protocol
 

This article explores how to use the concept of transactions in SwiftData and Core Data to build more reliable and efficient persistence operations.

3
Fatbobman's Swift Weekly #058 (weekly.fatbobman.com)
submitted 2 weeks ago by fatbobman to c/swift
 

Fatbobman's Swift Weekly #058 | Luck Rewards Patience

  • View Update Mechanism
  • Code Spelunking in DocC
  • AttributeGraph Notes
  • Beware @unchecked Sendable
  • Live Activity and Dynamic Island
  • Nested Transparent Objects
  • Concurrency Proposal Index
 

Understanding SwiftUI's View Update Mechanism: Starting from a TimelineView Update Issue

This article explores SwiftUI’s view update mechanism through a seemingly simple but representative TimelineView update issue.

5
Fatbobman's Swift Weekly #057 (weekly.fatbobman.com)
submitted 3 weeks ago by fatbobman to c/swift
 

Fatbobman's Swift Weekly #057 | Ultra-Wide Virtual Display is Great, But We Expect More

  • Data Tracking in Core Data & SwiftData
  • Ownership and ~Copyable
  • Dev Containers
  • Sendable with SwiftData
  • Swift Format in Xcode
  • Self-Sizing Flow Layouts
 

Core Data and SwiftData, as powerful persistence frameworks in the Apple ecosystem, not only provide declarative data listening tools like @FetchRequest and @Query, but also have a complete set of data tracking and notification mechanisms built-in. Understanding and mastering these mechanisms is crucial for building robust data-driven applications. This article will take you through multi-layered solutions—from simple custom notifications to the powerful Persistent History Tracking and SwiftData History—to help you handle various complex data synchronization scenarios.

7
Fatbobman's Swift Weekly #056 (weekly.fatbobman.com)
submitted 4 weeks ago by fatbobman to c/swift
 

Fatbobman's Swift Weekly #056 | Reflections on the Pixelmator Acquisition

  • Apple is Killing Swift
  • iOS Performance Optimization
  • Understanding Actors
  • AnchoredRelativeFormatStyle
  • Type-Driven Design
  • Swift Concurrency
 
 
3
Fatbobman's Swift Weekly #055 (weekly.fatbobman.com)
submitted 1 month ago by fatbobman to c/swift
 

Fatbobman's Swift Weekly #055 | Master Technology, Don't Let It Master You

  • KeyPath in Swift
  • SwiftUI View Contracts
  • Swift Macros
  • AnyView in Xcode 16
  • Exploring Cursor
  • Swift Testing
view more: next ›