UIStackView - drag to reorder arranged subviews?
问题 I'm trying to get some advice on how to go about implementing the same sort of "drag to reorder" behavior found on a UITableView but on a UIStackView . So far this is what I'm thinking: Add a long press gesture recognizer to each of the arrangedSubview s On long press, add an overlay UIView as a subview to the main view and that fills the entire main view. This overlay view will act as a "canvas" of sorts as I'm dragging the temporary "reorder" view—we'll call this the tempView — around (more