The doc documentation is wrong. Here is the definition
/// The mode of a view indicating whether the user can edit its content.
@available(iOS 13.0, tvOS 13.0, *)
@available(macOS, unavailable)
@available(watchOS, unavailable)
public enum EditMode { .....
And the compiler presents an error that it is unavailable.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: