Skip to content

Commit

Permalink
Remove async call.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Sep 19, 2021
1 parent 9af929a commit 34aac7c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,8 @@ extension SourceCodeTextEditor {
}

public func didChangeText(_ syntaxTextView: SyntaxTextView) {
DispatchQueue.main.async {
self.parent.text = syntaxTextView.text
}

self.parent.text = syntaxTextView.text

// allow the client to decide on thread
parent.custom.didChangeText(parent)
}
Expand Down

0 comments on commit 34aac7c

Please sign in to comment.