How to make Notepad App in Swift.

in utopian-io •  8 months ago

Notepad App in Swift


Scratch pad is much the same as some other UITextView, however you have to utilize the accommodation initializer to utilize the subjects. To make another topic, duplicate one of the current subjects and alter the JSON.

Look at the Xcode venture for a case. For full documentation read the code.

Extending an Existing Text View with Notepad Features

In the event that you can't work with the Notepad subclass straightforwardly for reasons unknown, you can set up a current UITextView or NSTextView all alone.

For iOS, you need to introduce all TextKit segments yourself. Take the accompanying as an outline where you can swap in custom items:

And for macOS:

Custom Regex
Using regex, you can match custom patterns in your Notepad editor by passing a regex attribute in your theme. For example, one that highlights Twitter handles in a teal color:


  • Investigate the majority of the topics and swatches while picking the topic for your Notepad, or as motivation for another one.
  • You can discover the majority of the crude topics in the subjects envelope, and the record names are case-touchy.
  • Installation
    Copy the source from the Notepad folder to your project, or add Notepad to your Podfile if you're using CocoaPods.

    Authors get paid when people like you upvote their post.
    If you enjoyed what you read here, create your account today and start earning FREE STEEM!
    Sort Order:  

    Utopian only rewards unique contributions since they are the ones which really adds value to projects and open source community. Contributors are also responsible for uniqueness of their contributions. Exact same or very similar contents are directly considered out of vote, and if they are decided to be plagiarized, it causes a ban from Utopian for the contributor.

    • In your case, since the content is directly copied from the GitHub project description, it will not be rewarded. In your future contributions, please consider those and provide unique and insightful content.

    Source of the Original Content:

    Need help? Write a ticket on
    Chat with us on Discord.


    okay i will take care of there things.