feedback-assistant / reports

Open collection of Apple Feedback Assistant reports
237 stars 2 forks source link

FB14685760: LabeledContent breaks when placed inside a List, if it contains a TextField. #541

Closed migueldeicaza closed 3 weeks ago

migueldeicaza commented 3 months ago

Description

The following example render a label and the textfield on iOS 17.5, but on iOS 18, the TextField takes over the entire line.

I have tried all the .listStyle options


import SwiftUI

struct ContentView: View {
    var body: some View {
        List {
            LabeledContent {
                TextField ("placeholder", text: .constant (""))
            } label: {
                Text ("Hello")
            }
        }
        .padding()
    }
}

#Preview {
    ContentView()
}

Included screenshots show that iOS 17.5 correctly displays the labels, while on iOS 18, only the textfield is rendered.

Files

iOS 17.5, works:

image

iOS 18.0, Beta 2 and Beta 4:

image
migueldeicaza commented 1 month ago

I got an update, which I have not been able to confirm yet due to local setup issues, but I received a response:

Thank you for filing the feedback report. We have deployed the fix. Please verify this issue with iOS 18.1 Beta 5 and update your bug report with your results by logging into https://feedbackassistant.apple.com/ or by using the Feedback Assistant app.

migueldeicaza commented 3 weeks ago

Confirmed that this has been fixed.