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

Accessory view click function implementation #2

Closed
ArunVicky001 opened this issue Feb 16, 2024 · 3 comments
Closed

Accessory view click function implementation #2

ArunVicky001 opened this issue Feb 16, 2024 · 3 comments

Comments

@ArunVicky001
Copy link

Hi @xnth97

Thanks for this library. Could you please suggest how to implement the function for the Accessory view button. why dont you add those functionality as well in the prototype.

Thank you.

@xnth97
Copy link
Owner

xnth97 commented Feb 16, 2024

hi @ArunVicky001

i'm not sure if i follow your question. if you meant the tap handlers for buttons, it is indeed in the example and readme doc

@ArunVicky001
Copy link
Author

Hi @xnth97 I got this, I was trying to set the selected text to bold

KeyboardAccessoryButton(identifier: "bold", type: .bold , position: .leading) { [weak self] in
                self?.bold()
            }

private func bold() {

}

do you have any workaround/style class to change the selected text to be bold/italic etc.. or do we need to do the rest of styling like for these items?
```
case bold
case italic
case code
case delete
case item
case quote
case link
case image

@xnth97
Copy link
Owner

xnth97 commented Feb 17, 2024

@ArunVicky001 that is out of this library's scope. AccessoryKit only provides input accessory view and is not coupled with any rich text functionality

@xnth97 xnth97 closed this as completed Feb 20, 2024
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

2 participants