title: Swift UIButton text does not change
body: <p>I have one UIButton in a UIView and I change its title. However, when I get the button title it is giving me the old title and not the changed one. However, when I call it from somewhere when the method is finished it's true</p>
  <p>Thanks,</p>
  <p><a href="https://i.stack.imgur.com/v9ulL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v9ulL.png" alt="enter image description here" /></a></p>