You can use on of these two:
- (void)bringSubviewToFront:(UIView *)view;
- (void)sendSubviewToBack:(UIView *)view;
Objective-C Usage
view.sendSubviewToBack(subview)
and view.bringSubviewToFront(subview)
SWIFT 4.2 Usage
view.sendSubview(toBack: subview)
view.bringSubview(toFront: subview)
https://developer.apple.com/reference/uikit/uiview?language=objc