Bringing a view forward or back programmatically is a common task for iOS developers.
To bring a view forward in Swift, call
You can also use the
superView property to call this from the child view:
To bring a send backward in Swift, call
Again, you can use the
superView property to call this from the childview: