STTextView
NavigationBackport
STTextView | NavigationBackport | |
---|---|---|
2 | 8 | |
861 | 815 | |
- | - | |
9.1 | 7.4 | |
14 days ago | 26 days ago | |
Swift | Swift | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
STTextView
-
Nerdy internals of an Apple text editor
For the educational purpose of modern TextKit and NSTextView-like implementation, you can check out https://github.com/krzyzanowskim/STTextView that is modern re-implementation of the text view.
-
I Quit Using SwiftUI
Out of curiosity, what framework/library/solution are you using for your text editor? I've been researching this space for a while and syntax highlighting text editors are rare and sparse.
There is this: https://github.com/krzyzanowskim/STTextView for textkit2, but the author ended up writing his own text input client.
How did you do about providing autocomplete, etc?
Thanks!
NavigationBackport
-
How can I use NavigationLink inside List without it affecting the rest of the layout?
still you can use it via this library by default it suppourt iOS 14+ https://github.com/johnpatrickmorgan/NavigationBackport
-
Is navigation really this bad?
My team is working on updating our SwiftUI app’s navigation to use this package: https://github.com/johnpatrickmorgan/NavigationBackport
-
What SwiftUI architecture are you all using?
Pretty much the same as you, just that I bit the bullet and didn't give up until I managed to get something decent on the navigation part using native SwiftUI tools. NavigationBackport + SwiftUINavigator has been surprisingly tolerable as long as you don't have a need for too many modal views or complex deeplink flows.
-
I work for a large company that has had an RxSwift/UIKit codebase for about 5 years. We are about 90% SwiftUI and should be ~99% SwiftUI by the end of the year, AMA!
If you want to do it the SwiftUI way, you can try using the NavigationStack backport which gives you support all the way back to iOS 14. I am using it right now and it's ok with the addendum that you need to do some gymnastics to bubble up a navigation destination from one of the sub-sub-sub children of the view owning the navigation stack.
- iOS 14+ Navigation solution for SwiftUI
- How can I create a dynamic NavigationLink?
- New in SwiftUI 4 & iOS 16 : NavigationStack
-
I Quit Using SwiftUI
There’s a back port of the nav view at https://github.com/johnpatrickmorgan/NavigationBackport
What are some alternatives?
TextEdit.it - A cut down, simple, text editor for Mac. Built with SwiftUI (mostly). [Moved to: https://github.com/markydoodled/Note.it]
FlowStacks - FlowStacks allows you to hoist SwiftUI navigation and presentation state into a Coordinator
CodeEditor - A SwiftUI TextEditor with syntax highlighting using Highlight.js
Helm - A graph-based SwiftUI router
TextViewBenchmark - A suite of performance tests for macOS text views
swift-composable-architecture - A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.
Proton - Purely native and extensible rich text editor for iOS and macOS Catalyst apps
Flutter - Flutter makes it easy and fast to build beautiful apps for mobile and beyond