-1

I did import UIKit, but apparently Xcode is still not able to find UIAccessibility as mentioned in this WWDC. Also my os is above 3.0 as required for this.

enter image description here

1 Answers1

4

The problem is you're not using Xcode 10 beta with Swift 4.2. So you can't say it that way. You have to call this method:

https://developer.apple.com/documentation/uikit/uiaccessibility/1615194-post?changes=latest_minor

As you can see, it used to be a global function UIAccessibilityPostNotification() taking two parameters.

matt
  • 515,959
  • 87
  • 875
  • 1,141