Zentrust / OTPublishersHeadlessSDK

OTPublishersHeadlessSDK for iOS
Other
7 stars 5 forks source link

Luck of an Apple Accessibility escape gesture support #25

Open mike-dutka opened 11 months ago

mike-dutka commented 11 months ago
OTPublishersHeadlessSDK.shared.setupUI(viewController, UIType: .preferenceCenter)
OTPublishersHeadlessSDK.shared.showPreferenceCenterUI()

UI presented by the code above, unfortunately, doesn't support an accessibility escape gesture which can be easily implemented by overriding a method mentioned below

public override func accessibilityPerformEscape() -> Bool {
        dismiss()
        return true
}

This issue adds problems to the apps obligated to support Apple Accessibility features. It is hard to find and tap on that small x or < button to close that UI for people with disabilities. It would be nice to have this issue fixed.