title: iOS 13 - UISegmentedControl - How do you change the corner radius of the selectedSegment?
body: <p>In regards to iOS 13 updates on UISegmentedControl:</p>
  
  <p>This custom UISegmentedControl class rounds the corners of the segmented control. But it does not round the corners of the selected control (that still has the default corner radius). This makes it look weird, especially when you have a border on the segmented control:</p>
  
  <pre><code>class SegmentedControl: UISegmentedControl {
        override func layoutSubviews() {
          super.layoutSubviews()
  
          layer.cornerRadius = 20
          layer.masksToBounds = true
          clipsToBounds = true
       }
  }
  </code></pre>
  
  <p>Before you could just do <code>segmentedControl.layer.cornerRadius = 20</code> and it would apply to everything but you can't do that anymore.</p>
  
  <p>Has anyone figured this out?</p>