Skip to content

Commit 6f22e0d

Browse files
authored
Merge branch 'main' into main
2 parents ae138e8 + f7883bb commit 6f22e0d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ An Xcode-inspired code editor view written in Swift powered by tree-sitter for [
1919

2020
<img width="1012" alt="social-cover-textview" src="https://user-images.githubusercontent.com/806104/194083584-91555dce-ad4c-4066-922e-1eab889134be.png">
2121

22-
![Github Tests](https://img.shields.io/github/workflow/status/CodeEditApp/CodeEditTextView/tests/main?label=tests&style=flat-square)
23-
![Documentation](https://img.shields.io/github/workflow/status/CodeEditApp/CodeEditTextView/build-documentation/main?label=docs&style=flat-square)
22+
![Github Tests](https://img.shields.io/github/actions/workflow/status/CodeEditApp/CodeEditTextView/tests.yml?branch=main&label=tests&style=flat-square)
23+
![Documentation](https://img.shields.io/github/actions/workflow/status/CodeEditApp/CodeEditTextView/build-documentation.yml?branch=main&label=docs&style=flat-square)
2424
![GitHub Repo stars](https://img.shields.io/github/stars/CodeEditApp/CodeEditTextView?style=flat-square)
2525
![GitHub forks](https://img.shields.io/github/forks/CodeEditApp/CodeEditTextView?style=flat-square)
2626
[![Discord Badge](https://img.shields.io/discord/951544472238444645?color=5865F2&label=Discord&logo=discord&logoColor=white&style=flat-square)](https://discord.gg/vChUXVf9Em)

Sources/CodeEditTextView/STTextViewController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ public class STTextViewController: NSViewController, STTextViewDelegate, ThemeAt
170170
super.viewDidAppear()
171171
}
172172

173+
public func textDidChange(_ notification: Notification) {
174+
self.text.wrappedValue = textView.string
175+
}
176+
173177
// MARK: UI
174178

175179
/// A default `NSParagraphStyle` with a set `lineHeight`

0 commit comments

Comments
 (0)