title: Adding buttons programmatically to stackView in Swift
body: <p>I've tried to add buttons dynamically/programmatically in UIStackView that I've built with interface builder but they failed to show up when I run the application. The number of buttons that's supposed to be added ranging normally from 4-6. Can you guys tell me what's wrong with the code</p>
  
  <p><a href="https://i.stack.imgur.com/sRWVX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sRWVX.png" alt="5 buttons"></a> 
  <a href="https://i.stack.imgur.com/Nhuuc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Nhuuc.png" alt="4 buttons"></a> 
  <a href="https://i.stack.imgur.com/EgyTd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EgyTd.png" alt="code"></a></p>