Skip to content

Conversation

@fhasse95
Copy link
Contributor

This PR changes the alert view modifier to match the iOS behavior if no / an empty title is used.

Example SwiftUI code to test the changes:

struct ExampleView: View {
    @State private var showAlert: Bool = false
    
    var body: some View {
        Button("Show Alert") {
            self.showAlert = true
        }.alert("", isPresented: self.$showAlert) {
            Button("Yes") { }
            Button("No") { }
            Button("Cancel", role: .cancel) { }
        }
    }
}

iOS:

Android (Before):

Android (After):


Thank you for contributing to the Skip project! Please use this space to describe your change and add any labels (bug, enhancement, documentation, etc.) to help categorize your contribution.

Skip Pull Request Checklist:

  • REQUIRED: I have signed the Contributor Agreement
  • REQUIRED: I have tested my change locally with swift test
  • OPTIONAL: I have tested my change on an iOS simulator or device
  • OPTIONAL: I have tested my change on an Android emulator or device

@cla-bot cla-bot bot added the cla-signed label Jan 18, 2026
Copy link
Member

@marcprux marcprux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great overall, and thanks for the screenshots! Just one question about the change to an optional init Text parameter…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants