fatbobman

joined 1 year ago
 

In SwiftUI’s layout system, the .layoutPriority modifier might seem inconspicuous at first glance, yet it can decisively influence a view’s size allocation when it matters most. Most developers know its “magic”—in a VStack or HStack, a higher priority view will fight for more space when things get cramped. But did you realize that .layoutPriority can work wonders in a ZStack too? Its behavior there is entirely different from VStack and HStack. In this article, we’ll dive deep into this little-known feature and show you how to harness layout priority inside a ZStack.

 

Fatbobman’s Swift Weekly #089 is out! WWDC 2025: A Return to Pragmatism

  • ✨ A (Re-)Introduction to ExtensionKit
  • 🌌 SwiftData vs SQL Query Builder
  • 🌊 llm .codes : Make Apple Docs AI-Readable
  • 🎶 Dragula : Drag-and-Drop Solution for SwiftUI

and more...

 

WWDC 2025 introduced a host of eye-catching new features and APIs. In this special issue, we’ve handpicked high-value analysis articles, practical tools, and key takeaways from the developer community to help you quickly master the essentials of these new capabilities. Content will continue to be updated through the end of the week.

 

WWDC 2025 arrived right on schedule. Apple released all session videos at once, allowing developers to dive into the new features and APIs they care about without delay. After skimming through them over the past two days, my initial takeaway for this year’s conference is: as expected, yet unexpected.

 

Fatbobman’s Swift Weekly #087 is out!

Swift: New Design, New Case Study, New Experience

  • 🌟 Notepad.exe: A Lightweight Swift Code Editor
  • 🌠 WWDC 2025 Wish List Roundup
  • 🎵 DataScout for SwiftData

and more...

 

Xcode Playgrounds has strayed from its original purpose, and VSCode can be too complex for beginners. So, how can we set up a simple Swift learning environment? Notepad.exe might just be the solution.

 

Fatbobman’s Swift Weekly #086 is out! Arc, Dia, TCA and SwiftUI

  • ✨ Swift 6 Refactoring in a Camera App
  • 🌌 Making Your iOS App More Accessible with Dynamic Type
  • 🚀 SkyLightWindow
  • 🔒 Forming an Opinion on SwiftUI Forms

... and more

 

Have You Registered for WWDC 2025 Group Labs Yet?

  • ✨ Experience the Charm of Swift
  • 🌌 Apple Developer Relations
  • 🤚 Creating Xcode Source Editor Extensions
  • 📊 Mesh Gradients in SwiftUI
  • and more...
 

Use Swift’s generics, KeyPath, protocol extensions, and ResultBuilder to build a type-safe DataFrame export tool with TabularData. Dive into column mapping, conditional logic, and clean DSL syntax for maximum flexibility

 

Fatbobman’s Swift Weekly #084 is out!

Awaiting WWDC 2025 with Serenity

  • ✨ SwiftUI’s .ignoredByLayout()
  • 🌌 Picker With Optional Selection
  • 🤚 Don't Save SQLite in App Group Container
  • 📊 Default isolation with Swift 6.2

and more...

 

Among SwiftUI’s many APIs, .ignoredByLayout() is something of an “understated member.” Information is scarce, usage scenarios are uncommon, and its very name tends to raise questions. It seems to suggest some kind of “ignoring” of the layout—but how does that differ from modifiers like offset or scaleEffect, which by default don’t affect their parent’s layout? When does ignoredByLayout actually come into play, and what exactly does it “ignore” or “hide”? In this article, we’ll lift the veil on this subtle API in SwiftUI’s layout mechanism.

 

Don't Let Vibe Coding Hinder Your Technical Growth

Fatbobman’s Swift Weekly #083 is out!

  • 📏 A Complete Guide to Swift Measurement
  • 🔒 SwiftUI View Model Ownership
  • 🍫 Cocoa Basics
  • 🖥️ xtool - Cross-platform alternative to Xcode

and more...

view more: ‹ prev next ›