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.
Last updated
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.
Last updated
You can import the changed pages, convert the changed components, and export the new changes directly into an existing project with Monday Hero.
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.
A working project example can be seen below. All the files are created and located.
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.
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!