Zentrust / OTPublishersHeadlessSDK

OTPublishersHeadlessSDK for iOS
Other
6 stars 6 forks source link

Luck of an Apple Accessibility escape gesture support #25

Open mike-dutka opened 1 year ago

mike-dutka commented 1 year 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.