tjdrhs90

A simple SwiftUI modifier that automatically moves your view when the keyboard appears

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

A lightweight SwiftUI tool that automatically shifts app views upward when the keyboard appears to prevent overlap.

How It Works

1
💭 Frustrated with keyboard issues

You're building a simple app screen with text fields, but the keyboard covers them when typing.

2
🔍 Discover the helper

You search online and find a simple tool that fixes keyboard overlap with just one easy addition.

3
Add the fix

You include the helper in your project and attach it to your form screen in one quick step.

4
📱 Test your screen

You open your app on your phone and tap into a text field to bring up the keyboard.

5
⬆️ See it work smoothly

The whole form glides up gently, keeping everything visible and easy to use while typing.

🎉 Perfect typing experience

Now your app users can fill forms effortlessly without anything getting hidden by the keyboard.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 14 to 14 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-keyboard-avoider?

This simple SwiftUI project delivers a modifier that automatically adds bottom padding to your views when the iOS keyboard appears, preventing it from overlapping text fields or forms. Built in Swift for iOS 14+, it solves the common pain of manual keyboard handling in simple SwiftUI apps, like login screens or input-heavy views. Just chain `.keyboardAvoider()` onto any view—no setup required.

Why is it gaining traction?

Its one-liner API stands out in a sea of verbose alternatives, offering smooth animations without boilerplate, making it a go-to for simple SwiftUI examples or prototypes. Developers grab it for the instant payoff: install via Swift Package Manager, apply the modifier, and watch forms resize automatically. As a simple GitHub repo with a clean README template, it lowers the barrier for quick wins in simple SwiftUI projects or student portfolios.

Who should use this?

iOS developers building simple SwiftUI forms, lists, or navigation stacks with text inputs, especially those tired of notification observers in login views or chat apps. It's ideal for indie devs prototyping simple SwiftUI apps or teams iterating on SwiftUI simple alerts and secure fields. Skip if you're deep into custom animations or need macOS support.

Verdict

Grab it for lightweight SwiftUI keyboard fixes—docs are solid, MIT-licensed, and SPM-ready—but with just 14 stars and 1.0% credibility, treat it as an early-stage simple GitHub project for non-critical features. Test in your workflow before production.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.