Congratulations, you just downloaded and installed Tifig and are now prepared to configure it for your first Swift project.
- Choose a workspace
- Set the Swift perspective
- Configure the toolchain
1. Choose a Workspace
The first time you start Tifig, you will be asked to enter a workspace. The wizard looks as follows:
You can either type or paste a path directly into the dropdown menu or search for a directory using the Browse button on the right.
If you don’t want this wizard to show every time you start up Tifig, you can check the box at the bottom left of the wizard to set your new workspace as the default.
When you are done, click on the Launch button.
2. Set the Swift Perspective
After successfully setting the workspace, the splash screen with the Tifig logo will show. You can see in the progress bar (below the logo) how the various plug-ins of the IDE are loaded.
Because it is the first time you started Tifig, you will be greeted by the welcome screen:
From here you can directly create a new Swift project or learn more about Swift from various resources. In this tutorial, we will first make sure that your IDE is correctly configured and therefore, we recommend that you close the welcome screen tab by clicking the close symbol on the top left.
After doing so, the blank view of your newly created workspace will appear:
Notice the Swift logo on the top right of the window? Clicking on it enables the Swift perspective in your IDE. Normally, the Swift perspective is set as the default and should be enabled already. If this is not the case, click on the logo to switch to the Swift perspective.
3. Configure the Toolchain
Tifig does not come with a built-in Swift installation. However, if you followed the installation instructions in the download section, Tifig should have set your Swift toolchain already. To verify this, open the Preferences.
Note: The Preferences are not located in the same menus on a Mac and on a Linux system, respectively. On a Mac, the path is Tifig/Preferences…. On a Linux system, the path is Window/Preferences.
In the Preferences, choose Swift Toolchains. The wizard looks as follows:
If you had a Swift installation before opening Tifig, an initial entry should be present and selected in the toolchain list. If this is not the case, you can add your preferred toolchain by using the Add… button on the right of the list. You can also edit, duplicate and remove existing entries.
You have successfully prepared Tifig for your first Swift project by choosing the Swift perspective and setting your Swift toolchain. To find out how to create, change and run your first Swift project, go to our next tutorial.