SwiftUI allows to disable a NavigationLink. This fades its color it and prevents user from tapping it.
List {
NavigationLink(destination: Text("Destination")) {
Text("Some link")
}.disabled(true)
}
This behavior is not the same with DisclosureGroup. Only the arrow is faded and the text is still tappable.
List {
DisclosureGroup("Some group") {
Text("Some content")
}.disabled(true)
}
Is this a bug or is this the desired behavior? If so, is it possible to completely disable a DisclosureGroup?