Giter Site home page Giter Site logo

canopas / rich-editor-swiftui Goto Github PK

View Code? Open in Web Editor NEW
65.0 3.0 3.0 3.45 MB

RichEditorSwiftUI is swift based library, it is made to make rich text editing easy with SwiftUI.

License: MIT License

Swift 99.06% Ruby 0.94%
editor rich-text-editor richtext string swift swiftui uikit ios swiftui-example text-editor

rich-editor-swiftui's Issues

Set Text color and font?

Hello guys, thanks for sharing this!

I am currently using rich text editor by Daniel Sadi, but looking for a simpler version that I can customise.

Do you guys plan to support setting Text color and font?

iPadOS 17: Keyboard Shortcuts

the RichTextEditor works well (I'm trying out the demo app) but I can't use shortcuts such as Command + A to sele ct all text

Support for Dark Mode

The text editor view does not conform to support for Dark Mode making it unusable when the device is set that way. Please support the text color changes necessary to work properly in this mode

MacOS version has been ported

Hello Canopas team,

I ported the code to MacOS/Appkit over the weekend, project is on the zip bellow:
rich-editor-swiftui-main-3.zip

Screenshot 2024-08-05 at 13 02 13

On this code:

import Foundation

public class RichEditorState: ObservableObject {
    private var adapter: EditorAdapter = DefaultAdapter()

    @Published internal var editableText: NSMutableAttributedString

Xcode prints this, when trying to apply rich text:
Publishing changes from within view updates is not allowed, this will cause undefined behavior.

Then rich text doesn't get applied, and you need to click on underwrite and then it works.

Please let me know what you guys think, and if you could help solve this issue.

Next steps would be.

  1. undo manager
  2. Color
  3. Font

Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.