Skip to content

Instantly share code, notes, and snippets.

@GUIEEN
Created August 21, 2019 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GUIEEN/d2ff05c52ce6469dbdde8a0645c16c5b to your computer and use it in GitHub Desktop.
Save GUIEEN/d2ff05c52ce6469dbdde8a0645c16c5b to your computer and use it in GitHub Desktop.
Swift layer order

ref: https://stackoverflow.com/a/30203412/5260068

bringSubviewToFront(_:)
sendSubviewToBack(_:)
removeFromSuperview()
insertSubview(_:atIndex:)
insertSubview(_:aboveSubview:)
insertSubview(_:belowSubview:)
exchangeSubviewAtIndex(_:withSubviewAtIndex:)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment