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.
Asked
Active
Viewed 1,226 times
-1

user9661174
- 65
- 6
1 Answers
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