SwiftUI : Syntax Highlighter using TextKit API | SwiftUI 2.0 | NSAttributedText | Text Storage

Опубликовано: 02 Октябрь 2024
на канале: Recoding
2,912
38

In this video we gonna build a syntax highlighting app which uses Apple's TextKit API's, along with this we use NSRegular Expression to track the markdown words, NSAttributedText to change font and font style and NSTextStorage to track down attributed text.

Source Code : https://github.com/recoding-io/swiftu...

Checkout full playlist :    • SwiftUI Tutorials  

Timeline
Intro (00:00)
Demo of Document Optical Recognition App (00:27)
Create new Xcode Project (01:04)
Create Highlighting Editor has UITextView (01:30)
Build Stylization of Text (08:52)
Build Syntax Highlighting Code (12:02)
Final App Demo of Syntax Highlighting (15:22)

Follow us on
📝 @Medium -   / recoding  
🐦 @Twitter -   / recoding_io  
🦄 @Dev.to - https://dev.to/recoding
📌 @Pinterest.com -   / recoding_io  
🔗 @LinkedIn.com -   / recoding-io