layout code need

self.view.layoutIfNeeded()