Export Code

Export the generated UI code as iOS/Android code and run in Xcode.

Download Code & Assets

Once you've created all your components, edited assets, and are satisfied with the previewed code, it's time to export the code and begin working with it. Follow the steps below to download the code.

To export the code, follow these steps:

  1. Navigate to the screen you want to export the code for.

  2. Review the code on the right side of the screen. If you cannot see any code, ensure you have created your components and clicked 'Mark as Complete'. Only completed screens are downloaded in Xcode, ensuring you won't have any extra code. If you can't see your code, the screen will look like this:

  1. Click the 'Download Code' button at the bottom of the code.

  1. After clicking the 'Download Code' button, you'll be prompted to edit the path, or you can choose to export it to the default path provided. If you're on the web, it will automatically download without prompting. The download will start automatically in a few seconds.

Once the project has been exported, you'll find the colors, fonts, assets, and UI layout code in the project files.

Overview of the Exported iOS Project

Monday Hero exports an Xcode with colors, fonts, assets, string, and layout files. Please note that there are no duplicate values in colors, fonts, and string files.

Here's an overview of the exported project structure:

Project Structure

Upon unzipping the PROJECTNAME.zip file, you'll find the iOS-Example folder containing: Assets.xcassets, Components, Extensions, Localizable.strings, Main.storyboard, Styles, ViewControllers.

Storyboard File Screens are exported as a Main.storyboard file. Alternatively, you can export only the code without the storyboard by managing in the project settings.

Colors Colors are consolidated into a Colors.swift file, automatically named by Monday Hero. Duplicate values are eliminated for efficiency.

Fonts Fonts and their sizes are bundled into one file, accessible as text styles in the Fonts.swift file.

Strings Strings are exported in a single file for the entire project, housed in the Localizable.strings file.

Assets All assets are downloaded in 1x, 2x, and 3x densities, ready for immediate use. They're conveniently organized within the Assets.xcassets folder.

The project structure provided above ensures seamless integration with Xcode. With the UI already exported, you can focus on backend services and configurations. Happy coding!

Last updated