<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>OutlineGroup on Mike Gopsill</title>
    <link>https://www.mikegopsill.com/tags/outlinegroup/</link>
    <description>Recent content in OutlineGroup on Mike Gopsill</description>
    <generator>Hugo -- 0.157.0</generator>
    <language>en</language>
    <lastBuildDate>Sat, 31 May 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.mikegopsill.com/tags/outlinegroup/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Searchable Folders in SwiftUI</title>
      <link>https://www.mikegopsill.com/posts/custom-outlinegroup-search/</link>
      <pubDate>Sat, 31 May 2025 00:00:00 +0000</pubDate>
      <guid>https://www.mikegopsill.com/posts/custom-outlinegroup-search/</guid>
      <description>&lt;p&gt;If you haven’t met &lt;code&gt;OutlineGroup&lt;/code&gt; in SwiftUI yet, picture Finder’s sidebar rendered in SwiftUI: click a chevron, folder children appear. I recently tried to get this working with search. I wanted folders to open and close depending on whether the contained valid results&amp;hellip;&lt;/p&gt;
&lt;p&gt;After much wrestling and many coffees I gave up on &lt;code&gt;OutlineGroup&lt;/code&gt; in favour of a tiny &lt;code&gt;Node&lt;/code&gt; model, a &lt;code&gt;ExplorerStore&lt;/code&gt; viewmodel, and some recursion.&lt;/p&gt;
&lt;p&gt;The result? A searchable file‑browser that behaves at least as my mental model thinks it should.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
