I open-sourced 5 tiny SwiftUI utilities I use in every project

●6
calendar_today • schedule1 min read
— Originally published at dev.to

Sharing 5 lightweight SwiftUI packages I built — keyboard avoider, scroll offset tracker, shimmer effect, flow layout, and App Store review link

Hey everyone! I've been building iOS apps for a while and kept copying the same utilities across projects, so I finally packaged them up as SPM libraries.

1. swiftui-keyboard-avoider

One-line modifier that moves your view when the keyboard appears.

TextField("Email", text: $email)
  .keyboardAvoider()

2. swiftui-scroll-offset

Track ScrollView offset — great for collapsing headers.

OffsetTrackingScrollView { offset in
  print(offset.y)
} content: {
  // your content
}

3. swiftui-shimmer-loading

Shimmer / skeleton loading effect for any view.

Text("Loading...")
  .shimmer()

4. swiftui-flow-layout

Wrapping HStack for tags and chips. Uses the Layout protocol.

FlowLayout(spacing: 8) {
  ForEach(tags, id: \.self) { Text($0) }
}

Open App Store review page with one line.

AppStoreReview.open(appID: "123456789")

Or grab them all at once: SwiftUI Essentials

All MIT licensed, zero dependencies. Would love any feedback or suggestions!

Want more #ios & #swift deep dives?

Join 6,063+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

More Posts

React Native Quote Audit - USA

kajolshah - Mar 2

Free SEO Tools Every Small Business Should Use (2026) | FloxoLab

floxolab - Oct 20

Live iOS Component Catalogue: UIKit and SwiftUI Side by Side, Real Demos, Snippets That Don't Rot

Alok kumar singh - Nov 2

SwiftUI vs UIKit in 2026: When to Use What

Konstantin Shkurko - Jan 24

UIKit v/s SwiftUI in 2025

Saksham Shrey - Jan 22, 2025
chevron_left
623 Points • 6 Badges
1Posts
0Comments
iOS Developer

Related Jobs

View all jobs →

Commenters (This Week)

5 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!