{"repo":"Infomaniak/swift-rich-html-editor","free":true,"listed":false,"github":"https://github.com/Infomaniak/swift-rich-html-editor","clone":"git clone https://github.com/Infomaniak/swift-rich-html-editor.git","description":"A WYSIWYG text editor written in Swift for iOS/macOS/visionOS. Available for SwiftUI, UIKit and AppKit. Based on HTML contenteditable. Used in the Infomaniak Mail application.","language":"Swift","stars":134,"topics":["appkit","ios","macos","rich-text-editor","swiftui","uikit","visionos","editor","wysiwyg"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"Infomaniak Rich HTML Editor The Infomaniak Rich HTML Editor is a powerful Swift package designed to provide a seamless WYSIWYG (What You See Is What You Get) text editing experience across iOS, macOS, and visionOS platforms. Leveraging the power of the contenteditable HTML attribute, this editor allows you to effortlessly edit HTML content. Built with UIKit and AppKit thanks to WebKit, it also includes a SwiftUI port, making it easy to integrate into modern Swift apps. Looking for an Android equivalent? Check out the Kotlin version of the editor here: Infomaniak/android-rich-html-editor ✍️ About Features - HTML Content Editing : Full support for viewing and editing HTML content directly. - Wide range of commands : Many commands are available to format text, from simple commands like bold to more advanced ones like link creation. - Cross-Platform Support: Compatible with iOS, macOS, and visionOS. - SwiftUI API : A dedicated port for SwiftUI, ensuring modern and declarative UI design compatibility. Installation You can install the package via Swift Package Manager. Add the following line to your Package.swift file: Usage UIKit and AppKit You can create the editor view and then add it to the view hierarchy. To respond to editor's events, you can conform to RichHTMLEditorViewDelegate . SwiftUI The SwiftUI view is called RichHTMLEditor and takes two arguments: - html: Binding the HTML content of the editor - textAttributes: TextAttributes the objects that contains the current stat","default_branch":null,"files":null,"tree":[],"storefront":"/r/Infomaniak","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Infomaniak/swift-rich-html-editor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}