Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Floaty items aren't clickable when I turn voiceover on #317

Open
EmirhanKarahan opened this issue Sep 1, 2022 · 0 comments
Open

Floaty items aren't clickable when I turn voiceover on #317

EmirhanKarahan opened this issue Sep 1, 2022 · 0 comments

Comments

@EmirhanKarahan
Copy link

EmirhanKarahan commented Sep 1, 2022

I tried to add accessibility features to my app but when I turn on VoiceOver, floaty items are not clickable. I manually added these lines below but they are still not clickable. I also tried #183. When I open VoiceOver from settings, can't click floaty items. iPhone 7 iOS 15.3 Swift 5 Xcode 13.4

  @discardableResult
  @objc open func addItem(_ title: String, icon: UIImage?, handler: @escaping ((FloatyItem) -> Void)) -> FloatyItem {
    let item = FloatyItem()
      // ---------
    item.isAccessibilityElement = true
    item.accessibilityLabel = title
    item.accessibilityHint = "hint hint"
    item.accessibilityTraits.insert(.button)
      // ---------
    itemDefaultSet(item)
    item.title = title
    item.icon = icon
    item.handler = handler
    addItem(item: item)
    return item
  }

  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant