I have a main view where there are buttons and google map.
let maps = MapView(frame: view.bounds) mapview = maps view.addSubview(mapview!) And by changing the user's state, details are added to the main view in the same way.
let new = ButtonView(frame: CGRect(x: 0, y: 0, width: view.frame.width, height: view.frame.height)) ButView = new view.addSubview(ButView!) When adding these views, my map is overlapped by layers of additional views and I cannot do any actions.