tjdrhs90

A flow layout (wrapping HStack) for SwiftUI — perfect for tags, chips, and badges

12
0
100% credibility
Found Mar 17, 2026 at 12 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Swift
AI Summary

A SwiftUI component for iOS apps that arranges tags, chips, or badges into wrapping rows for a natural flow layout.

How It Works

1
🔍 Need Better Tag Layout

You're building an iPhone app and want tags or chips to flow nicely across the screen, wrapping to the next line without cutting off.

2
💡 Find Flow Layout

You discover this simple tool online that makes tags arrange themselves perfectly, like words in a paragraph.

3
Add to Your App

You easily bring this layout helper into your app project so it's ready to use.

4
Wrap Your Tags

You place your tags or buttons inside this special container, and they instantly start flowing beautifully.

5
⚙️ Tweak the Gaps

You adjust the space between tags horizontally or vertically to make it look just right for your design.

6
▶️ Preview in Action

You run your app and watch the tags wrap smoothly on different screen sizes, feeling perfectly natural.

🎉 Perfect Flowing Design

Your app now has gorgeous, responsive tags that delight users on any iPhone, saving you time and hassle.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 12 to 12 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is swiftui-flow-layout?

This SwiftUI package delivers a flow layout that arranges views horizontally and wraps them to new lines like a wrapping HStack—ideal for tags, chips, and badges. Developers drop it in to handle dynamic lists that adapt to screen width without manual row calculations. Built on SwiftUI's Layout protocol for iOS 16+, it offers uniform or custom horizontal and vertical spacing via a simple initializer.

Why is it gaining traction?

Unlike manual HStack stacks or GeometryReader hacks, it provides native performance and automatic wrapping, mimicking flow layout css or flow layout android patterns in SwiftUI. The hook is its dead-simple API: wrap your views, set spacing, and done—no subview tracking needed. Early adopters praise the clean previews for badges and filters, filling a gap in SwiftUI's layout toolbox.

Who should use this?

iOS app developers crafting filter chips, tag clouds, or badge lists in SwiftUI apps like social feeds or e-commerce search. It's for teams on iOS 16+ building UIs with variable-width elements, avoiding the boilerplate of custom layouts. Skip if you're stuck on older iOS or need cross-platform like flow layout qt.

Verdict

With just 12 stars and a 1.0% credibility score, it's immature but promising for prototypes—solid README examples and MIT license make it low-risk to test. Use for quick wins on tags and badges, but monitor for updates before production.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.