You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!--- IMPORTANT: If this PR addresses multiple unrelated issues, it will
be closed until separated. -->
### Description
- Changes the package name to CodeEditSourceEditor.
- Uses the new CodeEditTextView repository instead of containing two
targets for the source editor and text view.
- Updates all repo names, fixes all headers (thanks @0xWDG for pointing
that out in #211).
- Marks the `CodeEditTextView` struct as deprecated in favor of
`CodeEditSourceEditor`.
- Fixes a small bug with cursor position that left out column info.
### Checklist
<!--- Add things that are not yet implemented above -->
- [x] I read and understood the [contributing
guide](https://github.com/CodeEditApp/CodeEdit/blob/main/CONTRIBUTING.md)
as well as the [code of
conduct](https://github.com/CodeEditApp/CodeEdit/blob/main/CODE_OF_CONDUCT.md)
- [x] The issues this PR addresses are related to each other
- [x] My changes generate no new warnings
- [x] My code builds and runs on my machine
- [x] My changes are all related to the related issue above
- [x] I documented my code
|:warning:|**CodeEditTextView is currently in development and it is not ready for production use.** <br> Please check back later for updates on this project. Contributors are welcome as we build out the features mentioned above! |
30
+
|:warning:|**CodeEditSourceEditor is currently in development and it is not ready for production use.** <br> Please check back later for updates on this project. Contributors are welcome as we build out the features mentioned above! |
30
31
| - |:-|
31
32
32
33
## Documentation
33
34
34
-
This package is fully documented [here](https://codeeditapp.github.io/CodeEditTextView/documentation/codeedittextview/).
35
+
This package is fully documented [here](https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor/).
35
36
36
37
## Usage
37
38
38
39
```swift
39
-
importCodeEditTextView
40
+
importCodeEditSourceEditor
40
41
41
42
structContentView: View {
42
43
@@ -48,7 +49,7 @@ struct ContentView: View {
48
49
@Statevar editorOverscroll =0.3
49
50
50
51
var body: some View {
51
-
CodeEditTextView(
52
+
CodeEditSourceEditor(
52
53
$text,
53
54
language: .swift,
54
55
theme: $theme,
@@ -87,6 +88,12 @@ Licensed under the [MIT license](https://github.com/CodeEditApp/CodeEdit/blob/ma
0 commit comments