Accessibility name - SwiftUI

In SwiftUI, the accessibilityLabel property is used as accessibility name.

Button {
    // Button action
} label: {
    Image(systemName: "magnifyingglass")
        // Set accessibility label
        .accessibilityLabel("Search")
}