When you're developping Web applications, you often ask yourself what does your beautiful design will look like if your users enter a very long text. Or you may want to prototype a new screen based on an existing one, I came around a quick hack using HTML5 goodness: content editable !

On the page you want to edit, open your JavaScript console (Cmd+Alt+I on Chrome Mac), and enter the following

  document.body.contentEditable = true;
  

Now you can freely edit the text on your page, once you're done, you can switch off the content editable mode setting the property to false !

Swift module registration

Swift module registrationLet’s modularize our Swift code!I am using tuist for a while now in my projects. This tool was initially bring i...… Continue reading

Swift macro : @VisibleForTesting

Published on April 19, 2024

Dark Mode iOS Snapshot

Published on January 10, 2021