KeyboardAvoidanceSwiftUI
How to move SwiftUI view up when keyboard appears https://www.vadimbulavin.com/how-to-move-swiftui-view-when-keyboard-covers-text-field/
Install / Use
/learn @V8tr/KeyboardAvoidanceSwiftUIREADME
Article related to this project
KeyboardAvoidanceSwiftUI
A sample project showing how to move SwiftUI view up when keyboard covers a text field.
Usage:
struct ContentView: View {
@State private var text = ""
var body: some View {
VStack {
Spacer()
TextField("Enter something", text: $text)
.textFieldStyle(RoundedBorderTextFieldStyle())
}
.padding()
.keyboardAdaptive() // <--- Apply the view modifier
}
}
Result:
<p align="center"> <img src="https://github.com/V8tr/KeyboardAvoidanceSwiftUI/blob/master/demo.gif" alt="How to manage the iOS system keyboard when it covers a SwiftUI text field"/> </p>Related Skills
node-connect
339.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.8kCommit, push, and open a PR
