Proyectos
Ver en GitHub
V8tr/KeyboardAvoidanceSwiftUI
Acerca de
Cómo desplazar una vista de SwiftUI hacia arriba cuando aparece el teclado https://www.vadimbulavin.com/how-to-move-swiftui-view-when-keyboard-covers-text-field/
Desarrollo web y de aplicacionesCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalArticle 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:
Explorar proyectos relacionados
Cargando…