Monday Hero
Website
V1
V1
  • Overview
  • Workflow Basics
  • Getting Started
    • Installation
    • Login & Create a Project
    • Roles & Manage the Project Team
    • Prepare Design To Get Best Results
    • Import Design File Into Monday Hero
  • WORKING WITH MONDAY HERO
    • Automatically Generated Components
      • Views
      • Texts
      • Images
    • Convert to Components
      • How to Convert to Components
      • Convert to Button
      • Convert to TextField/EditText
      • Convert to Text Area
      • Convert to Status Bar
      • Convert to Search Bar
      • Convert to Lists and Grids
        • Convert to List
        • Convert to Grid
    • Export Code
      • Export All Screens as a New Project
      • Export Only Selected Screen as a New Project
      • Export Only Selected Screen Into an Existing Project
    • 🚧 Configure Code Preferences (WIP)
  • Step-By-Step Tutorials
    • 🏖️Travel App
  • Reach Us
    • Get Support
    • Get Demo
  • Join & Follow Us
    • Slack Community
    • GitHub
    • Twitter
    • LinkedIn
    • Blog
    • Instagram
    • Facebook
    • YouTube
Powered by GitBook
On this page
  • Had a design review and now doing the same changes in the project files again? Not with Monday Hero.
  • Download Code & Assets
  • Example of an Exported Project and Generated iOS/Android Code

Was this helpful?

  1. WORKING WITH MONDAY HERO
  2. Export Code

Export Only Selected Screen Into an Existing Project

Convert the changes in Adobe XD/Sketch design to code, export the generated new UI code as iOS/Android code, add new changes that are ready to run in both Android Studio/Xcode.

PreviousExport Only Selected Screen as a New ProjectNext🚧 Configure Code Preferences (WIP)

Last updated 4 years ago

Was this helpful?

Had a design review and now doing the same changes in the project files again? Not with Monday Hero.

You can import the changed pages, convert the changed components, and export the new changes directly into an existing project with Monday Hero.

Download Code & Assets

Be sure that the screen that will be exported is open, and click the Export > Into Existing Project as it can be seen below.

Choose the path that the screen will be exported and be sure that it has .xcassets folder. Click Export, and downloading will be started.

It is not possible to export if the path doesn't have the .xcassets folder. A warning pop-up that says 'Please choose a folder that has xcassets file.' will appear.

The exporting progress bar will pop-up and a 'blink' sound will be heard when it's done. Open the directory that is exported, the project is there. It will automatically download Colors.swift, Fonts.swift, assets, and the code of the selected screen. The code changes on depending on your preferences, you can either download with Storyboard file or only as code.

The Storyboard file will be downloaded as main.Storyboard. Be sure that the Storyboard file name is different in the existing project before downloading the new screen to avoid overwriting.

Let's add the new files to the project by following the next 2 steps below in Xcode.

Step 1: Open the project, right-click to the project folder and select 'Add Files To [nameOfTheProject]'

Step 2: Click the new files that are only in the main folder. No need to go for the base/assets folder. And click Add.

All done. All selected files are added to the project as can be seen below.

The new screen is ready to run/edit it in the project.

🚧 This page will be ready soon for you.

A working project example can be seen below. All the files are created and located.

Example of an Exported Project and Generated iOS/Android Code

Storyboard File The screens are downloaded as Main.storyboard file (Also it is possible to export only code, without Storyboard). Downloaded Storyboard file:

Colors The colors are downloaded as a single file and automatically named by Monday Hero in Colors.swift file. The colors' values are also not duplicated.

Fonts The fonts and their sizes are downloaded in one file as text styles and can be found/edited in the Fonts.swift file.

Strings The strings are also exported in a single file for the whole project in Localizable.strings file.

Assets One of the most important exported files is assets. They are downloaded in 1x, 2x, and 3x densities. They are all ready to use and automatically sized. They can be found in Assets.xcassets folder.

Layouts The layouts are ready as can be seen below.

Colors We can see the colors in colors.xml file. These colors are named automatically by Monday Hero.

Please note that there are no duplicated values in colors, fonts, and strings.

Strings As we mentioned above, the strings are also exported. They are placed in the strings.xml file.

Fonts Also, we gather the fonts and their sizes in one place as text styles and which can be found/edited in the fonts.xml file.

Assets And the last but not least, the assets. They are all ready to use and automatically sized in the res folder.The images are downloaded in mdpi, hdpi, xhdpi, xxhdpi and, xxxhdpi densities.

As can be seen above, the project is ready to run. After these steps, the development takes place out of Monday Hero. With already exported project UI as an Xcode project or Android Studio project, and it is ready for development. Now it is time to work on the backend services and configurations as planned. Happy coding!

Exporting into an iOS project.
Downloaded Storyboard file for entire project.
Colors.swift file.
Fonts.swift file.
Localizable.strings file.
Asset folder and files in an exported project.
List page layout of Travel App in Android Studio.
Downloaded Colors in colors.xml
Downloaded Strings in strings.xml file
Downloaded Text Styles in fonts.xml
Android Image Assets