Member-only story
Markdown Editor in SwiftUI
Here is what we will build by the end of this article:
Support for markdown was introduced with SwiftUI 3. Markdown has made it simple to mix and match string formatting without creating a complex hierarchy of subviews.
SwiftUI doesn’t support markdown to its full power but only subset of functions are available. Given the successful reception of markdown, hopefully SwiftUI team will add support for more formatting options in markdown space.
At this point SwiftUI only supports following operations for markdown:
**bold text**
*italics*
~~strikethrough~~
`inline code`
[DevTechie](https://www.devtechie.com)In this article, we will build a simple markdown editor using SwiftUI. We will use another newly introduced struct called AttributedString
Attributed strings are character strings that have attributes for individual characters or ranges of characters. Attributes provide traits like visual styles for display, accessibility for guided access, and hyperlink data for…






