0

Does anyone know how to change the order of photos in stack view(both horizontal and vertical) by user's desire?

Andreas
  • 45
  • 7

1 Answers1

1

The fiddly way is to use

addArrangedSubview()
insertArrangedSubview()
removeArrangedSubview()

If you have more time, I'd consider looking into UICollectionView which has a lot more flexibility that StackViews, especially for things like rearrangement.

XmasRights
  • 1,427
  • 13
  • 21