title: Identify Selected State Swift UI Tests
body: <p>I want to figure out which segment is selected on a segmented control in Xcode's new UI Testing in Swift.</p>
  
  <p>I can get the segmentedControl XCUIElement, and the 'buttons' associated with it, but I'm not sure how to test for the selected property.</p>
  
  <p>Sorry in advance if this is something obvious that I have missed.</p>