fatbobman

joined 10 months ago
 

Building Android Apps with Swift | Fatbobman's Swift Weekly #071

  • Implementing Custom Paging
  • Exploring MLX Swift
  • Deep Links in SwiftUI
  • Using TranslateKit for Localization
  • xcconfig in Xcode
  • Swift Interoperability with C
 

SwiftUI's scrollTargetBehavior provides precise scrolling control, but default paging misaligns in landscape mode. This article explores its limitations and implements a custom ScrollTargetBehavior for perfect paging alignment

 

Feedback and Communication | Fatbobman's Swift Weekly #070

  • Apple Vision Pro 1 Year Later
  • ControlGroup
  • Sound Engineering on iOS
  • Drawing Maps with Swift Charts
  • TaskGroups
  • Parameterized Tests
 

Fireworks and Drones | Fatbobman's Swift Weekly #069

  • Swift Build
  • Swift Concurrency Glossary
  • Multiplatform Development
  • Send Email in iOS
  • PhotosKit Storage Model
  • macOS System Services
 

DeepSeek: Achieving More with Less | Fatbobman's Swift Weekly #068

  • Key Pressed Menu
  • Xcode & SPM Issues
  • SwiftUI Action Menu
  • Reduce Motion Tips
  • Observing Observable Outside of View
  • Tuist Registry Launch
 

Weekly Newsletter Progress and Blog Updates | Fatbobman's Swift Weekly #067

  • Advanced Navigation
  • Git Revision in App
  • Text Animation Issue
  • Buildable Folders
  • Backend with Vapor
  • SwiftUI Lists
  • Quick Tips of SwiftUI
 

Integrating AI into the Daily Workflow | Fatbobman's Swift Weekly #066

  • Preview Under the Hood
  • Adopting Swift 6
  • Enums Codable
  • Typed Throws
  • Debounced Search
  • SwiftData CRUD
  • Sync with CKSyncEngine
  • Swift Runtime
 

Fatbobman's Swift Weekly #065 | Perspective Shift: Viewing the Developer's Dual Identity Through the Airport Debate

  • _VariadicView
  • Copilot and SwiftUI
  • Keep Menu Bar Alive
  • retroactive Keyword
  • Reentrancy and Logical Race
  • MongoDB in Swift
 

Fatbobman's Swift Weekly #64 | Happy New Year 2025

  • State Issue in Swift 6
  • TabView Advancements
  • Genmoji in Non-Rich Text
  • Dissolve Effect
  • Write Swift Like Apple
  • Widgets, AppIntents, Siri Shortcuts and WatchKit
 

In Xcode 16, to improve SwiftUI’s performance under Swift 6 mode, Apple made several adjustments to the SwiftUI framework’s APIs to meet stricter concurrency checks. The most notable change is the comprehensive annotation of the View protocol with @MainActor. While these optimizations generally enhance the developer experience in Swift 6 mode, they also introduce some seemingly anomalous compile-time errors in specific scenarios. This article delves into why certain view modifiers cannot directly use @State properties and provides corresponding solutions.

 

Fatbobman's Swift Weekly #063 | Breakthroughs in Xenotransplantation of Kidneys

  • onAppear Issues
  • Validation Patterns in SwiftUI
  • SwiftUI Data Flow
  • Xcode Library Customization
  • Noncopyable
  • Sending vs Sendable
  • LinkText
 

onAppear is an extremely crucial lifecycle method in SwiftUI, used to inject key logic when a view is presented. Since view instances may be created and rebuilt frequently, developers often choose to prepare data and perform initialization operations within these methods. In theory, the timing of these lifecycle method calls should be predictable and consistent. However, in certain specific scenarios, onAppear may be called unexpectedly and unnecessarily. This not only can lead to performance overhead but also may cause uncontrollable changes in the application’s state. This article will uncover this easily overlooked SwiftUI behavior trap and provide temporary countermeasures.

view more: next ›