-
-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
appearanceInconsistencies between the expected appearance of components in Jetpack Compose vs. SwiftUIInconsistencies between the expected appearance of components in Jetpack Compose vs. SwiftUIhelp wantedExtra attention is neededExtra attention is neededlayoutSwiftUI/Jetpack Compose layout issuesSwiftUI/Jetpack Compose layout issues
Description
Alerts with long button titles are truncated on Android because they aren't changed to be in a VStack container.
Example code:
import SwiftUI
struct ContentView: View {
@State private var showAlert = false
var body: some View {
VStack {
Button("Show alert") {
showAlert = !showAlert
}
.alert("Alert Title?", isPresented: $showAlert) {
Button("Long destructive button text", role: .destructive) {
}
Button("Long cancel button text", role: .cancel) {
}
} message: {
Text("Long message body for the alert which is displayed in skip")
}
}
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
appearanceInconsistencies between the expected appearance of components in Jetpack Compose vs. SwiftUIInconsistencies between the expected appearance of components in Jetpack Compose vs. SwiftUIhelp wantedExtra attention is neededExtra attention is neededlayoutSwiftUI/Jetpack Compose layout issuesSwiftUI/Jetpack Compose layout issues

