Move Disabled

Adds a condition for whether the view’s view hierarchy is movable.

Move Disabled - iOS Light Mode Preview

Platform Compatibility

iOS 13.0+ iPadOS 13.0+ macOS 10.15+ watchOS 6.0+ tvOS 13.0+ visionOS 1.0+

Tags

SwiftUI Code

Docs
@State var items = ["Foo", "Bar"]

var body: some View {

  List($items, id: \.self, editActions: .move) { $item in
  Text(item)
    .moveDisabled(item == "Foo")
}
.environment(\.editMode, .constant(.active))
}

Found an issue or have a suggestion?

Created: August 10, 2025Updated: August 10, 2025