13.7 C
Canberra
Monday, January 26, 2026

Keyboard toolbar breaks backside secure space after background on iOS 26


Listed here are the steps to breed the problem:

  • iOS 26+ required

  • create any enter that triggers opening keyboard

  • add toolbar to keyboard (with any buttons)

  • open keyboard (e.g. by focusing enter)

  • shut keyboard

  • background app (warnings are printed on this step)

  • get again to foreground

  • see that backside secure space is damaged (you may add any view that’s certain to secure space)

Eradicating toolbar fixes the problem, btw.

Keyboard toolbar breaks backside secure space after background on iOS 26

The next warnings are printed:

-[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:]  carry out enter operation requires a legitimate sessionID. inputModality = Keyboard, inputOperation = dismissAutoFillPanel, customInfoType = UIUserInteractionRemoteInputOperations

-[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:]  carry out enter operation requires a legitimate sessionID. inputModality = Keyboard, inputOperation = dismissAutoFillPanel, customInfoType = UIUserInteractionRemoteInputOperations

Snapshotting a view (0x15b0a4800, UIKeyboardImpl) that isn’t in a visual window requires afterScreenUpdates:YES.

Here’s a check venture for demonstrating the problem:

import SwiftUI

struct ContentView: View {
    @State var choice: Int = 0
    @State var presentingModal = false

    var physique: some View {
        NavigationStack {
            VStack(spacing: 0) {
                TabView(choice: $choice) {
                    Group {
                        Button("Current") { self.presentingModal = true }
                            .tag(0)
                        Textual content("Second").tag(1)
                    }
                    .toolbar(.hidden, for: .tabBar)
                }

                HStack(spacing: 0) {
                    ForEach(0...1, id: .self) { tab in
                        Picture(systemName: "cloud.heavyrain.fill")
                        .padding(.vertical, 16)
                        .body(maxWidth: .infinity)
                        .contentShape(Rectangle())
                        .onTapGesture {
                            choice = tab
                        }
                    }
                }
                .padding(.horizontal, 16)
                .background(Coloration.secondary)
            }
            .ignoresSafeArea(.keyboard)
            .navigationTitle("Title")
            .navigationBarTitleDisplayMode(.inline)
        }
        .sheet(isPresented: $presentingModal) {
            PresentedView()
        }
    }
}

struct PresentedView: View {
    @State var textual content = ""
    @FocusState var isInputActive: Bool

    var physique: some View {
        NavigationStack {
            VStack {
                TextField("", textual content: $textual content)
                    .centered($isInputActive)
                    .padding()
                    .background(.secondary)

                Spacer()
            }
            .padding(.prime, 40)
            .padding(.horizontal, 20)
            .toolbar {
                ToolbarItemGroup(placement: .keyboard) {
                    Button("Shut") {
                        isInputActive = false
                    }
                }
            }
        }
    }
}

#Preview {
    ContentView()
}

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

[td_block_social_counter facebook="tagdiv" twitter="tagdivofficial" youtube="tagdiv" style="style8 td-social-boxed td-social-font-icons" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjM4IiwiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" custom_title="Stay Connected" block_template_id="td_block_template_8" f_header_font_family="712" f_header_font_transform="uppercase" f_header_font_weight="500" f_header_font_size="17" border_color="#dd3333"]
- Advertisement -spot_img

Latest Articles