title: iOS Accessibility - Change AccessibilityElementsHidden without delay?
body: <p>I am working on a view in which certain elements will be removed and re-added as accessible items depending on the state of the view. I have been able to successfully achieve the functionality I desire by setting <code>AccessibilityElementsHidden</code> to toggle the state.</p>
  
  <p>However, I am finding that there is a brief pause (~1-2 seconds) between this field being set before the Accessibility Layout is updated, which can allow the user to highlight a deactivated accessibility element if they are moving at a reasonable pace. If they are focused on an item as it is being disabled it makes it difficult to re-orient oneself in the VoiceOver interface.</p>
  
  <p>I have found methods to immediately update the display of the interface (by means of <code>SetNeedsLayout()</code> and <code>LayoutIfNeeded()</code> on the main thread) but unfortunately this does not trigger the Accessibility Layout update.</p>
  
  <p>I have also tried using <code>UIAccessibilityPostNotification.LayoutChanged</code> but like the changing of the <code>AccessibilityElementsHidden</code> property, this also takes a moment to propagate to the view.</p>
  
  <p>Can anyone provide some insight as to what I need to do to ensure the user cannot put themselves in a bad state before the Accessible Layout is applied?</p>