[VisionOS] TextEditor does not respect .autocorrectionDisabled

Hello everyone,

I wanted to double check with the UI Framework team to see if there's a mistake in my code or if there's some sort of regression.

My goal is to have a user input text without any automatic modification of said text, namely remove auto-capitalization and auto-correct.

//
//  ContentView.swift
//  TextInputTest
//

import SwiftUI

struct ContentView: View {
    @State var text: String = "Enter some text here!"
    var body: some View {
        VStack {
            TextEditor(text: $text)
                .autocorrectionDisabled(true)
                .textInputAutocapitalization(.never)
                .font(Font.custom("SF Mono", size: 30))
                .monospaced()
                .padding(20)
        }
        .padding()
    }
}

However, when typing the following: "This is a sentence" followed by a few spaces, a dot will automatically be inserted, making the string become: "This is a sentence.".

Reproduced on: VisionOS 2.0 beta 3 (22N5277g)

Answered by DTS Engineer in 794845022

Please file a bug report using Feedback Assistant and post your bug number, just for the record.

Please file a bug report using Feedback Assistant and post your bug number, just for the record.

The Text Editor also does not respect to .hoverEffectDisabled()

Feedback number: FB14663325

[VisionOS] TextEditor does not respect .autocorrectionDisabled
 
 
Q