setAccessibilityImageRegions(_:)
Marks portions of an image as separate accessible elements.
Declaration
func setAccessibilityImageRegions(_ accessibilityImageRegions: [WKAccessibilityImageRegion])Parameters
- accessibilityImageRegions:
An array of Wkaccessibilityimageregion objects. Each object in the array represents a portion of the interface object’s foreground or background image that should be treated as a separate accessible element.
Discussion
Use this method to associate different accessibility labels with different parts of the object’s image. You might also use this method to assign accessibility information to different parts of a dynamically generated image.