Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FB15866155: SwiftUI TextFields on StageManager with a keyboard attached get an empty inputAccessoryView displayed that serves no purpose. #586

Open
migueldeicaza opened this issue Nov 17, 2024 · 0 comments

Comments

@migueldeicaza
Copy link

  • Date: 2024-11-17
  • Resolution: Open
  • Area: SwiftUI
  • OS: iPadOS 18.0.1
  • Type: Incorrect/Unexpected Behavior
  • Keywords:

Description

Given the following conditions the problem will be shown:

  • iPad
  • Stage Manager enabled
  • Keyboard attached

import SwiftUI

struct ContentView: View {
    @State var text = "Hi"
    var body: some View {
        TextField("Demo", text: $text)
            .autocorrectionDisabled()
            .keyboardType(.alphabet)
            .textInputAutocapitalization(.never)
    }
}

Notice the grey bar at the bottom of the window. This grey bar vanishes if you detach the hardware keyboard, or if you disable Stage Manager.

Files

IMG_24C676E425AC-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant