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

5
calendar_todayschedule1 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](https://github.com/tjdrhs90/swiftui-scroll-offset)
Track ScrollView offset — great for collapsing headers.
```swift
OffsetTrackingScrollView { offset in
  print(offset.y)
} content: {
  // your content
}
```

### 3. [swiftui-shimmer-loading](https://github.com/tjdrhs90/swiftui-shimmer-loading)
Shimmer / skeleton loading effect for any view.
```swift
Text("Loading...")
  .shimmer()
```

### 4. [swiftui-flow-layout](https://github.com/tjdrhs90/swiftui-flow-layout)
Wrapping HStack for tags and chips. Uses the Layout protocol.
```swift
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!

🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

React Native Quote Audit - USA

kajolshah - Mar 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

Magic Beyond Hogwarts: How to Build "Expensive" UI Without Overloading the GPU

Konstantin Shkurko - Feb 7

How I Built a React Portfolio in 7 Days That Landed ₹1.2L in Freelance Work

Dharanidharan - Feb 9
chevron_left
623 Points5 Badges
1Posts
0Comments
iOS Developer

Related Jobs

View all jobs →

Commenters (This Week)

1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!