Answers for "swift set view order front"

1

swift set view order front

//https://stackoverflow.com/a/4631895/13171606
//in controller class
var myView = UIView()

override func viewDidLoad() {
        super.viewDidLoad()
  myView.layer.zPosition = 1 //this line will order view on front
}

//if you get any error using "zPosition" then import following 
//swift
import QuartzCore
//Or for obj c
#import QuartzCore.h is for obj c
Posted by: Guest on February-27-2021

Code answers related to "swift set view order front"

Code answers related to "Swift"

Browse Popular Code Answers by Language