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

onSelectionChange modifier #33

Merged
merged 16 commits into from
Feb 8, 2021
Merged

onSelectionChange modifier #33

merged 16 commits into from
Feb 8, 2021

Conversation

kyle-n
Copy link
Owner

@kyle-n kyle-n commented Feb 6, 2021

Adds new modifier to AppKit/UIKit editors to call a callback on selection change. AppKit editor filters duplicates because whatever SwiftUI for macOS is doing causes the selection to change multiple times when you type a key in the editor.

@kyle-n kyle-n self-assigned this Feb 6, 2021
@kyle-n kyle-n added AppKit Issues related to the macOS AppKit editor enhancement New feature or request UIKit Issues related to the iOS UIKit editor labels Feb 6, 2021
@kyle-n kyle-n mentioned this pull request Feb 6, 2021
@kyle-n kyle-n linked an issue Feb 6, 2021 that may be closed by this pull request
@kyle-n kyle-n merged commit 710bb6f into main Feb 8, 2021
@kyle-n kyle-n deleted the selected-ranges branch February 8, 2021 21:01
@kyle-n kyle-n linked an issue Feb 8, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AppKit Issues related to the macOS AppKit editor enhancement New feature or request UIKit Issues related to the iOS UIKit editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get selection range Insertion Point location
1 participant