title: Can I align a button's label with its layout margins?
body: <p>One way to left-align a <code>UIButton</code>'s title is to set the <code>contentHorizontalAlignment</code> to <code>.left</code> (or <code>.leading</code>). But this places the title flush with the left edge of the button with no margin. A common way to add some margin is to set the <code>contentEdgeInstets</code>.</p>
  
  <p>But my button extends from once edge of the screen to the other, so I would like the left and right margins to honor the <code>layoutMargins</code>. These margins might change as the view is resized or the device is rotated.</p>
  
  <p><a href="https://i.stack.imgur.com/DeDjn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DeDjn.png" alt="enter image description here"></a></p>
  
  <p>Is there a way to set the button's insets to observe these margins? Or should I create a button from a custom view where I can use my own label and anchor it to the <code>layoutMarginsGuide</code>?</p>