Code Monkey home page Code Monkey logo

swiftymonaco's People

Contributors

adinack avatar pkasila avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

swiftymonaco's Issues

Crash when trying to use the library on MacOS 11.5.2

Hi I've tried to use the library. but the app just crashes with the following message

2021-08-30 20:32:59.666406+0200 DBTools[58086:3348586] [Process] 0x7f9ced032020 - [pageProxyID=5, webPageID=6, PID=0] WebPageProxy::tryReloadAfterProcessTermination: process crashed and the client did not handle it, not reloading the page because we reached the maximum number of attempts

Steps to reproduce:

  1. Created a new project in Xcode (MacOS app - SwiftUI lifecycle)
  2. added the package dependency (File -> Swift Packages -> Add Package Dependency...)
  3. Pasted in the Repo URL
  4. Added the SwiftyMonaco to the view as per. your example.

When I run the app nothing happens.
I've tried both the Static and Dynamicly linked.

Add syntax highlighting modifier

Problem

There is a need for syntax highlighting in SwiftyMonaco to let customers easily understand syntax.

Solution

Add modifier to pass syntax highlighting settings to Monaco Editor:

// C++
SwiftyMonaco(text: .constant("// something"))
    .syntaxHighlight(.cpp)

// Swift
SwiftyMonaco(text: .constant("// something"))
    .syntaxHighlight(.swift)

// Verilog
SwiftyMonaco(text: .constant("// something"))
    .syntaxHighlight(.verilog)

iOS and iPadOS keyboard not working

Hi!

Whenever I try to run the code in iPadOS or iOS, I can't type anything in the Code Editor! It is working on macOS without a problem.

I've tried on iOS 14 and iPadOS 15!

Thank you and amazing job with the library! :)

Update the `web` to the latest versions

There were a lot of changes to the way Monaco Editor works. Basically, this package needs to be rewritten to support all latest features (including web language workers).

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.