Questions tagged [keyboard-avoidance]

11 questions
9
votes
0 answers

SwiftUI, iOS 14, Keyboard Avoidance in Form{ TextEditor() }

I am having a problem on a simple Form{}. Automatic Keyboard Avoidance is not working. Below is a small form with a TextEditor(). When run, the keyboard sits on top the input field, requiring the user to scroll the view so thay can enter a location.…
Kent
  • 1,374
  • 1
  • 15
  • 29
3
votes
0 answers

KeyboardAvoidingView adding extra space or doing nothing-- not working as expected

I'm using a keyboardAvoidingView in my project, and I can get it to either add too much whitespace, pushing the actual page up to about halfway up the screen OR it does nothing at all and the keyboard just covers everything it normally would. I…
TheMilkMan
  • 143
  • 2
  • 7
3
votes
0 answers

SwiftUI disable keyboard avoidance for custom tabbar control

I made a custom tabbar because the system one is not customizable in pure swiftUI. The custom tab view looks like this: struct MainTabView: View { var body: some View { VStack(spacing: 0) { switch router.currentTab { …
Martin
  • 11,881
  • 6
  • 64
  • 110
1
vote
1 answer

Expo React Native KeyboardAvoidingView not working on modal

I have the following modal : export default class NewGameModal extends Component { constructor(props) { super(props); this.state = { playerList: [], characterSelectionModalVisible: false, selectedPlayerId: null, …
1
vote
0 answers

SwiftUI ScrollView extra padding when go to another screen with showed keyboard

The default "Keyboard Avoidance" SwiftUI is used. First GIF If you put the code in VStack and add another View to it, then the container rises Second GIF I don't want to delete Keyboard Avoidance. I need to remove extra…
jarakys
  • 11
  • 2
1
vote
1 answer

SwiftUI in iOS14 Keyboard Avoidance for bottom View

In iOS14 SwiftUI introduced automatic keyboard avoidance. I have form in scrollView that take all screen expect bottom where I have a fixed button. I want to ignore keyboard avoidance for that button but keep it for scrollView so the textfields move…
OuSS
  • 19
  • 3
1
vote
1 answer

When keyboard is already open and render() updates to show a KeyboardAvoidingView (that it wasn't showing before) it does not avoid the keyboard

So I have a restaurant listing with a filter at the top and below that the restaurants are updated as you type to match your filter. When your filter does not return anything the view is then changed to show a "No restaurants found, change your…
Bryan
  • 623
  • 1
  • 6
  • 23
0
votes
0 answers

SwiftUI How to avoid keyboard with a ScrollView inside a VStack

I've seen a few threads on keyboard avoidance but none seem to address my exact situation. My view is basically laid out like this: VStack() { Picker("Which tab?", selection: $selectedSegment) { ForEach(tab.indices, id:…
bb4
  • 15
  • 3
0
votes
1 answer

KeyBoardAvoidingView not Doing anything

I am using to try to create a messaging interface in React Native wherein upon entering the text field, the field raises up so the user can see what they're typing. I have the following…
user18899735
0
votes
1 answer

SwiftUI Keyboard Not Avoiding in PageTabeViewStyle

I have a very basic onboarding for my app where there are few screens in a tabview with the pagetabviewstyle, and I am having trouble getting the keyboard avoidance behavior to work. If I have have the tabview set with .ignoresSafeArea, then the…
0
votes
0 answers

avoid member move boilerplate in move constructor?

Sometimes you still want the default move-constructor behavior (member-wise move), but also want to modify the moved-from object. Take the following scenario, for example class Base{...}; // some move-constructible class class Member{...}; // also…
DeltA
  • 564
  • 4
  • 12